@antipopp/agno-client 0.9.0 → 0.10.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.d.mts +18 -7
- package/dist/index.d.ts +18 -7
- package/dist/index.js +373 -274
- package/dist/index.mjs +375 -274
- package/package.json +8 -4
package/dist/index.d.mts
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import EventEmitter from 'eventemitter3';
|
|
2
1
|
import { AgnoClientConfig, ChatMessage, ClientState, SessionEntry, ToolCall, AgentDetails, TeamDetails } from '@antipopp/agno-types';
|
|
3
2
|
export { AgentDetails, AgnoClientConfig, AudioData, ChatMessage, ClientState, ImageData, MessageExtraData, ResponseAudioData, RunEvent, RunResponse, RunResponseContent, SessionEntry, TeamDetails, ToolCall, VideoData } from '@antipopp/agno-types';
|
|
3
|
+
import EventEmitter from 'eventemitter3';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Main Agno client class
|
|
7
7
|
* Provides stateful management of agent/team interactions with streaming support
|
|
8
8
|
*/
|
|
9
9
|
declare class AgnoClient extends EventEmitter {
|
|
10
|
-
private messageStore;
|
|
11
|
-
private configManager;
|
|
12
|
-
private sessionManager;
|
|
13
|
-
private eventProcessor;
|
|
14
|
-
private state;
|
|
15
|
-
private pendingUISpecs;
|
|
10
|
+
private readonly messageStore;
|
|
11
|
+
private readonly configManager;
|
|
12
|
+
private readonly sessionManager;
|
|
13
|
+
private readonly eventProcessor;
|
|
14
|
+
private readonly state;
|
|
15
|
+
private readonly pendingUISpecs;
|
|
16
16
|
private runCompletedSuccessfully;
|
|
17
|
+
private currentRunId;
|
|
17
18
|
constructor(config: AgnoClientConfig);
|
|
18
19
|
/**
|
|
19
20
|
* Get current messages
|
|
@@ -35,6 +36,10 @@ declare class AgnoClient extends EventEmitter {
|
|
|
35
36
|
* Clear all messages
|
|
36
37
|
*/
|
|
37
38
|
clearMessages(): void;
|
|
39
|
+
/**
|
|
40
|
+
* Cancel an active or paused run
|
|
41
|
+
*/
|
|
42
|
+
cancelRun(): Promise<void>;
|
|
38
43
|
/**
|
|
39
44
|
* Send a message to the agent/team (streaming)
|
|
40
45
|
*/
|
|
@@ -134,6 +139,12 @@ declare class AgnoClient extends EventEmitter {
|
|
|
134
139
|
agents: AgentDetails[];
|
|
135
140
|
teams: TeamDetails[];
|
|
136
141
|
}>;
|
|
142
|
+
/**
|
|
143
|
+
* Dispose of the client and clean up all resources.
|
|
144
|
+
* Call this method when the client is no longer needed to prevent memory leaks.
|
|
145
|
+
* After calling dispose(), the client instance should not be reused.
|
|
146
|
+
*/
|
|
147
|
+
dispose(): void;
|
|
137
148
|
}
|
|
138
149
|
|
|
139
150
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import EventEmitter from 'eventemitter3';
|
|
2
1
|
import { AgnoClientConfig, ChatMessage, ClientState, SessionEntry, ToolCall, AgentDetails, TeamDetails } from '@antipopp/agno-types';
|
|
3
2
|
export { AgentDetails, AgnoClientConfig, AudioData, ChatMessage, ClientState, ImageData, MessageExtraData, ResponseAudioData, RunEvent, RunResponse, RunResponseContent, SessionEntry, TeamDetails, ToolCall, VideoData } from '@antipopp/agno-types';
|
|
3
|
+
import EventEmitter from 'eventemitter3';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Main Agno client class
|
|
7
7
|
* Provides stateful management of agent/team interactions with streaming support
|
|
8
8
|
*/
|
|
9
9
|
declare class AgnoClient extends EventEmitter {
|
|
10
|
-
private messageStore;
|
|
11
|
-
private configManager;
|
|
12
|
-
private sessionManager;
|
|
13
|
-
private eventProcessor;
|
|
14
|
-
private state;
|
|
15
|
-
private pendingUISpecs;
|
|
10
|
+
private readonly messageStore;
|
|
11
|
+
private readonly configManager;
|
|
12
|
+
private readonly sessionManager;
|
|
13
|
+
private readonly eventProcessor;
|
|
14
|
+
private readonly state;
|
|
15
|
+
private readonly pendingUISpecs;
|
|
16
16
|
private runCompletedSuccessfully;
|
|
17
|
+
private currentRunId;
|
|
17
18
|
constructor(config: AgnoClientConfig);
|
|
18
19
|
/**
|
|
19
20
|
* Get current messages
|
|
@@ -35,6 +36,10 @@ declare class AgnoClient extends EventEmitter {
|
|
|
35
36
|
* Clear all messages
|
|
36
37
|
*/
|
|
37
38
|
clearMessages(): void;
|
|
39
|
+
/**
|
|
40
|
+
* Cancel an active or paused run
|
|
41
|
+
*/
|
|
42
|
+
cancelRun(): Promise<void>;
|
|
38
43
|
/**
|
|
39
44
|
* Send a message to the agent/team (streaming)
|
|
40
45
|
*/
|
|
@@ -134,6 +139,12 @@ declare class AgnoClient extends EventEmitter {
|
|
|
134
139
|
agents: AgentDetails[];
|
|
135
140
|
teams: TeamDetails[];
|
|
136
141
|
}>;
|
|
142
|
+
/**
|
|
143
|
+
* Dispose of the client and clean up all resources.
|
|
144
|
+
* Call this method when the client is no longer needed to prevent memory leaks.
|
|
145
|
+
* After calling dispose(), the client instance should not be reused.
|
|
146
|
+
*/
|
|
147
|
+
dispose(): void;
|
|
137
148
|
}
|
|
138
149
|
|
|
139
150
|
/**
|