Skip to content

NeedlrAgentFrameworkExtensions

NexusLabs.Foundry.Needlr.MicrosoftAgentFramework

NeedlrAgentFrameworkExtensions Class

Adds Foundry's Microsoft Agent Framework runtime to a Needlr composition.

public static class NeedlrAgentFrameworkExtensions

Inheritance System.Object 🡒 NeedlrAgentFrameworkExtensions

Methods

NeedlrAgentFrameworkExtensions.AddAgentFunctionsFromProvider(this AgentFrameworkBuilder) Method

Adds agent functions discovered from Needlr's registered service descriptors.

public static NexusLabs.Foundry.MicrosoftAgentFramework.AgentFrameworkBuilder AddAgentFunctionsFromProvider(this NexusLabs.Foundry.MicrosoftAgentFramework.AgentFrameworkBuilder builder);

Parameters

builder NexusLabs.Foundry.MicrosoftAgentFramework.AgentFrameworkBuilder

The Foundry runtime builder.

Returns

NexusLabs.Foundry.MicrosoftAgentFramework.AgentFrameworkBuilder
The updated builder.

NeedlrAgentFrameworkExtensions.UsingAgentFramework(this ConfiguredSyringe) Method

Registers the Foundry runtime with default configuration.

public static NexusLabs.Needlr.Injection.ConfiguredSyringe UsingAgentFramework(this NexusLabs.Needlr.Injection.ConfiguredSyringe syringe);

Parameters

syringe NexusLabs.Needlr.Injection.ConfiguredSyringe

The Needlr composition to configure.

Returns

NexusLabs.Needlr.Injection.ConfiguredSyringe
The updated Needlr composition.

NeedlrAgentFrameworkExtensions.UsingAgentFramework(this ConfiguredSyringe, Func<AgentFrameworkBuilder,AgentFrameworkBuilder>) Method

Registers the Foundry runtime with explicit builder configuration.

public static NexusLabs.Needlr.Injection.ConfiguredSyringe UsingAgentFramework(this NexusLabs.Needlr.Injection.ConfiguredSyringe syringe, System.Func<NexusLabs.Foundry.MicrosoftAgentFramework.AgentFrameworkBuilder,NexusLabs.Foundry.MicrosoftAgentFramework.AgentFrameworkBuilder> configure);

Parameters

syringe NexusLabs.Needlr.Injection.ConfiguredSyringe

The Needlr composition to configure.

configure System.Func<NexusLabs.Foundry.MicrosoftAgentFramework.AgentFrameworkBuilder,NexusLabs.Foundry.MicrosoftAgentFramework.AgentFrameworkBuilder>

The Foundry runtime builder configuration.

Returns

NexusLabs.Needlr.Injection.ConfiguredSyringe
The updated Needlr composition.

NeedlrAgentFrameworkExtensions.UsingAgentFramework(this ConfiguredSyringe, Func<AgentFrameworkBuilder>) Method

Registers the Foundry runtime using a caller-created builder.

public static NexusLabs.Needlr.Injection.ConfiguredSyringe UsingAgentFramework(this NexusLabs.Needlr.Injection.ConfiguredSyringe syringe, System.Func<NexusLabs.Foundry.MicrosoftAgentFramework.AgentFrameworkBuilder> configure);

Parameters

syringe NexusLabs.Needlr.Injection.ConfiguredSyringe

The Needlr composition to configure.

configure System.Func<NexusLabs.Foundry.MicrosoftAgentFramework.AgentFrameworkBuilder>

A function that creates the configured builder.

Returns

NexusLabs.Needlr.Injection.ConfiguredSyringe
The updated Needlr composition.