AgentFrameworkConfigureOptions
NexusLabs.Needlr.AgentFramework¶
NexusLabs.Needlr.AgentFramework¶
AgentFrameworkConfigureOptions Class¶
Factory-level configuration options passed to NexusLabs.Needlr.AgentFramework.AgentFrameworkSyringeExtensions.Configure(NexusLabs.Needlr.AgentFramework.AgentFrameworkSyringe,System.Action{NexusLabs.Needlr.AgentFramework.AgentFrameworkConfigureOptions}) callbacks.
Inheritance System.Object 🡒 AgentFrameworkConfigureOptions
Properties¶
AgentFrameworkConfigureOptions.ChatClientFactory Property¶
Gets or sets a factory that creates the Microsoft.Extensions.AI.IChatClient used by all agents built from this factory. When null, Microsoft.Extensions.AI.IChatClient is resolved from the DI container.
public System.Func<System.IServiceProvider,Microsoft.Extensions.AI.IChatClient>? ChatClientFactory { get; set; }
Property Value¶
System.Func<System.IServiceProvider,Microsoft.Extensions.AI.IChatClient>
AgentFrameworkConfigureOptions.DefaultInstructions Property¶
Gets or sets the default system instructions applied to all agents unless overridden via Instructions.
Property Value¶
AgentFrameworkConfigureOptions.ServiceProvider Property¶
Gets the service provider from the DI container. Use this to resolve configuration or services needed to create the Microsoft.Extensions.AI.IChatClient.