NeedlrGraphWorkflowExtensions
NexusLabs.Foundry.Needlr.MicrosoftAgentFramework¶
NeedlrGraphWorkflowExtensions Class¶
Syringe extension to register graph workflow services alongside the
agent framework. Call after UsingAgentFramework() in the syringe
fluent chain.
Inheritance System.Object 🡒 NeedlrGraphWorkflowExtensions
Example¶
var provider = new Syringe()
.UsingReflection()
.UsingAgentFramework(af => af.Configure(...))
.UsingGraphWorkflows()
.BuildServiceProvider(config);
var runner = provider.GetRequiredService<IGraphWorkflowRunner>();
var result = await runner.RunGraphAsync("my-graph", "input");
Methods¶
NeedlrGraphWorkflowExtensions.UsingGraphWorkflows(this ConfiguredSyringe) Method¶
Registers NexusLabs.Foundry.MicrosoftAgentFramework.IGraphWorkflowRunner and its dependencies.
Must be called after UsingAgentFramework().
public static NexusLabs.Needlr.Injection.ConfiguredSyringe UsingGraphWorkflows(this NexusLabs.Needlr.Injection.ConfiguredSyringe syringe);
Parameters¶
syringe NexusLabs.Needlr.Injection.ConfiguredSyringe