MCPcopy
hub / github.com/chartbrew/chartbrew / buildResponseTools

Function buildResponseTools

server/modules/ai/orchestrator/orchestrator.js:1429–1437  ·  view source on GitHub ↗
(toolDefinitions)

Source from the content-addressed store, hash-verified

1427}
1428
1429function buildResponseTools(toolDefinitions) {
1430 return toolDefinitions.map((tool) => ({
1431 type: "function",
1432 name: tool.name,
1433 description: tool.description,
1434 parameters: tool.parameters,
1435 strict: false,
1436 }));
1437}
1438
1439function buildAssistantMessageFromResponse(response) {
1440 const toolCalls = (response.output || [])

Callers 1

orchestrateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected