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

Function flushToolResults

src/ifcchat/api_anthropic.js:60–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58 let pendingToolResults = [];
59
60 const flushToolResults = () => {
61 if (pendingToolResults.length === 0) return;
62 anthropicMessages.push({ role: "user", content: pendingToolResults });
63 pendingToolResults = [];
64 };
65
66 for (const message of messages) {
67 if (message.role === "system") {

Callers 1

splitSystemAndMessagesFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected