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

Function toAnthropicTools

src/ifcchat/api_anthropic.js:12–18  ·  view source on GitHub ↗
(tools = [])

Source from the content-addressed store, hash-verified

10}
11
12function toAnthropicTools(tools = []) {
13 return tools.map((tool) => ({
14 name: tool.function.name,
15 description: tool.function.description,
16 input_schema: tool.function.parameters,
17 }));
18}
19
20function toAnthropicAssistantContent(message) {
21 const content = [];

Callers 1

chatFunction · 0.85

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected