SyringeGraphWorkflowExtensions
NexusLabs.Needlr.AgentFramework.Workflows¶
NexusLabs.Needlr.AgentFramework.Workflows¶
SyringeGraphWorkflowExtensions Class¶
Syringe extension to register graph workflow services alongside the
agent framework. Call after UsingAgentFramework() in the syringe
fluent chain.
Inheritance System.Object 🡒 SyringeGraphWorkflowExtensions
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¶
SyringeGraphWorkflowExtensions.UsingGraphWorkflows(this ConfiguredSyringe) Method¶
Registers NexusLabs.Needlr.AgentFramework.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