@kenkaiiii/gg-agent 6.0.0 → 6.0.1
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/index.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -281,6 +281,11 @@ interface AgentStreamRuleTriggeredEvent {
|
|
|
281
281
|
interface AgentToolCallDeltaEvent {
|
|
282
282
|
type: "toolcall_delta";
|
|
283
283
|
chars: number;
|
|
284
|
+
/** The call whose arguments are streaming in, when the provider names it. */
|
|
285
|
+
toolCallId?: string;
|
|
286
|
+
name?: string;
|
|
287
|
+
/** This chunk of the call's arguments: partial JSON. */
|
|
288
|
+
argsDelta?: string;
|
|
284
289
|
}
|
|
285
290
|
interface AgentErrorEvent {
|
|
286
291
|
type: "error";
|
package/dist/index.d.ts
CHANGED
|
@@ -281,6 +281,11 @@ interface AgentStreamRuleTriggeredEvent {
|
|
|
281
281
|
interface AgentToolCallDeltaEvent {
|
|
282
282
|
type: "toolcall_delta";
|
|
283
283
|
chars: number;
|
|
284
|
+
/** The call whose arguments are streaming in, when the provider names it. */
|
|
285
|
+
toolCallId?: string;
|
|
286
|
+
name?: string;
|
|
287
|
+
/** This chunk of the call's arguments: partial JSON. */
|
|
288
|
+
argsDelta?: string;
|
|
284
289
|
}
|
|
285
290
|
interface AgentErrorEvent {
|
|
286
291
|
type: "error";
|
package/dist/index.js
CHANGED
|
@@ -1094,7 +1094,10 @@ async function* agentLoop(messages, options) {
|
|
|
1094
1094
|
}
|
|
1095
1095
|
yield {
|
|
1096
1096
|
type: "toolcall_delta",
|
|
1097
|
-
chars: chunkChars
|
|
1097
|
+
chars: chunkChars,
|
|
1098
|
+
toolCallId: event.id,
|
|
1099
|
+
name: event.name,
|
|
1100
|
+
argsDelta: event.argsJson ?? ""
|
|
1098
1101
|
};
|
|
1099
1102
|
}
|
|
1100
1103
|
lastYieldEndTime = Date.now();
|