mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
41d441420e
* Initial draft of actor runtime abstractions
19 lines
609 B
C#
19 lines
609 B
C#
// Copyright (c) Microsoft. All rights reserved.
|
|
|
|
using System;
|
|
|
|
namespace Microsoft.Extensions.AI.Agents.Runtime;
|
|
|
|
/// <summary>
|
|
/// Builder interface for configuring actor types in the runtime.
|
|
/// </summary>
|
|
public interface IActorRuntimeBuilder
|
|
{
|
|
/// <summary>
|
|
/// Registers an actor type with its factory method.
|
|
/// </summary>
|
|
/// <param name="type">The actor type to register.</param>
|
|
/// <param name="activator">The factory method to create instances of the actor.</param>
|
|
void AddActorType(ActorType type, Func<IServiceProvider, IActorRuntimeContext, IActor> activator);
|
|
}
|