@diologue/local-agent 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +9 -0
- package/dist/cli.mjs.map +2 -2
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -984,6 +984,15 @@ var LlmBroker = class {
|
|
|
984
984
|
if (response.text) {
|
|
985
985
|
entry.observer({ type: "text_delta", text: response.text });
|
|
986
986
|
}
|
|
987
|
+
for (const [index, tc] of (response.toolCalls ?? []).entries()) {
|
|
988
|
+
entry.observer({
|
|
989
|
+
type: "tool_call_delta",
|
|
990
|
+
index,
|
|
991
|
+
id: tc.id,
|
|
992
|
+
name: tc.function.name,
|
|
993
|
+
argumentsDelta: tc.function.arguments
|
|
994
|
+
});
|
|
995
|
+
}
|
|
987
996
|
entry.observer({ type: "complete", payload: response });
|
|
988
997
|
} catch {
|
|
989
998
|
}
|