@distri/core 0.2.8 → 0.3.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/dist/index.d.mts CHANGED
@@ -223,14 +223,6 @@ declare class DistriClient {
223
223
  private refreshPromise?;
224
224
  private agentClients;
225
225
  constructor(config: DistriClientConfig);
226
- /**
227
- * Get the configured client ID.
228
- */
229
- get clientId(): string | undefined;
230
- /**
231
- * Set the client ID for embed token issuance.
232
- */
233
- set clientId(value: string | undefined);
234
226
  /**
235
227
  * Create a client with default cloud configuration.
236
228
  *
@@ -265,6 +257,25 @@ declare class DistriClient {
265
257
  * Session store: clear all keys in a session
266
258
  */
267
259
  clearSession(sessionId: string): Promise<void>;
260
+ private static readonly ADDITIONAL_PARTS_KEY;
261
+ /**
262
+ * Set additional user message parts for the next agent iteration.
263
+ * These parts will be appended to the user message in the prompt.
264
+ * @param sessionId - The thread/session ID
265
+ * @param parts - Array of DistriPart objects to append to user message
266
+ */
267
+ setAdditionalUserParts(sessionId: string, parts: DistriPart[]): Promise<void>;
268
+ /**
269
+ * Get the current additional user message parts.
270
+ * @param sessionId - The thread/session ID
271
+ * @returns Array of DistriPart objects or null if not set
272
+ */
273
+ getAdditionalUserParts(sessionId: string): Promise<DistriPart[] | null>;
274
+ /**
275
+ * Clear/delete the additional user message parts.
276
+ * @param sessionId - The thread/session ID
277
+ */
278
+ clearAdditionalUserParts(sessionId: string): Promise<void>;
268
279
  /**
269
280
  * Response from the token endpoint
270
281
  */
@@ -304,10 +315,6 @@ declare class DistriClient {
304
315
  accessToken?: string;
305
316
  refreshToken?: string;
306
317
  }): void;
307
- /**
308
- * Reset all authentication tokens.
309
- */
310
- resetTokens(): void;
311
318
  /**
312
319
  * Start streaming speech-to-text transcription via WebSocket
313
320
  */
