MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / toAnthropicToolResult

Function toAnthropicToolResult

src/ifcchat/api_anthropic.js:47–53  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

45}
46
47function toAnthropicToolResult(message) {
48 return {
49 type: "tool_result",
50 tool_use_id: message.tool_call_id,
51 content: typeof message.content === "string" ? message.content : JSON.stringify(message.content ?? ""),
52 };
53}
54
55function splitSystemAndMessages(messages = []) {
56 const system = [];

Callers 1

splitSystemAndMessagesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected