@agents24/client 0.2.1 → 0.2.3

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/types.d.ts CHANGED
@@ -197,6 +197,14 @@ export interface ClientModelSelectionFeature {
197
197
  label: string;
198
198
  }[];
199
199
  }
200
+ export interface ClientAgentSelectionFeature {
201
+ selectable: boolean;
202
+ default_id: string | null;
203
+ options: readonly {
204
+ id: string;
205
+ label: string;
206
+ }[];
207
+ }
200
208
  export interface ClientInputModalityFeature {
201
209
  enabled: boolean;
202
210
  required: boolean;
@@ -249,6 +257,7 @@ export interface ClientBootstrap {
249
257
  capabilities: readonly string[];
250
258
  features: Record<string, unknown> & {
251
259
  models?: ClientModelSelectionFeature;
260
+ agents?: ClientAgentSelectionFeature;
252
261
  inputs: ClientInputFeature;
253
262
  };
254
263
  native_profiles: readonly Record<string, unknown>[];
@@ -266,6 +275,7 @@ export interface ChatStreamInput {
266
275
  threadId?: string;
267
276
  attachmentIds?: readonly string[];
268
277
  requestedModelId?: string;
278
+ requestedAgentId?: string;
269
279
  toolInputs?: Readonly<Record<string, Readonly<Record<string, unknown>>>>;
270
280
  metadata?: Readonly<Record<string, unknown>>;
271
281
  client?: ClientHints;
@@ -327,8 +337,21 @@ export interface ThreadSummary {
327
337
  last_run_id?: string | null;
328
338
  last_run_status?: string | null;
329
339
  active_run?: ActiveThreadRun | null;
340
+ runtime_selection: ThreadRuntimeSelection;
341
+ participant_agents: readonly ThreadParticipantAgent[];
330
342
  [key: string]: unknown;
331
343
  }
344
+ export interface ThreadRuntimeSelection {
345
+ agent_id: string | null;
346
+ agent_alias: string | null;
347
+ model_id: string | null;
348
+ }
349
+ export interface ThreadParticipantAgent {
350
+ id: string;
351
+ name: string;
352
+ alias: string | null;
353
+ aliases: readonly string[];
354
+ }
332
355
  export interface ThreadListResult {
333
356
  items: ThreadSummary[];
334
357
  total?: number;
@@ -417,6 +440,7 @@ export interface EffectiveResourcePolicy {
417
440
  }
418
441
  export interface AgentClient {
419
442
  bootstrap(input?: {
443
+ agentId?: string;
420
444
  signal?: AbortSignalLike;
421
445
  }): Promise<ClientBootstrap>;
422
446
  readonly resourcePolicies: {
@@ -453,11 +477,27 @@ export interface AgentClient {
453
477
  idempotencyKey: string;
454
478
  signal?: AbortSignalLike;
455
479
  }): Promise<Record<string, unknown>>;
480
+ setRuntimeSelection?(input: {
481
+ threadId: string;
482
+ preferredAgentId: string;
483
+ preferredModelId?: string | null;
484
+ signal?: AbortSignalLike;
485
+ }): Promise<{
486
+ runtime_selection: ThreadRuntimeSelection;
487
+ models: {
488
+ default_id: string | null;
489
+ options: readonly {
490
+ id: string;
491
+ label: string;
492
+ }[];
493
+ };
494
+ }>;
456
495
  };
457
496
  readonly attachments: {
458
497
  uploadBatch(input: {
459
498
  uploads: readonly PortableUpload[];
460
499
  threadId?: string;
500
+ requestedAgentId?: string;
461
501
  idempotencyKey: string;
462
502
  signal?: AbortSignalLike;
463
503
  }): Promise<readonly AttachmentResult[]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agents24/client",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "Framework-neutral end-user runtime client for deployment-scoped Agents24 sessions.",
5
5
  "keywords": [
6
6
  "agents24",