Logo
Type aliases

StepHandlerParams

StepHandlerParams = object

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

Properties

workflowContext

workflowContext: WorkflowContext

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

Workflow context


instructions

instructions: string

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

User instructions to guide the agent to handle the step.


results

results: ZodEvent[]

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

Event that this agent will return


events?

optional events: ZodEvent[]

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

List of additional events that the agent can emit


llm?

optional llm: ToolCallLLM

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

LLM to use for the agent, required.


tools?

optional tools: BaseToolWithCall[]

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

List of tools that the agent can use