FunctionAgentParams
FunctionAgentParams =
object
Defined in: packages/workflow/src/agent/function-agent.ts:70
Properties
name?
optional
name:string
Defined in: packages/workflow/src/agent/function-agent.ts:74
Agent name
llm?
optional
llm:ToolCallLLM
Defined in: packages/workflow/src/agent/function-agent.ts:78
LLM to use for the agent, required.
description?
optional
description:string
Defined in: packages/workflow/src/agent/function-agent.ts:83
Description of the agent, useful for task assignment. Should provide the capabilities or responsibilities of the agent.
tools?
optional
tools:BaseToolWithCall
[]
Defined in: packages/workflow/src/agent/function-agent.ts:87
List of tools that the agent can use, requires at least one tool.
canHandoffTo?
optional
canHandoffTo:string
[] |BaseWorkflowAgent
[] |AgentWorkflow
[]
Defined in: packages/workflow/src/agent/function-agent.ts:92
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?
optional
systemPrompt:string
Defined in: packages/workflow/src/agent/function-agent.ts:96
Custom system prompt for the agent