createWorkflowFromAgent
createWorkflowFromAgent<
ToolProviderContext,Tools,TOutput>(runtime,agent,options?):Workflow<string,TOutput,string>
Defined in: packages/core/src/workflow/from-agent.ts:22
Wrap an agent as a workflow that accepts a string user message and returns
the agent’s output. Prefer AdlRuntime.createWorkflowFromAgent.
Type Parameters
Section titled “Type Parameters”ToolProviderContext
Section titled “ToolProviderContext”ToolProviderContext = undefined
Tools extends ToolSet = ToolSet
TOutput
Section titled “TOutput”TOutput = string
Parameters
Section titled “Parameters”runtime
Section titled “runtime”Agent<ToolProviderContext, Tools, TOutput>
options?
Section titled “options?”CreateWorkflowFromAgentOptions<ToolProviderContext>
Returns
Section titled “Returns”Workflow<string, TOutput, string>