MCPcopy Index your code
hub / github.com/coder/coder / ChatMessageToolCall

Function ChatMessageToolCall

codersdk/chats.go:378–385  ·  view source on GitHub ↗

ChatMessageToolCall builds a tool-call chat message part.

(toolCallID, toolName string, args json.RawMessage)

Source from the content-addressed store, hash-verified

376
377// ChatMessageToolCall builds a tool-call chat message part.
378func 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

Calls

no outgoing calls