@@ -334,7 +341,7 @@ declare class DistriClient {
334
341
  /**
335
342
  * Get specific agent by ID
336
343
  */
337
- getAgent(agentId: string): Promise<AgentConfigWithTools>;
344
+ getAgent(agentId: string): Promise<AgentDefinition>;
338
345
  /**
339
346
  * Get or create A2AClient for an agent
340
347
  */
@@ -385,9 +392,6 @@ declare class DistriClient {
385
392
  */
386
393
  get baseUrl(): string;
387
394
  private applyTokens;
388
- /**
389
- * Ensure access token is valid, refreshing if necessary
390
- */
391
395
  private ensureAccessToken;
392
396
  private refreshTokens;
393
397
  private performTokenRefresh;
@@ -401,10 +405,9 @@ declare class DistriClient {
401
405
  */
402
406
  private fetchAbsolute;
403
407
  /**
404
- * Enhanced fetch with retry logic and auth headers.
405
- * Exposed publicly for extensions like DistriHomeClient.
408
+ * Enhanced fetch with retry logic
406
409
  */
407
- fetch(input: RequestInfo | URL, initialInit?: RequestInit): Promise<Response>;
410
+ private fetch;
408
411
  /**
409
412
  * Delay utility
410
413
  */
@@ -454,20 +457,6 @@ interface InvokeResult {
454
457
  /** Whether the response was streamed */
455
458
  streamed: boolean;
456
459
  }
457
- interface ExternalToolValidationResult {
458
- isValid: boolean;
459
- requiredTools: string[];
460
- providedTools: string[];
461
- missingTools: string[];
462
- message?: string;
463
- }
464
- declare class ExternalToolValidationError extends DistriError {
465
- missingTools: string[];
466
- requiredTools: string[];
467
- providedTools: string[];
468
- agentName: string;
469
- constructor(agentName: string, result: ExternalToolValidationResult);
470
- }
471
460
  /**
472
461
  * Enhanced Agent class with simple tool system following AG-UI pattern
473
462
  */
@@ -476,7 +465,7 @@ declare class Agent {
476
465
  private agentDefinition;
477
466
  private hookHandlers;
478
467
  private defaultHookHandler;
479
- constructor(agentDefinition: AgentConfigWithTools, client: DistriClient);
468
+ constructor(agentDefinition: AgentDefinition, client: DistriClient);
480
469
  /**
481
470
  * Get agent information
482
471
  */
@@ -488,7 +477,7 @@ declare class Agent {
488
477
  /**
489
478
  * Get the full agent definition (including backend tools)
490
479
  */
491
- getDefinition(): AgentConfigWithTools;
480
+ getDefinition(): AgentDefinition;
492
481
  /**
493
482
  * Fetch messages for a thread (public method for useChat)
494
483
  */
@@ -501,19 +490,10 @@ declare class Agent {
501
490
  * Streaming invoke
502
491
  */
503
492
  invokeStream(params: MessageSendParams, tools?: DistriBaseTool[], hooks?: Record<string, HookHandler>): Promise<AsyncGenerator<DistriChatMessage>>;
504
- /**
505
- * Validate that required external tools are registered before invoking.
506
- */
507
- validateExternalTools(tools?: DistriBaseTool[]): ExternalToolValidationResult;
508
493
  /**
509
494
  * Enhance message params with tool definitions
510
495
  */
511
496
  private enhanceParamsWithTools;
512
- private assertExternalTools;
513
- private getRequiredExternalTools;
514
- private resolveToolConfig;
515
- private extractToolConfig;
516
- private formatExternalToolValidationMessage;
517
497
  /**
518
498
  * Register multiple hooks at once.
519
499
  */
@@ -521,7 +501,7 @@ declare class Agent {
521
501
  /**
522
502
  * Create an agent instance from an agent ID
523
503
  */
524
- static create(agentIdOrDef: string | AgentConfigWithTools, client: DistriClient): Promise<Agent>;
504
+ static create(agentIdOrDef: string | AgentDefinition, client: DistriClient): Promise<Agent>;
525
505
  /**
526
506
  * Complete an external tool call by sending the result back to the server
527
507
  */
@@ -710,18 +690,14 @@ interface FileUrl {
710
690
  name?: string;
711
691
  }
712
692
  type FileType = FileBytes | FileUrl;
713
- interface ToolDefinition {
714
- name: string;
715
- description: string;
716
- parameters: object;
717
- examples?: string;
718
- output_schema?: object;
719
- }
720
693
  /**
721
694
  * Tool definition interface following AG-UI pattern
722
695
  */
723
- interface DistriBaseTool extends ToolDefinition {
696
+ interface DistriBaseTool {
697
+ name: string;
724
698
  type: 'function' | 'ui';
699
+ description: string;
700
+ parameters: object;
725
701
  is_final?: boolean;
726
702
  autoExecute?: boolean;
727
703
  isExternal?: boolean;
@@ -777,10 +753,6 @@ declare function createFailedToolResult(toolCallId: string, toolName: string, er
777
753
  * Handles both frontend DistriPart format and backend BackendPart format
778
754
  */
779
755
  declare function extractToolResultData(toolResult: ToolResult): ToolResultData | null;
780
- interface AgentConfigWithTools extends AgentDefinition {
781
- markdown?: string;
782
- resolved_tools?: ToolDefinition[];
783
- }
784
756
  /**
785
757
  * Distri-specific Agent type that wraps A2A AgentCard
786
758
  */
@@ -800,8 +772,6 @@ interface AgentDefinition {
800
772
  mcp_servers?: McpDefinition[];
801
773
  /** Settings related to the model used by the agent. */
802
774
  model_settings?: ModelSettings;
803
- /** Secondary Model Settings used for analysis */
804
- analysis_model_settings?: ModelSettings;
805
775
  /** The size of the history to maintain for the agent. */
806
776
  history_size?: number;
807
777
  /** The planning configuration for the agent, if any. */
@@ -812,8 +782,8 @@ interface AgentDefinition {
812
782
  skills?: AgentSkill[];
813
783
  /** List of sub-agents that this agent can transfer control to */
814
784
  sub_agents?: string[];
785
+ agentType?: string;
815
786
  agent_type?: string;
816
- context_size?: number;
817
787
  tools?: DistriBaseTool[];
818
788
  browser_config?: BrowserAgentConfig;
819
789
  }
@@ -947,11 +917,6 @@ interface DistriClientConfig {
947
917
  * Request interceptor for modifying requests before sending
948
918
  */
949
919
  interceptor?: (init?: RequestInit) => Promise<RequestInit | undefined>;
950
- /**
951
- * Hook to refresh the access token when it expires.
952
- * Useful for public clients where only an access token is available.
953
- */
954
- onTokenRefresh?: () => Promise<string | null>;
955
920
  /**
956
921
  * Access token for bearer auth (optional)
957
922
  */
@@ -965,9 +930,12 @@ interface DistriClientConfig {
965
930
  */
966
931
  tokenRefreshSkewMs?: number;
967
932
  /**
968
- * Client ID from Distri Cloud.
933
+ * Callback invoked when tokens are refreshed
969
934
  */
970
- clientId?: string;
935
+ onTokenRefresh?: (tokens: {
936
+ accessToken: string;
937
+ refreshToken: string;
938
+ }) => void;
971
939
  }
972
940
  interface LLMResponse {
973
941
  finish_reason: string;
@@ -1078,4 +1046,4 @@ declare function extractToolCallsFromDistriMessage(message: DistriMessage): any[
1078
1046
  */
1079
1047
  declare function extractToolResultsFromDistriMessage(message: DistriMessage): any[];
1080
1048
 
1081
- export { A2AProtocolError, type A2AStreamEventData, type ActionPlanStep, Agent, type AgentConfigWithTools, type AgentDefinition, type AgentHandoverEvent, ApiError, type AssistantWithToolCalls, type BasePlanStep, type BatchToolCallsStep, type BrowserAgentConfig, type BrowserScreenshotEvent, type ChatCompletionChoice, type ChatCompletionMessage, type ChatCompletionRequest, type ChatCompletionResponse, type ChatCompletionResponseFormat, type ChatCompletionRole, type ChatProps, type CodePlanStep, type ConfigurationMeta, type ConfigurationResponse, ConnectionError, type ConnectionStatus, DEFAULT_BASE_URL, type DataPart, type DistriBaseTool, type DistriBrowserRuntimeConfig, type DistriChatMessage, DistriClient, type DistriClientConfig, type DistriConfiguration, DistriError, type DistriEvent, type DistriFnTool, type DistriMessage, type DistriPart, type DistriPlan, type DistriStreamEvent, type DistriThread, type ExternalMcpServer, ExternalToolValidationError, type ExternalToolValidationResult, type FeedbackReceivedEvent, type FileBytes, type FileType, type FileUrl, type FinalResultPlanStep, type HookContext, type HookHandler, type HookMutation, type ImagePart, type InlineHookEventData, type InlineHookRequest, type InlineHookRequestedEvent, type InvokeConfig, type InvokeContext, type InvokeResult, type LLMResponse, type LlmExecuteOptions, type LlmPlanStep, type McpDefinition, type McpServerType, type MessageRole, type ModelProviderConfig, type ModelProviderName, type ModelSettings, type PlanAction, type PlanFinishedEvent, type PlanPrunedEvent, type PlanStartedEvent, type PlanStep, type ReactStep, type Role, type RunErrorEvent, type RunFinishedEvent, type RunStartedEvent, type ServerConfig, type SpeechToTextConfig, type StepCompletedEvent, type StepStartedEvent, type StreamingTranscriptionOptions, type TextMessageContentEvent, type TextMessageEndEvent, type TextMessageStartEvent, type TextPart, type ThoughtPlanStep, type ThoughtStep, type Thread, type ToolCall, type ToolCallPart, type ToolCallsEvent, type ToolDefinition, type ToolExecutionEndEvent, type ToolExecutionOptions, type ToolExecutionStartEvent, type ToolHandler, type ToolRejectedEvent, type ToolResult, type ToolResultData, type ToolResultRefPart, type ToolResults, type ToolResultsEvent, type UseToolsOptions, convertA2AMessageToDistri, convertA2APartToDistri, convertA2AStatusUpdateToDistri, convertDistriMessageToA2A, convertDistriPartToA2A, createFailedToolResult, createSuccessfulToolResult, decodeA2AStreamEvent, extractTextFromDistriMessage, extractToolCallsFromDistriMessage, extractToolResultData, extractToolResultsFromDistriMessage, isArrayParts, isDistriEvent, isDistriMessage, processA2AMessagesData, processA2AStreamData, uuidv4 };
1049
+ export { A2AProtocolError, type A2AStreamEventData, type ActionPlanStep, Agent, type AgentDefinition, type AgentHandoverEvent, ApiError, type AssistantWithToolCalls, type BasePlanStep, type BatchToolCallsStep, type BrowserAgentConfig, type BrowserScreenshotEvent, type ChatCompletionChoice, type ChatCompletionMessage, type ChatCompletionRequest, type ChatCompletionResponse, type ChatCompletionResponseFormat, type ChatCompletionRole, type ChatProps, type CodePlanStep, type ConfigurationMeta, type ConfigurationResponse, ConnectionError, type ConnectionStatus, DEFAULT_BASE_URL, type DataPart, type DistriBaseTool, type DistriBrowserRuntimeConfig, type DistriChatMessage, DistriClient, type DistriClientConfig, type DistriConfiguration, DistriError, type DistriEvent, type DistriFnTool, type DistriMessage, type DistriPart, type DistriPlan, type DistriStreamEvent, type DistriThread, type ExternalMcpServer, type FeedbackReceivedEvent, type FileBytes, type FileType, type FileUrl, type FinalResultPlanStep, type HookContext, type HookHandler, type HookMutation, type ImagePart, type InlineHookEventData, type InlineHookRequest, type InlineHookRequestedEvent, type InvokeConfig, type InvokeContext, type InvokeResult, type LLMResponse, type LlmExecuteOptions, type LlmPlanStep, type McpDefinition, type McpServerType, type MessageRole, type ModelProviderConfig, type ModelProviderName, type ModelSettings, type PlanAction, type PlanFinishedEvent, type PlanPrunedEvent, type PlanStartedEvent, type PlanStep, type ReactStep, type Role, type RunErrorEvent, type RunFinishedEvent, type RunStartedEvent, type ServerConfig, type SpeechToTextConfig, type StepCompletedEvent, type StepStartedEvent, type StreamingTranscriptionOptions, type TextMessageContentEvent, type TextMessageEndEvent, type TextMessageStartEvent, type TextPart, type ThoughtPlanStep, type ThoughtStep, type Thread, type ToolCall, type ToolCallPart, type ToolCallsEvent, type ToolExecutionEndEvent, type ToolExecutionOptions, type ToolExecutionStartEvent, type ToolHandler, type ToolRejectedEvent, type ToolResult, type ToolResultData, type ToolResultRefPart, type ToolResults, type ToolResultsEvent, type UseToolsOptions, convertA2AMessageToDistri, convertA2APartToDistri, convertA2AStatusUpdateToDistri, convertDistriMessageToA2A, convertDistriPartToA2A, createFailedToolResult, createSuccessfulToolResult, decodeA2AStreamEvent, extractTextFromDistriMessage, extractToolCallsFromDistriMessage, extractToolResultData, extractToolResultsFromDistriMessage, isArrayParts, isDistriEvent, isDistriMessage, processA2AMessagesData, processA2AStreamData, uuidv4 };
package/dist/index.d.ts CHANGED
@@ -223,14 +223,6 @@ declare class DistriClient {
223
223
  private refreshPromise?;
224
224
  private agentClients;
225
225
  constructor(config: DistriClientConfig);
226
- /**
227
- * Get the configured client ID.
228
- */
229
- get clientId(): string | undefined;
230
- /**
231
- * Set the client ID for embed token issuance.
232
- */
233
- set clientId(value: string | undefined);
234
226
  /**
235
227
  * Create a client with default cloud configuration.
236
228
  *
@@ -265,6 +257,25 @@ declare class DistriClient {
265
257
  * Session store: clear all keys in a session
266
258
  */
267
259
  clearSession(sessionId: string): Promise<void>;
260
+ private static readonly ADDITIONAL_PARTS_KEY;
261
+ /**
262
+ * Set additional user message parts for the next agent iteration.
263
+ * These parts will be appended to the user message in the prompt.
264
+ * @param sessionId - The thread/session ID
265
+ * @param parts - Array of DistriPart objects to append to user message
266
+ */
267
+ setAdditionalUserParts(sessionId: string, parts: DistriPart[]): Promise<void>;
268
+ /**
269
+ * Get the current additional user message parts.
270
+ * @param sessionId - The thread/session ID
271
+ * @returns Array of DistriPart objects or null if not set
272
+ */
273
+ getAdditionalUserParts(sessionId: string): Promise<DistriPart[] | null>;
274
+ /**
275
+ * Clear/delete the additional user message parts.
276
+ * @param sessionId - The thread/session ID
277
+ */
278
+ clearAdditionalUserParts(sessionId: string): Promise<void>;
268
279
  /**
269
280
  * Response from the token endpoint
270
281
  */
@@ -304,10 +315,6 @@ declare class DistriClient {
304
315
  accessToken?: string;
305
316
  refreshToken?: string;
306
317
  }): void;
307
- /**
308
- * Reset all authentication tokens.
309
- */
310
- resetTokens(): void;
311
318
  /**
312
319
  * Start streaming speech-to-text transcription via WebSocket
313
320
  */
@@ -334,7 +341,7 @@ declare class DistriClient {
334
341
  /**
335
342
  * Get specific agent by ID
336
343
  */
337
- getAgent(agentId: string): Promise<AgentConfigWithTools>;
344
+ getAgent(agentId: string): Promise<AgentDefinition>;
338
345
  /**
339
346
  * Get or create A2AClient for an agent
340
347
  */
@@ -385,9 +392,6 @@ declare class DistriClient {
385
392
  */
386
393
  get baseUrl(): string;
387
394
  private applyTokens;
388
- /**
389
- * Ensure access token is valid, refreshing if necessary
390
- */
391
395
  private ensureAccessToken;
392
396
  private refreshTokens;
393
397
  private performTokenRefresh;
@@ -401,10 +405,9 @@ declare class DistriClient {
401
405
  */
402
406
  private fetchAbsolute;
403
407
  /**
404
- * Enhanced fetch with retry logic and auth headers.
405
- * Exposed publicly for extensions like DistriHomeClient.
408
+ * Enhanced fetch with retry logic
406
409
  */
407
- fetch(input: RequestInfo | URL, initialInit?: RequestInit): Promise<Response>;
410
+ private fetch;
408
411
  /**
409
412
  * Delay utility
410
413
  */
@@ -454,20 +457,6 @@ interface InvokeResult {
454
457
  /** Whether the response was streamed */
455
458
  streamed: boolean;
456
459
  }
457
- interface ExternalToolValidationResult {
458
- isValid: boolean;
459
- requiredTools: string[];
460
- providedTools: string[];
461
- missingTools: string[];
462
- message?: string;
463
- }
464
- declare class ExternalToolValidationError extends DistriError {
465
- missingTools: string[];
466
- requiredTools: string[];
467
- providedTools: string[];
468
- agentName: string;
469
- constructor(agentName: string, result: ExternalToolValidationResult);
470
- }
471
460
  /**
472
461
  * Enhanced Agent class with simple tool system following AG-UI pattern
473
462
  */
@@ -476,7 +465,7 @@ declare class Agent {
476
465
  private agentDefinition;
477
466
  private hookHandlers;
478
467
  private defaultHookHandler;
479
- constructor(agentDefinition: AgentConfigWithTools, client: DistriClient);
468
+ constructor(agentDefinition: AgentDefinition, client: DistriClient);
480
469
  /**
481
470
  * Get agent information
482
471
  */
@@ -488,7 +477,7 @@ declare class Agent {
488
477
  /**
489
478
  * Get the full agent definition (including backend tools)
490
479
  */
491
- getDefinition(): AgentConfigWithTools;
480
+ getDefinition(): AgentDefinition;
492
481
  /**
493
482
  * Fetch messages for a thread (public method for useChat)
494
483
  */
@@ -501,19 +490,10 @@ declare class Agent {
501
490
  * Streaming invoke
502
491
  */
503
492
  invokeStream(params: MessageSendParams, tools?: DistriBaseTool[], hooks?: Record<string, HookHandler>): Promise<AsyncGenerator<DistriChatMessage>>;
504
- /**
505
- * Validate that required external tools are registered before invoking.
506
- */
507
- validateExternalTools(tools?: DistriBaseTool[]): ExternalToolValidationResult;
508
493
  /**
509
494
  * Enhance message params with tool definitions
510
495
  */
511
496
  private enhanceParamsWithTools;
512
- private assertExternalTools;
513
- private getRequiredExternalTools;
514
- private resolveToolConfig;
515
- private extractToolConfig;
516
- private formatExternalToolValidationMessage;
517
497
  /**
518
498
  * Register multiple hooks at once.
519
499
  */
@@ -521,7 +501,7 @@ declare class Agent {
521
501
  /**
522
502
  * Create an agent instance from an agent ID
523
503
  */
524
- static create(agentIdOrDef: string | AgentConfigWithTools, client: DistriClient): Promise<Agent>;
504
+ static create(agentIdOrDef: string | AgentDefinition, client: DistriClient): Promise<Agent>;
525
505
  /**
526
506
  * Complete an external tool call by sending the result back to the server
527
507
  */
@@ -710,18 +690,14 @@ interface FileUrl {
710
690
  name?: string;
711
691
  }
712
692
  type FileType = FileBytes | FileUrl;
713
- interface ToolDefinition {
714
- name: string;
715
- description: string;
716
- parameters: object;
717
- examples?: string;
718
- output_schema?: object;
719
- }
720
693
  /**
721
694
  * Tool definition interface following AG-UI pattern
722
695
  */
723
- interface DistriBaseTool extends ToolDefinition {
696
+ interface DistriBaseTool {
697
+ name: string;
724
698
  type: 'function' | 'ui';
699
+ description: string;
700
+ parameters: object;
725
701
  is_final?: boolean;
726
702
  autoExecute?: boolean;
727
703
  isExternal?: boolean;
@@ -777,10 +753,6 @@ declare function createFailedToolResult(toolCallId: string, toolName: string, er
777
753
  * Handles both frontend DistriPart format and backend BackendPart format
778
754
  */
779
755
  declare function extractToolResultData(toolResult: ToolResult): ToolResultData | null;
780
- interface AgentConfigWithTools extends AgentDefinition {
781
- markdown?: string;
782
- resolved_tools?: ToolDefinition[];
783
- }
784
756
  /**
785
757
  * Distri-specific Agent type that wraps A2A AgentCard
786
758
  */
@@ -800,8 +772,6 @@ interface AgentDefinition {
800
772
  mcp_servers?: McpDefinition[];
801
773
  /** Settings related to the model used by the agent. */
802
774
  model_settings?: ModelSettings;
803
- /** Secondary Model Settings used for analysis */
804
- analysis_model_settings?: ModelSettings;
805
775
  /** The size of the history to maintain for the agent. */
806
776
  history_size?: number;
807
777
  /** The planning configuration for the agent, if any. */
@@ -812,8 +782,8 @@ interface AgentDefinition {
812
782
  skills?: AgentSkill[];
813
783
  /** List of sub-agents that this agent can transfer control to */
814
784
  sub_agents?: string[];
785
+ agentType?: string;
815
786
  agent_type?: string;
816
- context_size?: number;
817
787
  tools?: DistriBaseTool[];
818
788
  browser_config?: BrowserAgentConfig;
819
789
  }
@@ -947,11 +917,6 @@ interface DistriClientConfig {
947
917
  * Request interceptor for modifying requests before sending
948
918
  */
949
919
  interceptor?: (init?: RequestInit) => Promise<RequestInit | undefined>;
950
- /**
951
- * Hook to refresh the access token when it expires.
952
- * Useful for public clients where only an access token is available.
953
- */
954
- onTokenRefresh?: () => Promise<string | null>;
955
920
  /**
956
921
  * Access token for bearer auth (optional)
957
922
  */
@@ -965,9 +930,12 @@ interface DistriClientConfig {
965
930
  */
966
931
  tokenRefreshSkewMs?: number;
967
932
  /**
968
- * Client ID from Distri Cloud.
933
+ * Callback invoked when tokens are refreshed
969
934
  */
970
- clientId?: string;
935
+ onTokenRefresh?: (tokens: {
936
+ accessToken: string;
937
+ refreshToken: string;
938
+ }) => void;
971
939
  }
972
940
  interface LLMResponse {
973
941
  finish_reason: string;
@@ -1078,4 +1046,4 @@ declare function extractToolCallsFromDistriMessage(message: DistriMessage): any[
1078
1046
  */
1079
1047
  declare function extractToolResultsFromDistriMessage(message: DistriMessage): any[];
1080
1048
 
1081
- export { A2AProtocolError, type A2AStreamEventData, type ActionPlanStep, Agent, type AgentConfigWithTools, type AgentDefinition, type AgentHandoverEvent, ApiError, type AssistantWithToolCalls, type BasePlanStep, type BatchToolCallsStep, type BrowserAgentConfig, type BrowserScreenshotEvent, type ChatCompletionChoice, type ChatCompletionMessage, type ChatCompletionRequest, type ChatCompletionResponse, type ChatCompletionResponseFormat, type ChatCompletionRole, type ChatProps, type CodePlanStep, type ConfigurationMeta, type ConfigurationResponse, ConnectionError, type ConnectionStatus, DEFAULT_BASE_URL, type DataPart, type DistriBaseTool, type DistriBrowserRuntimeConfig, type DistriChatMessage, DistriClient, type DistriClientConfig, type DistriConfiguration, DistriError, type DistriEvent, type DistriFnTool, type DistriMessage, type DistriPart, type DistriPlan, type DistriStreamEvent, type DistriThread, type ExternalMcpServer, ExternalToolValidationError, type ExternalToolValidationResult, type FeedbackReceivedEvent, type FileBytes, type FileType, type FileUrl, type FinalResultPlanStep, type HookContext, type HookHandler, type HookMutation, type ImagePart, type InlineHookEventData, type InlineHookRequest, type InlineHookRequestedEvent, type InvokeConfig, type InvokeContext, type InvokeResult, type LLMResponse, type LlmExecuteOptions, type LlmPlanStep, type McpDefinition, type McpServerType, type MessageRole, type ModelProviderConfig, type ModelProviderName, type ModelSettings, type PlanAction, type PlanFinishedEvent, type PlanPrunedEvent, type PlanStartedEvent, type PlanStep, type ReactStep, type Role, type RunErrorEvent, type RunFinishedEvent, type RunStartedEvent, type ServerConfig, type SpeechToTextConfig, type StepCompletedEvent, type StepStartedEvent, type StreamingTranscriptionOptions, type TextMessageContentEvent, type TextMessageEndEvent, type TextMessageStartEvent, type TextPart, type ThoughtPlanStep, type ThoughtStep, type Thread, type ToolCall, type ToolCallPart, type ToolCallsEvent, type ToolDefinition, type ToolExecutionEndEvent, type ToolExecutionOptions, type ToolExecutionStartEvent, type ToolHandler, type ToolRejectedEvent, type ToolResult, type ToolResultData, type ToolResultRefPart, type ToolResults, type ToolResultsEvent, type UseToolsOptions, convertA2AMessageToDistri, convertA2APartToDistri, convertA2AStatusUpdateToDistri, convertDistriMessageToA2A, convertDistriPartToA2A, createFailedToolResult, createSuccessfulToolResult, decodeA2AStreamEvent, extractTextFromDistriMessage, extractToolCallsFromDistriMessage, extractToolResultData, extractToolResultsFromDistriMessage, isArrayParts, isDistriEvent, isDistriMessage, processA2AMessagesData, processA2AStreamData, uuidv4 };
1049
+ export { A2AProtocolError, type A2AStreamEventData, type ActionPlanStep, Agent, type AgentDefinition, type AgentHandoverEvent, ApiError, type AssistantWithToolCalls, type BasePlanStep, type BatchToolCallsStep, type BrowserAgentConfig, type BrowserScreenshotEvent, type ChatCompletionChoice, type ChatCompletionMessage, type ChatCompletionRequest, type ChatCompletionResponse, type ChatCompletionResponseFormat, type ChatCompletionRole, type ChatProps, type CodePlanStep, type ConfigurationMeta, type ConfigurationResponse, ConnectionError, type ConnectionStatus, DEFAULT_BASE_URL, type DataPart, type DistriBaseTool, type DistriBrowserRuntimeConfig, type DistriChatMessage, DistriClient, type DistriClientConfig, type DistriConfiguration, DistriError, type DistriEvent, type DistriFnTool, type DistriMessage, type DistriPart, type DistriPlan, type DistriStreamEvent, type DistriThread, type ExternalMcpServer, type FeedbackReceivedEvent, type FileBytes, type FileType, type FileUrl, type FinalResultPlanStep, type HookContext, type HookHandler, type HookMutation, type ImagePart, type InlineHookEventData, type InlineHookRequest, type InlineHookRequestedEvent, type InvokeConfig, type InvokeContext, type InvokeResult, type LLMResponse, type LlmExecuteOptions, type LlmPlanStep, type McpDefinition, type McpServerType, type MessageRole, type ModelProviderConfig, type ModelProviderName, type ModelSettings, type PlanAction, type PlanFinishedEvent, type PlanPrunedEvent, type PlanStartedEvent, type PlanStep, type ReactStep, type Role, type RunErrorEvent, type RunFinishedEvent, type RunStartedEvent, type ServerConfig, type SpeechToTextConfig, type StepCompletedEvent, type StepStartedEvent, type StreamingTranscriptionOptions, type TextMessageContentEvent, type TextMessageEndEvent, type TextMessageStartEvent, type TextPart, type ThoughtPlanStep, type ThoughtStep, type Thread, type ToolCall, type ToolCallPart, type ToolCallsEvent, type ToolExecutionEndEvent, type ToolExecutionOptions, type ToolExecutionStartEvent, type ToolHandler, type ToolRejectedEvent, type ToolResult, type ToolResultData, type ToolResultRefPart, type ToolResults, type ToolResultsEvent, type UseToolsOptions, convertA2AMessageToDistri, convertA2APartToDistri, convertA2AStatusUpdateToDistri, convertDistriMessageToA2A, convertDistriPartToA2A, createFailedToolResult, createSuccessfulToolResult, decodeA2AStreamEvent, extractTextFromDistriMessage, extractToolCallsFromDistriMessage, extractToolResultData, extractToolResultsFromDistriMessage, isArrayParts, isDistriEvent, isDistriMessage, processA2AMessagesData, processA2AStreamData, uuidv4 };