Logo
Type aliases

StepHandlerParams

StepHandlerParams = object

Defined in: packages/workflow/src/agent/function-agent.ts:46

Properties

workflowContext

workflowContext: WorkflowContext

Defined in: packages/workflow/src/agent/function-agent.ts:50

Workflow context


instructions

instructions: string

Defined in: packages/workflow/src/agent/function-agent.ts:54

User instructions to guide the agent to handle the step.


results

results: ZodEvent[]

Defined in: packages/workflow/src/agent/function-agent.ts:58

Event that this agent will return


events?

optional events: ZodEvent[]

Defined in: packages/workflow/src/agent/function-agent.ts:62

List of additional events that the agent can emit


llm?

optional llm: ToolCallLLM

Defined in: packages/workflow/src/agent/function-agent.ts:66

LLM to use for the agent, required.


tools?

optional tools: BaseToolWithCall[]

Defined in: packages/workflow/src/agent/function-agent.ts:70

List of tools that the agent can use