RunHookEvents
이 콘텐츠는 아직 번역되지 않았습니다.
type RunHookEvents<TContext, TOutput> = object;Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
|
|
Properties
Section titled “Properties”agent_end
Section titled “agent_end”agent_end: [context: RunContext<TContext>, agent: Agent<TContext, TOutput>, output: string];context
The context of the run
agent
The agent that is ending
output
The output of the agent
agent_handoff
Section titled “agent_handoff”agent_handoff: [context: RunContext<TContext>, fromAgent: Agent<any, any>, toAgent: Agent<any, any>];context
The context of the run
fromAgent
The agent that is handing off
toAgent
The next agent to run
agent_start
Section titled “agent_start”agent_start: [context: RunContext<TContext>, agent: Agent<TContext, TOutput>, turnInput?: AgentInputItem[]];context
The context of the run
agent
The agent that is starting
agent_tool_end
Section titled “agent_tool_end”agent_tool_end: [context: RunContext<TContext>, agent: Agent<TContext, TOutput>, tool: Tool, result: string, details: object];context
The context of the run
agent
The agent that is ending a tool
tool
The tool that is ending
result
The result of the tool
agent_tool_start
Section titled “agent_tool_start”agent_tool_start: [context: RunContext<TContext>, agent: Agent<TContext, TOutput>, tool: Tool, details: object];context
The context of the run
agent
The agent that is starting a tool
tool
The tool that is starting