@antipopp/agno-client 0.1.0 → 0.2.0
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.js +8 -0
- package/dist/index.mjs +8 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -970,10 +970,18 @@ var AgnoClient = class extends import_eventemitter3.default {
|
|
|
970
970
|
}
|
|
971
971
|
}
|
|
972
972
|
if (event === import_agno_types2.RunEvent.RunPaused) {
|
|
973
|
+
console.log("[AgnoClient] RunPaused event detected");
|
|
974
|
+
console.log("[AgnoClient] Chunk:", chunk);
|
|
975
|
+
console.log("[AgnoClient] tools_awaiting_external_execution:", chunk.tools_awaiting_external_execution);
|
|
976
|
+
console.log("[AgnoClient] tools_requiring_confirmation:", chunk.tools_requiring_confirmation);
|
|
977
|
+
console.log("[AgnoClient] tools_requiring_user_input:", chunk.tools_requiring_user_input);
|
|
978
|
+
console.log("[AgnoClient] tools:", chunk.tools);
|
|
973
979
|
this.state.isStreaming = false;
|
|
974
980
|
this.state.isPaused = true;
|
|
975
981
|
this.state.pausedRunId = chunk.run_id;
|
|
976
982
|
this.state.toolsAwaitingExecution = chunk.tools_awaiting_external_execution || chunk.tools_requiring_confirmation || chunk.tools_requiring_user_input || chunk.tools || [];
|
|
983
|
+
console.log("[AgnoClient] toolsAwaitingExecution:", this.state.toolsAwaitingExecution);
|
|
984
|
+
console.log("[AgnoClient] Emitting run:paused event");
|
|
977
985
|
this.emit("run:paused", {
|
|
978
986
|
runId: chunk.run_id,
|
|
979
987
|
sessionId: chunk.session_id,
|
package/dist/index.mjs
CHANGED
|
@@ -932,10 +932,18 @@ var AgnoClient = class extends EventEmitter {
|
|
|
932
932
|
}
|
|
933
933
|
}
|
|
934
934
|
if (event === RunEvent.RunPaused) {
|
|
935
|
+
console.log("[AgnoClient] RunPaused event detected");
|
|
936
|
+
console.log("[AgnoClient] Chunk:", chunk);
|
|
937
|
+
console.log("[AgnoClient] tools_awaiting_external_execution:", chunk.tools_awaiting_external_execution);
|
|
938
|
+
console.log("[AgnoClient] tools_requiring_confirmation:", chunk.tools_requiring_confirmation);
|
|
939
|
+
console.log("[AgnoClient] tools_requiring_user_input:", chunk.tools_requiring_user_input);
|
|
940
|
+
console.log("[AgnoClient] tools:", chunk.tools);
|
|
935
941
|
this.state.isStreaming = false;
|
|
936
942
|
this.state.isPaused = true;
|
|
937
943
|
this.state.pausedRunId = chunk.run_id;
|
|
938
944
|
this.state.toolsAwaitingExecution = chunk.tools_awaiting_external_execution || chunk.tools_requiring_confirmation || chunk.tools_requiring_user_input || chunk.tools || [];
|
|
945
|
+
console.log("[AgnoClient] toolsAwaitingExecution:", this.state.toolsAwaitingExecution);
|
|
946
|
+
console.log("[AgnoClient] Emitting run:paused event");
|
|
939
947
|
this.emit("run:paused", {
|
|
940
948
|
runId: chunk.run_id,
|
|
941
949
|
sessionId: chunk.session_id,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antipopp/agno-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Core client library for Agno agents with streaming support and HITL frontend tool execution",
|
|
5
5
|
"author": "antipopp",
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"eventemitter3": "^5.0.1",
|
|
37
|
-
"@antipopp/agno-types": "0.
|
|
37
|
+
"@antipopp/agno-types": "0.2.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"tsup": "^8.0.1",
|