Files
agent-framework/dotnet/src/Microsoft.Extensions.AI.Agents.Runtime.Abstractions/IActorRuntimeBuilder.cs
T
Reuben Bond 41d441420e Initial draft of actor runtime abstractions (#197)
* Initial draft of actor runtime abstractions
2025-07-22 16:05:58 -04:00

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);
}