Skip to content

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.

public sealed class AgentFrameworkConfigureOptions

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.

public string? DefaultInstructions { get; set; }

Property Value

System.String

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.

public System.IServiceProvider ServiceProvider { get; init; }

Property Value

System.IServiceProvider