FunctionAgentParams
FunctionAgentParams =
object
Defined in: .build/typescript/packages/workflow/src/agent/function-agent.ts:76
Properties
Section titled “Properties”
optional
name:string
Defined in: .build/typescript/packages/workflow/src/agent/function-agent.ts:80
Agent name
optional
llm:ToolCallLLM
Defined in: .build/typescript/packages/workflow/src/agent/function-agent.ts:84
LLM to use for the agent, required.
description?
Section titled “description?”
optional
description:string
Defined in: .build/typescript/packages/workflow/src/agent/function-agent.ts:89
Description of the agent, useful for task assignment. Should provide the capabilities or responsibilities of the agent.
tools?
Section titled “tools?”
optional
tools:BaseToolWithCall
[]
Defined in: .build/typescript/packages/workflow/src/agent/function-agent.ts:93
List of tools that the agent can use, requires at least one tool.
canHandoffTo?
Section titled “canHandoffTo?”
optional
canHandoffTo:string
[] |BaseWorkflowAgent
[] |AgentWorkflow
[]
Defined in: .build/typescript/packages/workflow/src/agent/function-agent.ts:98
List of agents that this agent can delegate tasks to Can be a list of agent names as strings, BaseWorkflowAgent instances, or AgentWorkflow instances
systemPrompt?
Section titled “systemPrompt?”
optional
systemPrompt:string
Defined in: .build/typescript/packages/workflow/src/agent/function-agent.ts:102
Custom system prompt for the agent