ChatMessageToolCall builds a tool-call chat message part.
(toolCallID, toolName string, args json.RawMessage)
| 376 | |
| 377 | // ChatMessageToolCall builds a tool-call chat message part. |
| 378 | func ChatMessageToolCall(toolCallID, toolName string, args json.RawMessage) ChatMessagePart { |
| 379 | return ChatMessagePart{ |
| 380 | Type: ChatMessagePartTypeToolCall, |
| 381 | ToolCallID: toolCallID, |
| 382 | ToolName: toolName, |
| 383 | Args: args, |
| 384 | } |
| 385 | } |
| 386 | |
| 387 | // ChatMessageToolResult builds a tool-result chat message part. |
| 388 | // The isMedia flag marks the result as carrying binary media content |
no outgoing calls