orchestrator-client 5.8.3 → 5.9.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.cjs +23 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +38 -2
- package/dist/index.d.ts +38 -2
- package/dist/index.js +23 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -387,6 +387,21 @@ interface ToolsListResult {
|
|
|
387
387
|
totalTools: number;
|
|
388
388
|
servers: string[];
|
|
389
389
|
}
|
|
390
|
+
/** The default toolset one workflow (or workflow variant) resolves to. */
|
|
391
|
+
interface WorkflowToolDefaults {
|
|
392
|
+
workflowId: string;
|
|
393
|
+
/** Null for every workflow except `vsa`, which is variant-aware. */
|
|
394
|
+
variant: string | null;
|
|
395
|
+
tools: string[];
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
398
|
+
* Default toolsets as returned by `GET /tools/defaults`.
|
|
399
|
+
*
|
|
400
|
+
* `vsa` appears once per variant; every other workflow gets a single entry.
|
|
401
|
+
*/
|
|
402
|
+
interface ToolDefaultsResult {
|
|
403
|
+
workflows: WorkflowToolDefaults[];
|
|
404
|
+
}
|
|
390
405
|
interface ToolCatalogEntry {
|
|
391
406
|
name: string;
|
|
392
407
|
description: string;
|
|
@@ -615,7 +630,14 @@ declare class OrchestratorAsync {
|
|
|
615
630
|
solutionStrategy?: string;
|
|
616
631
|
agentModelId?: string;
|
|
617
632
|
orchestratorModelId?: string;
|
|
618
|
-
|
|
633
|
+
/**
|
|
634
|
+
* Complete tool list for the task, built-in tools included -- naming a
|
|
635
|
+
* subset also switches the built-ins off. Omit (or pass `null`) to get
|
|
636
|
+
* the workflow's default toolset, which is resolved and stored on the
|
|
637
|
+
* task at creation time; see {@link getToolDefaults}. Pass `[]` to run
|
|
638
|
+
* the agent with no tools at all.
|
|
639
|
+
*/
|
|
640
|
+
availableTools?: string[] | null;
|
|
619
641
|
attachmentIds?: string[];
|
|
620
642
|
options?: Record<string, boolean>;
|
|
621
643
|
}): Promise<TaskCreateResponse>;
|
|
@@ -660,6 +682,11 @@ declare class OrchestratorAsync {
|
|
|
660
682
|
title?: string;
|
|
661
683
|
agentModelId?: string;
|
|
662
684
|
orchestratorModelId?: string;
|
|
685
|
+
/**
|
|
686
|
+
* Complete tool list for the task, built-ins included. Omit for the
|
|
687
|
+
* variant's default toolset; pass `[]` to run with no tools.
|
|
688
|
+
*/
|
|
689
|
+
availableTools?: string[] | null;
|
|
663
690
|
attachmentIds?: string[];
|
|
664
691
|
options?: Record<string, boolean>;
|
|
665
692
|
delegatedToken?: string;
|
|
@@ -692,6 +719,14 @@ declare class OrchestratorAsync {
|
|
|
692
719
|
getMioContext(taskId: string): Promise<MioContext>;
|
|
693
720
|
getMioMemories(taskId: string, includeCommon?: boolean): Promise<MioMemoriesResult>;
|
|
694
721
|
listTools(): Promise<ToolsListResult>;
|
|
722
|
+
/**
|
|
723
|
+
* Default toolset every workflow uses when `availableTools` is omitted.
|
|
724
|
+
*
|
|
725
|
+
* Resolved against the live catalog, so it only names tools that are
|
|
726
|
+
* reachable right now -- the same list a task created at this moment
|
|
727
|
+
* would receive.
|
|
728
|
+
*/
|
|
729
|
+
getToolDefaults(): Promise<ToolDefaultsResult>;
|
|
695
730
|
getToolCatalog(): Promise<ToolCatalogResult>;
|
|
696
731
|
refreshMCPTools(): Promise<MCPRefreshResult>;
|
|
697
732
|
validateToolCatalog(): Promise<CatalogValidationResult>;
|
|
@@ -830,6 +865,7 @@ declare class Orchestrator {
|
|
|
830
865
|
getMioContext(taskId: string): MioContext;
|
|
831
866
|
getMioMemories(taskId: string, includeCommon?: boolean): MioMemoriesResult;
|
|
832
867
|
listTools(): ToolsListResult;
|
|
868
|
+
getToolDefaults(): ToolDefaultsResult;
|
|
833
869
|
getToolCatalog(): ToolCatalogResult;
|
|
834
870
|
refreshMCPTools(): MCPRefreshResult;
|
|
835
871
|
validateToolCatalog(): CatalogValidationResult;
|
|
@@ -1379,4 +1415,4 @@ declare function deepCamelCase<T>(obj: T): T;
|
|
|
1379
1415
|
*/
|
|
1380
1416
|
declare const VERSION = "5.6.0";
|
|
1381
1417
|
|
|
1382
|
-
export { type ArchivedContent, type AttachmentMeta, type AttachmentUploadResponse, type AuthConfig, type CompactionEvent, type ComponentHealth, type ConfigurationStatus, type ConversationResult, DEFAULT_FLOW_TIMEOUT_MS, EVENT_ERROR_EVENT_RECORDED, EVENT_MESSAGE_ADDED, EVENT_MESSAGE_STREAMING, EVENT_MESSAGE_SUMMARY_GENERATED, EVENT_MESSAGE_TRANSLATION_READY, EVENT_TASK_CREATED, EVENT_TASK_DELETED, EVENT_TASK_INSIGHT_UPDATED, EVENT_TASK_ITERATION_CHANGED, EVENT_TASK_RESULT_UPDATED, EVENT_TASK_STATUS_CHANGED, type ErrorCountResult, type ErrorEvent, type ErrorEventDetail, type ErrorEventListResult, type ErrorPurgeResult, type ErrorStatsResult, type EventHandler, Flow, FlowCancelledError, FlowError, type FlowRunParams, FlowTimeoutError, type HealthDetail, type HealthStatus, type LLMBackendInfo, type LLMBackendStatus, type LLMModelContextInfo, type LLMModelVisionInfo, type LeaderStatus, type LockStatus, type MCPServerInfo, type MCPServerStatus, type MatrixConversationResult, type Message, type MessageDeleteMultipleResult, type MessageTranslation, type MessageTranslationReadyEvent, type MessageTranslationsResult, type MetricSnapshot, type MioContext, type MioMemoriesResult, type MioMemoryItem, Orchestrator, OrchestratorAPIError, OrchestratorAsync, OrchestratorAuthError, type OrchestratorClientOptions, type OrchestratorConfig, OrchestratorConfigError, OrchestratorConnectionError, OrchestratorError, OrchestratorNotFoundError, type Pagination$1 as Pagination, type ReadinessCheck, type ReadinessResult, RealtimeClient, type RealtimeClientOptions, type ReloadServicesResult, type ReloadStatus, type SlotInfo, type SlotsStatus, type SubagentsStatus, type SuccessResponse, type SummaryWorkerStatus, type SystemStatus, type SystemStatusSettings, type TaskCancelResponse, type TaskCreateResponse, type TaskDeleteResult, type TaskDetail, type TaskHandlerCluster, type TaskHandlerReplica, type TaskHandlerStatus, type TaskHandlerStatusLocal, type TaskJournal, type TaskListResult, type TaskOptions, type TaskSummary, type TokenWorkerStatus, type ToolCall, type ToolInfo, type ToolsListResult, VERSION, type VSATaskCreateResponse, type WebSocketClientInfo, type WebSocketStatus, type WorkflowStates, camelToSnake, createInsecureFetch, deepCamelCase, extractJsonFromMessage, loadConfig, setupDefaultClient, snakeToCamel };
|
|
1418
|
+
export { type ArchivedContent, type AttachmentMeta, type AttachmentUploadResponse, type AuthConfig, type CompactionEvent, type ComponentHealth, type ConfigurationStatus, type ConversationResult, DEFAULT_FLOW_TIMEOUT_MS, EVENT_ERROR_EVENT_RECORDED, EVENT_MESSAGE_ADDED, EVENT_MESSAGE_STREAMING, EVENT_MESSAGE_SUMMARY_GENERATED, EVENT_MESSAGE_TRANSLATION_READY, EVENT_TASK_CREATED, EVENT_TASK_DELETED, EVENT_TASK_INSIGHT_UPDATED, EVENT_TASK_ITERATION_CHANGED, EVENT_TASK_RESULT_UPDATED, EVENT_TASK_STATUS_CHANGED, type ErrorCountResult, type ErrorEvent, type ErrorEventDetail, type ErrorEventListResult, type ErrorPurgeResult, type ErrorStatsResult, type EventHandler, Flow, FlowCancelledError, FlowError, type FlowRunParams, FlowTimeoutError, type HealthDetail, type HealthStatus, type LLMBackendInfo, type LLMBackendStatus, type LLMModelContextInfo, type LLMModelVisionInfo, type LeaderStatus, type LockStatus, type MCPServerInfo, type MCPServerStatus, type MatrixConversationResult, type Message, type MessageDeleteMultipleResult, type MessageTranslation, type MessageTranslationReadyEvent, type MessageTranslationsResult, type MetricSnapshot, type MioContext, type MioMemoriesResult, type MioMemoryItem, Orchestrator, OrchestratorAPIError, OrchestratorAsync, OrchestratorAuthError, type OrchestratorClientOptions, type OrchestratorConfig, OrchestratorConfigError, OrchestratorConnectionError, OrchestratorError, OrchestratorNotFoundError, type Pagination$1 as Pagination, type ReadinessCheck, type ReadinessResult, RealtimeClient, type RealtimeClientOptions, type ReloadServicesResult, type ReloadStatus, type SlotInfo, type SlotsStatus, type SubagentsStatus, type SuccessResponse, type SummaryWorkerStatus, type SystemStatus, type SystemStatusSettings, type TaskCancelResponse, type TaskCreateResponse, type TaskDeleteResult, type TaskDetail, type TaskHandlerCluster, type TaskHandlerReplica, type TaskHandlerStatus, type TaskHandlerStatusLocal, type TaskJournal, type TaskListResult, type TaskOptions, type TaskSummary, type TokenWorkerStatus, type ToolCall, type ToolDefaultsResult, type ToolInfo, type ToolsListResult, VERSION, type VSATaskCreateResponse, type WebSocketClientInfo, type WebSocketStatus, type WorkflowStates, type WorkflowToolDefaults, camelToSnake, createInsecureFetch, deepCamelCase, extractJsonFromMessage, loadConfig, setupDefaultClient, snakeToCamel };
|
package/dist/index.d.ts
CHANGED
|
@@ -387,6 +387,21 @@ interface ToolsListResult {
|
|
|
387
387
|
totalTools: number;
|
|
388
388
|
servers: string[];
|
|
389
389
|
}
|
|
390
|
+
/** The default toolset one workflow (or workflow variant) resolves to. */
|
|
391
|
+
interface WorkflowToolDefaults {
|
|
392
|
+
workflowId: string;
|
|
393
|
+
/** Null for every workflow except `vsa`, which is variant-aware. */
|
|
394
|
+
variant: string | null;
|
|
395
|
+
tools: string[];
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
398
|
+
* Default toolsets as returned by `GET /tools/defaults`.
|
|
399
|
+
*
|
|
400
|
+
* `vsa` appears once per variant; every other workflow gets a single entry.
|
|
401
|
+
*/
|
|
402
|
+
interface ToolDefaultsResult {
|
|
403
|
+
workflows: WorkflowToolDefaults[];
|
|
404
|
+
}
|
|
390
405
|
interface ToolCatalogEntry {
|
|
391
406
|
name: string;
|
|
392
407
|
description: string;
|
|
@@ -615,7 +630,14 @@ declare class OrchestratorAsync {
|
|
|
615
630
|
solutionStrategy?: string;
|
|
616
631
|
agentModelId?: string;
|
|
617
632
|
orchestratorModelId?: string;
|
|
618
|
-
|
|
633
|
+
/**
|
|
634
|
+
* Complete tool list for the task, built-in tools included -- naming a
|
|
635
|
+
* subset also switches the built-ins off. Omit (or pass `null`) to get
|
|
636
|
+
* the workflow's default toolset, which is resolved and stored on the
|
|
637
|
+
* task at creation time; see {@link getToolDefaults}. Pass `[]` to run
|
|
638
|
+
* the agent with no tools at all.
|
|
639
|
+
*/
|
|
640
|
+
availableTools?: string[] | null;
|
|
619
641
|
attachmentIds?: string[];
|
|
620
642
|
options?: Record<string, boolean>;
|
|
621
643
|
}): Promise<TaskCreateResponse>;
|
|
@@ -660,6 +682,11 @@ declare class OrchestratorAsync {
|
|
|
660
682
|
title?: string;
|
|
661
683
|
agentModelId?: string;
|
|
662
684
|
orchestratorModelId?: string;
|
|
685
|
+
/**
|
|
686
|
+
* Complete tool list for the task, built-ins included. Omit for the
|
|
687
|
+
* variant's default toolset; pass `[]` to run with no tools.
|
|
688
|
+
*/
|
|
689
|
+
availableTools?: string[] | null;
|
|
663
690
|
attachmentIds?: string[];
|
|
664
691
|
options?: Record<string, boolean>;
|
|
665
692
|
delegatedToken?: string;
|
|
@@ -692,6 +719,14 @@ declare class OrchestratorAsync {
|
|
|
692
719
|
getMioContext(taskId: string): Promise<MioContext>;
|
|
693
720
|
getMioMemories(taskId: string, includeCommon?: boolean): Promise<MioMemoriesResult>;
|
|
694
721
|
listTools(): Promise<ToolsListResult>;
|
|
722
|
+
/**
|
|
723
|
+
* Default toolset every workflow uses when `availableTools` is omitted.
|
|
724
|
+
*
|
|
725
|
+
* Resolved against the live catalog, so it only names tools that are
|
|
726
|
+
* reachable right now -- the same list a task created at this moment
|
|
727
|
+
* would receive.
|
|
728
|
+
*/
|
|
729
|
+
getToolDefaults(): Promise<ToolDefaultsResult>;
|
|
695
730
|
getToolCatalog(): Promise<ToolCatalogResult>;
|
|
696
731
|
refreshMCPTools(): Promise<MCPRefreshResult>;
|
|
697
732
|
validateToolCatalog(): Promise<CatalogValidationResult>;
|
|
@@ -830,6 +865,7 @@ declare class Orchestrator {
|
|
|
830
865
|
getMioContext(taskId: string): MioContext;
|
|
831
866
|
getMioMemories(taskId: string, includeCommon?: boolean): MioMemoriesResult;
|
|
832
867
|
listTools(): ToolsListResult;
|
|
868
|
+
getToolDefaults(): ToolDefaultsResult;
|
|
833
869
|
getToolCatalog(): ToolCatalogResult;
|
|
834
870
|
refreshMCPTools(): MCPRefreshResult;
|
|
835
871
|
validateToolCatalog(): CatalogValidationResult;
|
|
@@ -1379,4 +1415,4 @@ declare function deepCamelCase<T>(obj: T): T;
|
|
|
1379
1415
|
*/
|
|
1380
1416
|
declare const VERSION = "5.6.0";
|
|
1381
1417
|
|
|
1382
|
-
export { type ArchivedContent, type AttachmentMeta, type AttachmentUploadResponse, type AuthConfig, type CompactionEvent, type ComponentHealth, type ConfigurationStatus, type ConversationResult, DEFAULT_FLOW_TIMEOUT_MS, EVENT_ERROR_EVENT_RECORDED, EVENT_MESSAGE_ADDED, EVENT_MESSAGE_STREAMING, EVENT_MESSAGE_SUMMARY_GENERATED, EVENT_MESSAGE_TRANSLATION_READY, EVENT_TASK_CREATED, EVENT_TASK_DELETED, EVENT_TASK_INSIGHT_UPDATED, EVENT_TASK_ITERATION_CHANGED, EVENT_TASK_RESULT_UPDATED, EVENT_TASK_STATUS_CHANGED, type ErrorCountResult, type ErrorEvent, type ErrorEventDetail, type ErrorEventListResult, type ErrorPurgeResult, type ErrorStatsResult, type EventHandler, Flow, FlowCancelledError, FlowError, type FlowRunParams, FlowTimeoutError, type HealthDetail, type HealthStatus, type LLMBackendInfo, type LLMBackendStatus, type LLMModelContextInfo, type LLMModelVisionInfo, type LeaderStatus, type LockStatus, type MCPServerInfo, type MCPServerStatus, type MatrixConversationResult, type Message, type MessageDeleteMultipleResult, type MessageTranslation, type MessageTranslationReadyEvent, type MessageTranslationsResult, type MetricSnapshot, type MioContext, type MioMemoriesResult, type MioMemoryItem, Orchestrator, OrchestratorAPIError, OrchestratorAsync, OrchestratorAuthError, type OrchestratorClientOptions, type OrchestratorConfig, OrchestratorConfigError, OrchestratorConnectionError, OrchestratorError, OrchestratorNotFoundError, type Pagination$1 as Pagination, type ReadinessCheck, type ReadinessResult, RealtimeClient, type RealtimeClientOptions, type ReloadServicesResult, type ReloadStatus, type SlotInfo, type SlotsStatus, type SubagentsStatus, type SuccessResponse, type SummaryWorkerStatus, type SystemStatus, type SystemStatusSettings, type TaskCancelResponse, type TaskCreateResponse, type TaskDeleteResult, type TaskDetail, type TaskHandlerCluster, type TaskHandlerReplica, type TaskHandlerStatus, type TaskHandlerStatusLocal, type TaskJournal, type TaskListResult, type TaskOptions, type TaskSummary, type TokenWorkerStatus, type ToolCall, type ToolInfo, type ToolsListResult, VERSION, type VSATaskCreateResponse, type WebSocketClientInfo, type WebSocketStatus, type WorkflowStates, camelToSnake, createInsecureFetch, deepCamelCase, extractJsonFromMessage, loadConfig, setupDefaultClient, snakeToCamel };
|
|
1418
|
+
export { type ArchivedContent, type AttachmentMeta, type AttachmentUploadResponse, type AuthConfig, type CompactionEvent, type ComponentHealth, type ConfigurationStatus, type ConversationResult, DEFAULT_FLOW_TIMEOUT_MS, EVENT_ERROR_EVENT_RECORDED, EVENT_MESSAGE_ADDED, EVENT_MESSAGE_STREAMING, EVENT_MESSAGE_SUMMARY_GENERATED, EVENT_MESSAGE_TRANSLATION_READY, EVENT_TASK_CREATED, EVENT_TASK_DELETED, EVENT_TASK_INSIGHT_UPDATED, EVENT_TASK_ITERATION_CHANGED, EVENT_TASK_RESULT_UPDATED, EVENT_TASK_STATUS_CHANGED, type ErrorCountResult, type ErrorEvent, type ErrorEventDetail, type ErrorEventListResult, type ErrorPurgeResult, type ErrorStatsResult, type EventHandler, Flow, FlowCancelledError, FlowError, type FlowRunParams, FlowTimeoutError, type HealthDetail, type HealthStatus, type LLMBackendInfo, type LLMBackendStatus, type LLMModelContextInfo, type LLMModelVisionInfo, type LeaderStatus, type LockStatus, type MCPServerInfo, type MCPServerStatus, type MatrixConversationResult, type Message, type MessageDeleteMultipleResult, type MessageTranslation, type MessageTranslationReadyEvent, type MessageTranslationsResult, type MetricSnapshot, type MioContext, type MioMemoriesResult, type MioMemoryItem, Orchestrator, OrchestratorAPIError, OrchestratorAsync, OrchestratorAuthError, type OrchestratorClientOptions, type OrchestratorConfig, OrchestratorConfigError, OrchestratorConnectionError, OrchestratorError, OrchestratorNotFoundError, type Pagination$1 as Pagination, type ReadinessCheck, type ReadinessResult, RealtimeClient, type RealtimeClientOptions, type ReloadServicesResult, type ReloadStatus, type SlotInfo, type SlotsStatus, type SubagentsStatus, type SuccessResponse, type SummaryWorkerStatus, type SystemStatus, type SystemStatusSettings, type TaskCancelResponse, type TaskCreateResponse, type TaskDeleteResult, type TaskDetail, type TaskHandlerCluster, type TaskHandlerReplica, type TaskHandlerStatus, type TaskHandlerStatusLocal, type TaskJournal, type TaskListResult, type TaskOptions, type TaskSummary, type TokenWorkerStatus, type ToolCall, type ToolDefaultsResult, type ToolInfo, type ToolsListResult, VERSION, type VSATaskCreateResponse, type WebSocketClientInfo, type WebSocketStatus, type WorkflowStates, type WorkflowToolDefaults, camelToSnake, createInsecureFetch, deepCamelCase, extractJsonFromMessage, loadConfig, setupDefaultClient, snakeToCamel };
|
package/dist/index.js
CHANGED
|
@@ -695,6 +695,7 @@ var OrchestratorAsync = class {
|
|
|
695
695
|
title: params.title,
|
|
696
696
|
agent_model_id: params.agentModelId,
|
|
697
697
|
orchestrator_model_id: params.orchestratorModelId,
|
|
698
|
+
available_tools: params.availableTools,
|
|
698
699
|
attachment_ids: params.attachmentIds,
|
|
699
700
|
options: params.options
|
|
700
701
|
};
|
|
@@ -891,6 +892,25 @@ var OrchestratorAsync = class {
|
|
|
891
892
|
servers: data.servers ?? []
|
|
892
893
|
};
|
|
893
894
|
}
|
|
895
|
+
/**
|
|
896
|
+
* Default toolset every workflow uses when `availableTools` is omitted.
|
|
897
|
+
*
|
|
898
|
+
* Resolved against the live catalog, so it only names tools that are
|
|
899
|
+
* reachable right now -- the same list a task created at this moment
|
|
900
|
+
* would receive.
|
|
901
|
+
*/
|
|
902
|
+
async getToolDefaults() {
|
|
903
|
+
const data = await this._get("/tools/defaults");
|
|
904
|
+
return {
|
|
905
|
+
workflows: (data.workflows ?? []).map(
|
|
906
|
+
(w) => ({
|
|
907
|
+
workflowId: w.workflowId ?? w.workflow_id ?? "",
|
|
908
|
+
variant: w.variant ?? null,
|
|
909
|
+
tools: w.tools ?? []
|
|
910
|
+
})
|
|
911
|
+
)
|
|
912
|
+
};
|
|
913
|
+
}
|
|
894
914
|
async getToolCatalog() {
|
|
895
915
|
return this._get("/tools/catalog");
|
|
896
916
|
}
|
|
@@ -1489,6 +1509,9 @@ var Orchestrator = class {
|
|
|
1489
1509
|
listTools() {
|
|
1490
1510
|
return runSync(this._async.listTools());
|
|
1491
1511
|
}
|
|
1512
|
+
getToolDefaults() {
|
|
1513
|
+
return runSync(this._async.getToolDefaults());
|
|
1514
|
+
}
|
|
1492
1515
|
getToolCatalog() {
|
|
1493
1516
|
return runSync(this._async.getToolCatalog());
|
|
1494
1517
|
}
|