(toolCallID string, toolDefinition tools.Tool, result *tools.ToolCallResult, response, agentName string)
| 158 | } |
| 159 | |
| 160 | func ToolCallResponse(toolCallID string, toolDefinition tools.Tool, result *tools.ToolCallResult, response, agentName string) Event { |
| 161 | return &ToolCallResponseEvent{ |
| 162 | Type: "tool_call_response", |
| 163 | Response: response, |
| 164 | Result: result, |
| 165 | ToolCallID: toolCallID, |
| 166 | ToolDefinition: toolDefinition, |
| 167 | AgentContext: newAgentContext(agentName), |
| 168 | } |
| 169 | } |
| 170 | |
| 171 | type StreamStartedEvent struct { |
| 172 | AgentContext |
no test coverage detected