Logo
Type aliases

StepHandlerParams

StepHandlerParams = object

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

Properties

workflowContext

workflowContext: WorkflowContext

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

Workflow context


instructions

instructions: string

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

User instructions to guide the agent to handle the step.


results

results: ZodEvent[]

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

Event that this agent will return


events?

optional events: ZodEvent[]

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

List of additional events that the agent can emit


llm?

optional llm: ToolCallLLM

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

LLM to use for the agent, required.


tools?

optional tools: BaseToolWithCall[]

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

List of tools that the agent can use