agentxjs 1.9.10-dev → 2.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/README.md +257 -0
- package/dist/index.d.ts +237 -110
- package/dist/index.js +571 -301
- package/dist/index.js.map +1 -1
- package/package.json +11 -4
- package/src/LocalClient.ts +89 -0
- package/src/RemoteClient.ts +28 -136
- package/src/index.ts +145 -68
- package/src/namespaces/agents.ts +121 -0
- package/src/namespaces/containers.ts +68 -0
- package/src/namespaces/images.ts +180 -0
- package/src/namespaces/presentations.ts +22 -0
- package/src/namespaces/sessions.ts +60 -0
- package/src/presentation/Presentation.ts +15 -11
- package/src/presentation/index.ts +18 -19
- package/src/presentation/reducer.ts +274 -105
- package/src/presentation/types.ts +10 -0
- package/src/types.ts +201 -62
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Message } from '@agentxjs/core/agent';
|
|
2
|
+
import { CreateDriver } from '@agentxjs/core/driver';
|
|
3
|
+
import { Unsubscribe, BusEvent, EventBus, BusEventHandler } from '@agentxjs/core/event';
|
|
4
|
+
import { AgentXPlatform } from '@agentxjs/core/runtime';
|
|
2
5
|
|
|
3
6
|
/**
|
|
4
7
|
* Presentation Types
|
|
@@ -43,6 +46,13 @@ interface UserConversation {
|
|
|
43
46
|
role: "user";
|
|
44
47
|
blocks: Block[];
|
|
45
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* Token usage for a message (one LLM call / step)
|
|
51
|
+
*/
|
|
52
|
+
interface TokenUsage {
|
|
53
|
+
inputTokens: number;
|
|
54
|
+
outputTokens: number;
|
|
55
|
+
}
|
|
46
56
|
/**
|
|
47
57
|
* Assistant conversation
|
|
48
58
|
*/
|
|
@@ -50,6 +60,8 @@ interface AssistantConversation {
|
|
|
50
60
|
role: "assistant";
|
|
51
61
|
blocks: Block[];
|
|
52
62
|
isStreaming: boolean;
|
|
63
|
+
/** Accumulated token usage across all steps in this conversation */
|
|
64
|
+
usage?: TokenUsage;
|
|
53
65
|
}
|
|
54
66
|
/**
|
|
55
67
|
* Error conversation
|
|
@@ -84,26 +96,6 @@ interface PresentationState {
|
|
|
84
96
|
*/
|
|
85
97
|
declare const initialPresentationState: PresentationState;
|
|
86
98
|
|
|
87
|
-
/**
|
|
88
|
-
* Presentation Reducer
|
|
89
|
-
*
|
|
90
|
-
* Aggregates stream events into PresentationState.
|
|
91
|
-
* Pure function: (state, event) => newState
|
|
92
|
-
*/
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* Reduce a stream event into presentation state
|
|
96
|
-
*/
|
|
97
|
-
declare function presentationReducer(state: PresentationState, event: BusEvent): PresentationState;
|
|
98
|
-
/**
|
|
99
|
-
* Add a user conversation to state
|
|
100
|
-
*/
|
|
101
|
-
declare function addUserConversation(state: PresentationState, content: string): PresentationState;
|
|
102
|
-
/**
|
|
103
|
-
* Create initial state
|
|
104
|
-
*/
|
|
105
|
-
declare function createInitialState(): PresentationState;
|
|
106
|
-
|
|
107
99
|
/**
|
|
108
100
|
* Presentation Class
|
|
109
101
|
*
|
|
@@ -142,7 +134,7 @@ declare class Presentation {
|
|
|
142
134
|
private updateHandlers;
|
|
143
135
|
private errorHandlers;
|
|
144
136
|
private eventUnsubscribe;
|
|
145
|
-
constructor(agentx: AgentX, agentId: string, options?: PresentationOptions);
|
|
137
|
+
constructor(agentx: AgentX, agentId: string, options?: PresentationOptions, initialConversations?: Conversation[]);
|
|
146
138
|
/**
|
|
147
139
|
* Get current state
|
|
148
140
|
*/
|
|
@@ -176,6 +168,44 @@ declare class Presentation {
|
|
|
176
168
|
private notifyError;
|
|
177
169
|
}
|
|
178
170
|
|
|
171
|
+
/**
|
|
172
|
+
* Presentation Reducer
|
|
173
|
+
*
|
|
174
|
+
* Aggregates events into PresentationState.
|
|
175
|
+
* Pure function: (state, event) => newState
|
|
176
|
+
*
|
|
177
|
+
* Event consumption strategy:
|
|
178
|
+
* - Stream layer: message_start, text_delta, tool_use_start, tool_use_stop, message_stop
|
|
179
|
+
* (for real-time streaming display)
|
|
180
|
+
* - Message layer: tool_result_message
|
|
181
|
+
* (for tool execution results — arrives after message_stop)
|
|
182
|
+
*
|
|
183
|
+
* Tool calls are stream-level blocks within the assistant turn,
|
|
184
|
+
* matching the mainstream API pattern (Anthropic, OpenAI).
|
|
185
|
+
*/
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Reduce an event into presentation state.
|
|
189
|
+
*
|
|
190
|
+
* Consumes:
|
|
191
|
+
* - Stream events: message_start, text_delta, tool_use_start, tool_use_stop, message_stop
|
|
192
|
+
* - Message events: tool_result_message
|
|
193
|
+
* - Error events: error
|
|
194
|
+
*/
|
|
195
|
+
declare function presentationReducer(state: PresentationState, event: BusEvent): PresentationState;
|
|
196
|
+
declare function addUserConversation(state: PresentationState, content: string): PresentationState;
|
|
197
|
+
declare function createInitialState(): PresentationState;
|
|
198
|
+
/**
|
|
199
|
+
* Convert persisted Messages to Presentation Conversations.
|
|
200
|
+
*
|
|
201
|
+
* Groups consecutive assistant + tool-result messages
|
|
202
|
+
* into a single AssistantConversation.
|
|
203
|
+
*
|
|
204
|
+
* Tool calls are now part of AssistantMessage.content (as ToolCallPart),
|
|
205
|
+
* so we extract them directly from the assistant message.
|
|
206
|
+
*/
|
|
207
|
+
declare function messagesToConversations(messages: Message[]): Conversation[];
|
|
208
|
+
|
|
179
209
|
/**
|
|
180
210
|
* AgentX Client SDK Types
|
|
181
211
|
*/
|
|
@@ -185,34 +215,83 @@ declare class Presentation {
|
|
|
185
215
|
*/
|
|
186
216
|
type MaybeAsync<T> = T | (() => T) | (() => Promise<T>);
|
|
187
217
|
/**
|
|
188
|
-
*
|
|
218
|
+
* LLM provider identifier
|
|
219
|
+
*/
|
|
220
|
+
type LLMProvider = "anthropic" | "openai" | "google" | "xai" | "deepseek" | "mistral";
|
|
221
|
+
/**
|
|
222
|
+
* AgentX unified configuration
|
|
223
|
+
*
|
|
224
|
+
* Supports two modes:
|
|
225
|
+
* - **Local mode**: `apiKey` present → embedded Runtime + MonoDriver
|
|
226
|
+
* - **Remote mode**: `serverUrl` present → WebSocket client
|
|
189
227
|
*/
|
|
190
228
|
interface AgentXConfig {
|
|
191
229
|
/**
|
|
192
|
-
*
|
|
230
|
+
* API key for LLM provider (local mode)
|
|
231
|
+
* If present, enables local mode with embedded Runtime
|
|
232
|
+
*/
|
|
233
|
+
apiKey?: string;
|
|
234
|
+
/**
|
|
235
|
+
* LLM provider (local mode)
|
|
236
|
+
* @default "anthropic"
|
|
237
|
+
*/
|
|
238
|
+
provider?: LLMProvider;
|
|
239
|
+
/**
|
|
240
|
+
* Model ID (local mode)
|
|
241
|
+
*/
|
|
242
|
+
model?: string;
|
|
243
|
+
/**
|
|
244
|
+
* Base URL for API endpoint (local mode, for proxy/private deployments)
|
|
245
|
+
*/
|
|
246
|
+
baseUrl?: string;
|
|
247
|
+
/**
|
|
248
|
+
* Data storage path (local mode)
|
|
249
|
+
* @default ":memory:" (in-memory storage)
|
|
250
|
+
*/
|
|
251
|
+
dataPath?: string;
|
|
252
|
+
/**
|
|
253
|
+
* Custom CreateDriver factory (local mode, advanced)
|
|
254
|
+
* If provided, overrides the default MonoDriver
|
|
255
|
+
*/
|
|
256
|
+
createDriver?: CreateDriver;
|
|
257
|
+
/**
|
|
258
|
+
* Custom AgentXPlatform (local mode, advanced)
|
|
259
|
+
* If provided, overrides the default NodePlatform
|
|
260
|
+
*/
|
|
261
|
+
customPlatform?: AgentXPlatform;
|
|
262
|
+
/**
|
|
263
|
+
* WebSocket server URL (remote mode)
|
|
264
|
+
* If present, enables remote mode
|
|
193
265
|
*/
|
|
194
|
-
serverUrl
|
|
266
|
+
serverUrl?: string;
|
|
195
267
|
/**
|
|
196
|
-
* Headers for authentication (static or dynamic)
|
|
268
|
+
* Headers for authentication (remote mode, static or dynamic)
|
|
197
269
|
* In Node.js: sent during WebSocket handshake
|
|
198
270
|
* In browsers: sent as first auth message (WebSocket API limitation)
|
|
199
271
|
*/
|
|
200
272
|
headers?: MaybeAsync<Record<string, string>>;
|
|
201
273
|
/**
|
|
202
|
-
* Business context injected into all requests
|
|
274
|
+
* Business context injected into all requests (remote mode)
|
|
203
275
|
* Useful for passing userId, tenantId, permissions, etc.
|
|
204
276
|
*/
|
|
205
277
|
context?: MaybeAsync<Record<string, unknown>>;
|
|
278
|
+
/**
|
|
279
|
+
* Log level for AgentX runtime
|
|
280
|
+
* Controls verbosity of console/file logging.
|
|
281
|
+
* @default "info"
|
|
282
|
+
*/
|
|
283
|
+
logLevel?: "debug" | "info" | "warn" | "error" | "silent";
|
|
206
284
|
/**
|
|
207
285
|
* Request timeout in milliseconds (default: 30000)
|
|
208
286
|
*/
|
|
209
287
|
timeout?: number;
|
|
210
288
|
/**
|
|
211
289
|
* Enable debug logging
|
|
290
|
+
* @deprecated Use `logLevel: "debug"` instead
|
|
212
291
|
*/
|
|
213
292
|
debug?: boolean;
|
|
214
293
|
/**
|
|
215
|
-
* Auto reconnect on connection loss (default: true)
|
|
294
|
+
* Auto reconnect on connection loss (default: true, remote mode only)
|
|
216
295
|
*/
|
|
217
296
|
autoReconnect?: boolean;
|
|
218
297
|
}
|
|
@@ -236,6 +315,7 @@ interface ImageRecord {
|
|
|
236
315
|
name?: string;
|
|
237
316
|
description?: string;
|
|
238
317
|
systemPrompt?: string;
|
|
318
|
+
customData?: Record<string, unknown>;
|
|
239
319
|
createdAt: number;
|
|
240
320
|
updatedAt: number;
|
|
241
321
|
}
|
|
@@ -295,6 +375,12 @@ interface ImageListResponse extends BaseResponse {
|
|
|
295
375
|
records: ImageRecord[];
|
|
296
376
|
__subscriptions?: string[];
|
|
297
377
|
}
|
|
378
|
+
/**
|
|
379
|
+
* Image update response
|
|
380
|
+
*/
|
|
381
|
+
interface ImageUpdateResponse extends BaseResponse {
|
|
382
|
+
record: ImageRecord;
|
|
383
|
+
}
|
|
298
384
|
/**
|
|
299
385
|
* Container create response
|
|
300
386
|
*/
|
|
@@ -321,78 +407,151 @@ interface MessageSendResponse extends BaseResponse {
|
|
|
321
407
|
agentId: string;
|
|
322
408
|
}
|
|
323
409
|
/**
|
|
324
|
-
*
|
|
410
|
+
* Container operations namespace
|
|
325
411
|
*/
|
|
326
|
-
interface
|
|
412
|
+
interface ContainerNamespace {
|
|
327
413
|
/**
|
|
328
|
-
*
|
|
414
|
+
* Create or get container
|
|
329
415
|
*/
|
|
330
|
-
|
|
416
|
+
create(containerId: string): Promise<ContainerCreateResponse>;
|
|
331
417
|
/**
|
|
332
|
-
*
|
|
418
|
+
* Get container
|
|
333
419
|
*/
|
|
334
|
-
|
|
420
|
+
get(containerId: string): Promise<ContainerGetResponse>;
|
|
421
|
+
/**
|
|
422
|
+
* List containers
|
|
423
|
+
*/
|
|
424
|
+
list(): Promise<ContainerListResponse>;
|
|
425
|
+
}
|
|
426
|
+
/**
|
|
427
|
+
* Image operations namespace
|
|
428
|
+
*/
|
|
429
|
+
interface ImageNamespace {
|
|
430
|
+
/**
|
|
431
|
+
* Create a new image
|
|
432
|
+
*/
|
|
433
|
+
create(params: {
|
|
434
|
+
containerId: string;
|
|
435
|
+
name?: string;
|
|
436
|
+
description?: string;
|
|
437
|
+
systemPrompt?: string;
|
|
438
|
+
mcpServers?: Record<string, unknown>;
|
|
439
|
+
customData?: Record<string, unknown>;
|
|
440
|
+
}): Promise<ImageCreateResponse>;
|
|
441
|
+
/**
|
|
442
|
+
* Get image by ID
|
|
443
|
+
*/
|
|
444
|
+
get(imageId: string): Promise<ImageGetResponse>;
|
|
445
|
+
/**
|
|
446
|
+
* List images
|
|
447
|
+
*/
|
|
448
|
+
list(containerId?: string): Promise<ImageListResponse>;
|
|
449
|
+
/**
|
|
450
|
+
* Update image
|
|
451
|
+
*/
|
|
452
|
+
update(imageId: string, updates: {
|
|
453
|
+
name?: string;
|
|
454
|
+
description?: string;
|
|
455
|
+
customData?: Record<string, unknown>;
|
|
456
|
+
}): Promise<ImageUpdateResponse>;
|
|
457
|
+
/**
|
|
458
|
+
* Delete image
|
|
459
|
+
*/
|
|
460
|
+
delete(imageId: string): Promise<BaseResponse>;
|
|
461
|
+
}
|
|
462
|
+
/**
|
|
463
|
+
* Agent operations namespace
|
|
464
|
+
*/
|
|
465
|
+
interface AgentNamespace {
|
|
335
466
|
/**
|
|
336
467
|
* Create a new agent
|
|
337
468
|
*/
|
|
338
|
-
|
|
469
|
+
create(params: {
|
|
339
470
|
imageId: string;
|
|
340
471
|
agentId?: string;
|
|
341
472
|
}): Promise<AgentCreateResponse>;
|
|
342
473
|
/**
|
|
343
474
|
* Get agent by ID
|
|
344
475
|
*/
|
|
345
|
-
|
|
476
|
+
get(agentId: string): Promise<AgentGetResponse>;
|
|
346
477
|
/**
|
|
347
478
|
* List agents
|
|
348
479
|
*/
|
|
349
|
-
|
|
480
|
+
list(containerId?: string): Promise<AgentListResponse>;
|
|
350
481
|
/**
|
|
351
482
|
* Destroy an agent
|
|
352
483
|
*/
|
|
353
|
-
|
|
484
|
+
destroy(agentId: string): Promise<BaseResponse>;
|
|
485
|
+
}
|
|
486
|
+
/**
|
|
487
|
+
* Session operations namespace (messaging)
|
|
488
|
+
*/
|
|
489
|
+
interface SessionNamespace {
|
|
354
490
|
/**
|
|
355
491
|
* Send message to agent
|
|
356
492
|
*/
|
|
357
|
-
|
|
493
|
+
send(agentId: string, content: string | unknown[]): Promise<MessageSendResponse>;
|
|
358
494
|
/**
|
|
359
495
|
* Interrupt agent
|
|
360
496
|
*/
|
|
361
497
|
interrupt(agentId: string): Promise<BaseResponse>;
|
|
362
498
|
/**
|
|
363
|
-
*
|
|
499
|
+
* Get message history for an agent's session
|
|
364
500
|
*/
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
}): Promise<ImageCreateResponse>;
|
|
501
|
+
getMessages(agentId: string): Promise<Message[]>;
|
|
502
|
+
}
|
|
503
|
+
/**
|
|
504
|
+
* Presentation operations namespace
|
|
505
|
+
*/
|
|
506
|
+
interface PresentationNamespace {
|
|
372
507
|
/**
|
|
373
|
-
*
|
|
508
|
+
* Create a presentation for UI integration
|
|
509
|
+
*
|
|
510
|
+
* @example
|
|
511
|
+
* ```typescript
|
|
512
|
+
* const pres = agentx.presentations.create(agentId, {
|
|
513
|
+
* onUpdate: (state) => renderUI(state),
|
|
514
|
+
* onError: (error) => console.error(error),
|
|
515
|
+
* });
|
|
516
|
+
*
|
|
517
|
+
* await pres.send("Hello!");
|
|
518
|
+
* pres.dispose();
|
|
519
|
+
* ```
|
|
374
520
|
*/
|
|
375
|
-
|
|
521
|
+
create(agentId: string, options?: PresentationOptions): Promise<Presentation>;
|
|
522
|
+
}
|
|
523
|
+
/**
|
|
524
|
+
* AgentX Client SDK
|
|
525
|
+
*/
|
|
526
|
+
interface AgentX {
|
|
376
527
|
/**
|
|
377
|
-
*
|
|
528
|
+
* Check if connected to server
|
|
378
529
|
*/
|
|
379
|
-
|
|
530
|
+
readonly connected: boolean;
|
|
380
531
|
/**
|
|
381
|
-
*
|
|
532
|
+
* Event bus for subscribing to events
|
|
382
533
|
*/
|
|
383
|
-
|
|
534
|
+
readonly events: EventBus;
|
|
384
535
|
/**
|
|
385
|
-
*
|
|
536
|
+
* Container operations
|
|
386
537
|
*/
|
|
387
|
-
|
|
538
|
+
readonly containers: ContainerNamespace;
|
|
388
539
|
/**
|
|
389
|
-
*
|
|
540
|
+
* Image operations
|
|
390
541
|
*/
|
|
391
|
-
|
|
542
|
+
readonly images: ImageNamespace;
|
|
392
543
|
/**
|
|
393
|
-
*
|
|
544
|
+
* Agent operations
|
|
394
545
|
*/
|
|
395
|
-
|
|
546
|
+
readonly agents: AgentNamespace;
|
|
547
|
+
/**
|
|
548
|
+
* Session operations (messaging)
|
|
549
|
+
*/
|
|
550
|
+
readonly sessions: SessionNamespace;
|
|
551
|
+
/**
|
|
552
|
+
* Presentation operations (UI integration)
|
|
553
|
+
*/
|
|
554
|
+
readonly presentations: PresentationNamespace;
|
|
396
555
|
/**
|
|
397
556
|
* Subscribe to specific event type
|
|
398
557
|
*/
|
|
@@ -407,21 +566,6 @@ interface AgentX {
|
|
|
407
566
|
* Subscribe to session events
|
|
408
567
|
*/
|
|
409
568
|
subscribe(sessionId: string): void;
|
|
410
|
-
/**
|
|
411
|
-
* Create a presentation for UI integration
|
|
412
|
-
*
|
|
413
|
-
* @example
|
|
414
|
-
* ```typescript
|
|
415
|
-
* const presentation = agentx.presentation(agentId);
|
|
416
|
-
*
|
|
417
|
-
* presentation.onUpdate((state) => {
|
|
418
|
-
* render(state.conversations);
|
|
419
|
-
* });
|
|
420
|
-
*
|
|
421
|
-
* await presentation.send("Hello!");
|
|
422
|
-
* ```
|
|
423
|
-
*/
|
|
424
|
-
presentation(agentId: string, options?: PresentationOptions): Presentation;
|
|
425
569
|
/**
|
|
426
570
|
* Disconnect from server
|
|
427
571
|
*/
|
|
@@ -435,55 +579,34 @@ interface AgentX {
|
|
|
435
579
|
/**
|
|
436
580
|
* agentxjs - AgentX Client SDK
|
|
437
581
|
*
|
|
438
|
-
*
|
|
582
|
+
* Unified entry point supporting local and remote modes.
|
|
439
583
|
*
|
|
440
|
-
* @example
|
|
584
|
+
* @example Local mode (embedded runtime)
|
|
441
585
|
* ```typescript
|
|
442
586
|
* import { createAgentX } from "agentxjs";
|
|
443
587
|
*
|
|
444
|
-
* // Connect to server
|
|
445
588
|
* const agentx = await createAgentX({
|
|
446
|
-
*
|
|
447
|
-
*
|
|
448
|
-
* context: { userId: "123", tenantId: "abc" },
|
|
589
|
+
* apiKey: process.env.ANTHROPIC_API_KEY,
|
|
590
|
+
* provider: "anthropic",
|
|
449
591
|
* });
|
|
450
592
|
*
|
|
451
|
-
*
|
|
452
|
-
* await agentx.
|
|
453
|
-
*
|
|
454
|
-
*
|
|
455
|
-
* name: "Assistant",
|
|
456
|
-
* systemPrompt: "You are a helpful assistant",
|
|
593
|
+
* await agentx.containers.create("my-app");
|
|
594
|
+
* const { record: image } = await agentx.images.create({
|
|
595
|
+
* containerId: "my-app",
|
|
596
|
+
* systemPrompt: "You are helpful",
|
|
457
597
|
* });
|
|
598
|
+
* const { agentId } = await agentx.agents.create({ imageId: image.imageId });
|
|
458
599
|
*
|
|
459
|
-
*
|
|
460
|
-
*
|
|
461
|
-
*
|
|
462
|
-
* // Subscribe to events
|
|
463
|
-
* agentx.on("text_delta", (event) => {
|
|
464
|
-
* process.stdout.write(event.data.text);
|
|
465
|
-
* });
|
|
466
|
-
*
|
|
467
|
-
* agentx.on("assistant_message", (event) => {
|
|
468
|
-
* console.log("Complete:", event.data.content);
|
|
469
|
-
* });
|
|
470
|
-
*
|
|
471
|
-
* // Send message
|
|
472
|
-
* await agentx.sendMessage(agentId, "Hello!");
|
|
473
|
-
*
|
|
474
|
-
* // Cleanup
|
|
475
|
-
* await agentx.dispose();
|
|
600
|
+
* agentx.on("text_delta", (e) => process.stdout.write(e.data.text));
|
|
601
|
+
* await agentx.sessions.send(agentId, "Hello!");
|
|
476
602
|
* ```
|
|
477
603
|
*
|
|
478
|
-
* @example
|
|
604
|
+
* @example Remote mode (WebSocket client)
|
|
479
605
|
* ```typescript
|
|
606
|
+
* import { createAgentX } from "agentxjs";
|
|
607
|
+
*
|
|
480
608
|
* const agentx = await createAgentX({
|
|
481
609
|
* serverUrl: "ws://localhost:5200",
|
|
482
|
-
* headers: () => ({ Authorization: `Bearer ${getToken()}` }),
|
|
483
|
-
* context: async () => ({
|
|
484
|
-
* userId: await getUserId(),
|
|
485
|
-
* permissions: await getPermissions(),
|
|
486
|
-
* }),
|
|
487
610
|
* });
|
|
488
611
|
* ```
|
|
489
612
|
*/
|
|
@@ -491,9 +614,13 @@ interface AgentX {
|
|
|
491
614
|
/**
|
|
492
615
|
* Create an AgentX client
|
|
493
616
|
*
|
|
617
|
+
* Mode detection:
|
|
618
|
+
* - `serverUrl` present → **Remote mode** (WebSocket client)
|
|
619
|
+
* - `apiKey` present → **Local mode** (embedded Runtime + MonoDriver)
|
|
620
|
+
*
|
|
494
621
|
* @param config - Client configuration
|
|
495
622
|
* @returns Connected AgentX client
|
|
496
623
|
*/
|
|
497
624
|
declare function createAgentX(config: AgentXConfig): Promise<AgentX>;
|
|
498
625
|
|
|
499
|
-
export { type AgentCreateResponse, type AgentGetResponse, type AgentInfo, type AgentListResponse, type AgentX, type AgentXConfig, type AssistantConversation, type BaseResponse, type Block, type ContainerCreateResponse, type ContainerGetResponse, type ContainerInfo, type ContainerListResponse, type Conversation, type ErrorConversation, type ImageBlock, type ImageCreateResponse, type ImageGetResponse, type ImageListResponse, type ImageRecord, type MaybeAsync, type MessageSendResponse, Presentation, type PresentationErrorHandler, type PresentationOptions, type PresentationState, type PresentationUpdateHandler, type TextBlock, type ToolBlock, type UserConversation, addUserConversation, createAgentX, createInitialState, initialPresentationState, presentationReducer };
|
|
626
|
+
export { type AgentCreateResponse, type AgentGetResponse, type AgentInfo, type AgentListResponse, type AgentNamespace, type AgentX, type AgentXConfig, type AssistantConversation, type BaseResponse, type Block, type ContainerCreateResponse, type ContainerGetResponse, type ContainerInfo, type ContainerListResponse, type ContainerNamespace, type Conversation, type ErrorConversation, type ImageBlock, type ImageCreateResponse, type ImageGetResponse, type ImageListResponse, type ImageNamespace, type ImageRecord, type LLMProvider, type MaybeAsync, type MessageSendResponse, Presentation, type PresentationErrorHandler, type PresentationNamespace, type PresentationOptions, type PresentationState, type PresentationUpdateHandler, type SessionNamespace, type TextBlock, type ToolBlock, type UserConversation, addUserConversation, createAgentX, createInitialState, initialPresentationState, messagesToConversations, presentationReducer };
|