@dudousxd/nestjs-agent-react 0.15.0 → 0.16.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.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as ai from 'ai';
2
2
  import { ChatTransport, UIMessage, UIMessageChunk, DataUIPart, UIDataTypes } from 'ai';
3
3
  import * as _dudousxd_nestjs_agent_core from '@dudousxd/nestjs-agent-core';
4
- import { ThreadSummary, ThreadDetail, MessageAttachment, ToolCatalogEntry, SkillCatalogEntry, QuotaView, MessageFeedbackValue, MessageFeedback, StoredMessage } from '@dudousxd/nestjs-agent-core';
4
+ import { ThreadSummary, ThreadDetail, MessageAttachment, ToolCatalogEntry, SkillCatalogEntry, QuotaView, ModelCatalogView, AgentCatalogEntry, MessageFeedbackValue, MessageFeedback, ModelCatalogEntry, StoredMessage } from '@dudousxd/nestjs-agent-core';
5
5
  export { ElicitationInput, ElicitationInputType, validateElicitationAnswer as validateAnswer, validateElicitationValue as validateAnswerValue } from '@dudousxd/nestjs-agent-core';
6
6
  import React__default from 'react';
7
7
  import { a as TranscriptBlock, U as UsageSummary, b as TimestampInfo, C as ChatStatus, M as MessageUsageInfo, c as ToolCatalog, A as ApproveOptions, d as AnyToolUIPart, e as TranscriptFile, T as TranscriptUiBlock } from './model-gHqjNjLJ.cjs';
@@ -15,10 +15,12 @@ export { f as ApprovalBlockOptions, B as BuildBlocksOptions, g as CoercibleQuest
15
15
  interface ThreadPatch {
16
16
  title?: string;
17
17
  defaultAgent?: string | null;
18
+ /** Pin a catalog model on the thread; `null` unpins it. */
19
+ model?: string | null;
18
20
  }
19
21
  /** Starting a turn: the body `POST <base>/chat` takes (see docs/stream-protocol.md). */
20
22
  interface ChatStreamRequest {
21
- /** `{ message, threadId?, agent?, attachments?, pageContext?, regenerate?, … }`. */
23
+ /** `{ message, threadId?, agent?, model?, attachments?, pageContext?, regenerate?, … }`. */
22
24
  body: Record<string, unknown>;
23
25
  /** Per-request headers the AI SDK was handed for this send. */
24
26
  headers?: Record<string, string>;
@@ -104,6 +106,10 @@ interface AgentBackend {
104
106
  listTools?(agent?: string): Promise<ToolCatalogEntry[]>;
105
107
  listSkills?(threadId?: string): Promise<SkillCatalogEntry[]>;
106
108
  getQuotaToday?(): Promise<QuotaView>;
109
+ /** `GET <base>/models?agent=` — what a model picker offers. */
110
+ listModels?(agent?: string): Promise<ModelCatalogView>;
111
+ /** `GET <base>/agents` — what an agent picker offers. */
112
+ listAgents?(): Promise<AgentCatalogEntry[]>;
107
113
  setMessageFeedback?(messageId: string, input: MessageFeedbackInput): Promise<{
108
114
  feedback: MessageFeedback | null;
109
115
  }>;
@@ -286,6 +292,61 @@ declare class AgentChatTransport implements ChatTransport<UIMessage> {
286
292
  private toChunkStream;
287
293
  }
288
294
 
295
+ interface UseAgentsOptions {
296
+ /** `useAgentChat(...).backend`, or your own. Must implement `listAgents`. */
297
+ backend: AgentBackend;
298
+ /** `false` holds the request. Default `true`. */
299
+ enabled?: boolean;
300
+ }
301
+ interface AgentsState {
302
+ /** `[]` until loaded. */
303
+ agents: AgentCatalogEntry[];
304
+ /** The agent a turn runs as when none is named. */
305
+ defaultAgent: string | null;
306
+ isLoading: boolean;
307
+ error: Error | null;
308
+ refresh: () => Promise<void>;
309
+ }
310
+ /**
311
+ * The registered agents (`GET <base>/agents`) — the data behind an agent picker. Send the pick as
312
+ * `useAgentChat({ agent })`, or pin it on a thread with `PATCH <base>/threads/:id { defaultAgent }`.
313
+ */
314
+ declare function useAgents(options: UseAgentsOptions): AgentsState;
315
+
316
+ interface UseModelsOptions {
317
+ /** `useAgentChat(...).backend`, or your own. Must implement `listModels`. */
318
+ backend: AgentBackend;
319
+ /** The agent to list models for; omitted → the default agent. */
320
+ agent?: string;
321
+ /** `false` holds the request. Default `true`. */
322
+ enabled?: boolean;
323
+ }
324
+ /** A catalog entry with the provider it sits under, for a flat list or a search. */
325
+ interface ModelOption extends ModelCatalogEntry {
326
+ providerId: string;
327
+ providerLabel: string;
328
+ }
329
+ interface ModelsState {
330
+ /** Grouped as the server sent them. `[]` until loaded. */
331
+ providers: ModelCatalogView['providers'];
332
+ /** Every model, flattened in provider order. */
333
+ models: ModelOption[];
334
+ /** The model a turn runs on when none is picked, or `null` when the provider decides. */
335
+ defaultModel: string | null;
336
+ /** The entry for `id`, or `undefined`. */
337
+ find: (id: string | null | undefined) => ModelOption | undefined;
338
+ isLoading: boolean;
339
+ error: Error | null;
340
+ refresh: () => Promise<void>;
341
+ }
342
+ /**
343
+ * The models this caller may pick (`GET <base>/models?agent=`), with badges and availability — the
344
+ * data behind a model picker. Headless: render the options however you like, then send the pick
345
+ * as `useAgentChat({ model })`, `sendMessage(msg, { body: { model } })`, or pin it on the thread
346
+ * with `chat.setThreadModel(id)`.
347
+ */
348
+ declare function useModels(options: UseModelsOptions): ModelsState;
349
+
289
350
  interface UseMessageFeedbackOptions {
290
351
  /** `useAgentChat(...).backend`, or your own. Must implement `setMessageFeedback`. */
291
352
  backend: AgentBackend;
@@ -481,6 +542,10 @@ declare class AgentClient implements AgentBackend {
481
542
  uploadAttachment(file: File, options?: UploadAttachmentOptions): Promise<MessageAttachment>;
482
543
  promoteThread(id: string): Promise<OkResult>;
483
544
  truncateFromMessage(threadId: string, messageId: string): Promise<OkResult>;
545
+ /** `GET /agent/models?agent=` — the models this caller may pick, grouped by provider. */
546
+ listModels(agent?: string): Promise<ModelCatalogView>;
547
+ /** `GET /agent/agents` — the registered agents, the default one flagged. */
548
+ listAgents(): Promise<AgentCatalogEntry[]>;
484
549
  getQuotaToday(): Promise<QuotaToday>;
485
550
  cancelStream(runId: string): Promise<CancelResult>;
486
551
  /**
@@ -1308,6 +1373,12 @@ interface UseAgentChatOptions<B extends AgentBackend = AgentClient> {
1308
1373
  client?: B;
1309
1374
  /** Named agent to run each turn. */
1310
1375
  agent?: string;
1376
+ /**
1377
+ * Catalog model to run each turn on (see `useModels`), sent as the body's `model`. Read at every
1378
+ * send, so a picker can change it between turns. Omitted → the thread's pinned model, else the
1379
+ * server default. A single send can still override it with `sendMessage(msg, { body: { model } })`.
1380
+ */
1381
+ model?: string;
1311
1382
  /** Thread this chat is bound to. Omitted → backend creates one on send. */
1312
1383
  threadId?: string;
1313
1384
  /** Persisted history to seed `useChat` with (consumed on mount only). */
@@ -1447,6 +1518,7 @@ declare function useAgentChat<B extends AgentBackend = AgentClient>(options: Use
1447
1518
  * on the first send. A getter, because the created id is learned mid-stream.
1448
1519
  */
1449
1520
  getThreadId: () => string | undefined;
1521
+ setThreadModel: (model: string | null) => Promise<void>;
1450
1522
  /** The backend this chat talks to — pass it to `useThreads`, `useMessageFeedback`, … */
1451
1523
  backend: B;
1452
1524
  /** Same object as {@link backend}; kept for callers that read it under its old name. */
@@ -1492,4 +1564,4 @@ declare function useAgentChat<B extends AgentBackend = AgentClient>(options: Use
1492
1564
  clearError: () => void;
1493
1565
  };
1494
1566
 
1495
- export { type AgentBackend, AgentBackendUnsupportedError, AgentChatTransport, type AgentChatTransportOptions, AgentClient, type AgentClientOptions, AgentHttpError, type AgentMessageMetadata, type AgentStreamMeta, type AggregatedTurnUsage, AnyToolUIPart, type ApprovalCountdown, ApproveOptions, type AutocompleteInputProps, type AutocompleteItem, type AutocompleteListboxProps, type AutocompleteOptionProps, type AutocompleteSource, type BackgroundRun, type CancelResult, type ChatBackground, ChatInput, type ChatInputProps, ChatStatus, type ChatStreamRequest, type ChatStreamResponse, type ChatTranscript, type CompletionEdit, type ComposerAutocomplete, DEFAULT_SPEECH_LANG, type MessageFeedbackInput, type MessageFeedbackState, MessageItem, type MessageItemClassNames, type MessageItemProps, MessageItemView, type MessageItemViewProps, MessageList, type MessageListClassNames, type MessageListProps, MessageUsageInfo, type QuotaToday, type ReconnectOptions, type RenderFilesFn, type RenderReasoningFn, type RenderTextFn, type RenderToolGroupFn, type RenderToolPartFn, type RenderUiFn, type ResumeStreamRequest, SPEECH_LANGUAGES, type SkillSuggestionData, type SkillsSourceOptions, type SpeechLanguage, type SpeechRecognitionHook, type StickToBottom, type StickToBottomOptions, type StoredTurnMetadata, type StreamConnectionState, type ThreadPatch, type ThreadsEvent, type ThreadsState, TimestampInfo, ToolCatalog, type ToolCatalogState, type TranscriptActionState, TranscriptBlock, type TranscriptCopyState, type TranscriptEditState, TranscriptFile, type TranscriptItem, type TranscriptItemOptions, type TranscriptStopState, TranscriptUiBlock, type TranscriptWindow, type TriggerMatch, type TriggerPosition, type UploadAttachmentOptions, UsageSummary, type UseAgentChatOptions, type UseApprovalCountdownOptions, type UseChatTranscriptOptions, type UseComposerAutocompleteOptions, type UseElapsedOptions, type UseMessageFeedbackOptions, type UseSpeechRecognitionOptions, type UseThreadsOptions, type UseToolCatalogOptions, type UseTranscriptItemOptions, applyCompletion, approvalCountdown, backgroundRunsFromThread, createSkillsSource, filterAutocompleteItems, findActiveTrigger, formatElapsed, loadStoredSpeechLang, notifyThreads, onThreadsEvent, persistSpeechLang, readReasoningMs, requireBackendMethod, storedMessageToUiMessage, storedThreadToUiMessages, useAgentChat, useApprovalCountdown, useChatTranscript, useComposerAutocomplete, useElapsed, useMessageFeedback, useSpeechRecognition, useStickToBottom, useThreads, useToolCatalog, useTranscriptItem };
1567
+ export { type AgentBackend, AgentBackendUnsupportedError, AgentChatTransport, type AgentChatTransportOptions, AgentClient, type AgentClientOptions, AgentHttpError, type AgentMessageMetadata, type AgentStreamMeta, type AgentsState, type AggregatedTurnUsage, AnyToolUIPart, type ApprovalCountdown, ApproveOptions, type AutocompleteInputProps, type AutocompleteItem, type AutocompleteListboxProps, type AutocompleteOptionProps, type AutocompleteSource, type BackgroundRun, type CancelResult, type ChatBackground, ChatInput, type ChatInputProps, ChatStatus, type ChatStreamRequest, type ChatStreamResponse, type ChatTranscript, type CompletionEdit, type ComposerAutocomplete, DEFAULT_SPEECH_LANG, type MessageFeedbackInput, type MessageFeedbackState, MessageItem, type MessageItemClassNames, type MessageItemProps, MessageItemView, type MessageItemViewProps, MessageList, type MessageListClassNames, type MessageListProps, MessageUsageInfo, type ModelOption, type ModelsState, type QuotaToday, type ReconnectOptions, type RenderFilesFn, type RenderReasoningFn, type RenderTextFn, type RenderToolGroupFn, type RenderToolPartFn, type RenderUiFn, type ResumeStreamRequest, SPEECH_LANGUAGES, type SkillSuggestionData, type SkillsSourceOptions, type SpeechLanguage, type SpeechRecognitionHook, type StickToBottom, type StickToBottomOptions, type StoredTurnMetadata, type StreamConnectionState, type ThreadPatch, type ThreadsEvent, type ThreadsState, TimestampInfo, ToolCatalog, type ToolCatalogState, type TranscriptActionState, TranscriptBlock, type TranscriptCopyState, type TranscriptEditState, TranscriptFile, type TranscriptItem, type TranscriptItemOptions, type TranscriptStopState, TranscriptUiBlock, type TranscriptWindow, type TriggerMatch, type TriggerPosition, type UploadAttachmentOptions, UsageSummary, type UseAgentChatOptions, type UseAgentsOptions, type UseApprovalCountdownOptions, type UseChatTranscriptOptions, type UseComposerAutocompleteOptions, type UseElapsedOptions, type UseMessageFeedbackOptions, type UseModelsOptions, type UseSpeechRecognitionOptions, type UseThreadsOptions, type UseToolCatalogOptions, type UseTranscriptItemOptions, applyCompletion, approvalCountdown, backgroundRunsFromThread, createSkillsSource, filterAutocompleteItems, findActiveTrigger, formatElapsed, loadStoredSpeechLang, notifyThreads, onThreadsEvent, persistSpeechLang, readReasoningMs, requireBackendMethod, storedMessageToUiMessage, storedThreadToUiMessages, useAgentChat, useAgents, useApprovalCountdown, useChatTranscript, useComposerAutocomplete, useElapsed, useMessageFeedback, useModels, useSpeechRecognition, useStickToBottom, useThreads, useToolCatalog, useTranscriptItem };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as ai from 'ai';
2
2
  import { ChatTransport, UIMessage, UIMessageChunk, DataUIPart, UIDataTypes } from 'ai';
3
3
  import * as _dudousxd_nestjs_agent_core from '@dudousxd/nestjs-agent-core';
4
- import { ThreadSummary, ThreadDetail, MessageAttachment, ToolCatalogEntry, SkillCatalogEntry, QuotaView, MessageFeedbackValue, MessageFeedback, StoredMessage } from '@dudousxd/nestjs-agent-core';
4
+ import { ThreadSummary, ThreadDetail, MessageAttachment, ToolCatalogEntry, SkillCatalogEntry, QuotaView, ModelCatalogView, AgentCatalogEntry, MessageFeedbackValue, MessageFeedback, ModelCatalogEntry, StoredMessage } from '@dudousxd/nestjs-agent-core';
5
5
  export { ElicitationInput, ElicitationInputType, validateElicitationAnswer as validateAnswer, validateElicitationValue as validateAnswerValue } from '@dudousxd/nestjs-agent-core';
6
6
  import React__default from 'react';
7
7
  import { a as TranscriptBlock, U as UsageSummary, b as TimestampInfo, C as ChatStatus, M as MessageUsageInfo, c as ToolCatalog, A as ApproveOptions, d as AnyToolUIPart, e as TranscriptFile, T as TranscriptUiBlock } from './model-gHqjNjLJ.js';
@@ -15,10 +15,12 @@ export { f as ApprovalBlockOptions, B as BuildBlocksOptions, g as CoercibleQuest
15
15
  interface ThreadPatch {
16
16
  title?: string;
17
17
  defaultAgent?: string | null;
18
+ /** Pin a catalog model on the thread; `null` unpins it. */
19
+ model?: string | null;
18
20
  }
19
21
  /** Starting a turn: the body `POST <base>/chat` takes (see docs/stream-protocol.md). */
20
22
  interface ChatStreamRequest {
21
- /** `{ message, threadId?, agent?, attachments?, pageContext?, regenerate?, … }`. */
23
+ /** `{ message, threadId?, agent?, model?, attachments?, pageContext?, regenerate?, … }`. */
22
24
  body: Record<string, unknown>;
23
25
  /** Per-request headers the AI SDK was handed for this send. */
24
26
  headers?: Record<string, string>;
@@ -104,6 +106,10 @@ interface AgentBackend {
104
106
  listTools?(agent?: string): Promise<ToolCatalogEntry[]>;
105
107
  listSkills?(threadId?: string): Promise<SkillCatalogEntry[]>;
106
108
  getQuotaToday?(): Promise<QuotaView>;
109
+ /** `GET <base>/models?agent=` — what a model picker offers. */
110
+ listModels?(agent?: string): Promise<ModelCatalogView>;
111
+ /** `GET <base>/agents` — what an agent picker offers. */
112
+ listAgents?(): Promise<AgentCatalogEntry[]>;
107
113
  setMessageFeedback?(messageId: string, input: MessageFeedbackInput): Promise<{
108
114
  feedback: MessageFeedback | null;
109
115
  }>;
@@ -286,6 +292,61 @@ declare class AgentChatTransport implements ChatTransport<UIMessage> {
286
292
  private toChunkStream;
287
293
  }
288
294
 
295
+ interface UseAgentsOptions {
296
+ /** `useAgentChat(...).backend`, or your own. Must implement `listAgents`. */
297
+ backend: AgentBackend;
298
+ /** `false` holds the request. Default `true`. */
299
+ enabled?: boolean;
300
+ }
301
+ interface AgentsState {
302
+ /** `[]` until loaded. */
303
+ agents: AgentCatalogEntry[];
304
+ /** The agent a turn runs as when none is named. */
305
+ defaultAgent: string | null;
306
+ isLoading: boolean;
307
+ error: Error | null;
308
+ refresh: () => Promise<void>;
309
+ }
310
+ /**
311
+ * The registered agents (`GET <base>/agents`) — the data behind an agent picker. Send the pick as
312
+ * `useAgentChat({ agent })`, or pin it on a thread with `PATCH <base>/threads/:id { defaultAgent }`.
313
+ */
314
+ declare function useAgents(options: UseAgentsOptions): AgentsState;
315
+
316
+ interface UseModelsOptions {
317
+ /** `useAgentChat(...).backend`, or your own. Must implement `listModels`. */
318
+ backend: AgentBackend;
319
+ /** The agent to list models for; omitted → the default agent. */
320
+ agent?: string;
321
+ /** `false` holds the request. Default `true`. */
322
+ enabled?: boolean;
323
+ }
324
+ /** A catalog entry with the provider it sits under, for a flat list or a search. */
325
+ interface ModelOption extends ModelCatalogEntry {
326
+ providerId: string;
327
+ providerLabel: string;
328
+ }
329
+ interface ModelsState {
330
+ /** Grouped as the server sent them. `[]` until loaded. */
331
+ providers: ModelCatalogView['providers'];
332
+ /** Every model, flattened in provider order. */
333
+ models: ModelOption[];
334
+ /** The model a turn runs on when none is picked, or `null` when the provider decides. */
335
+ defaultModel: string | null;
336
+ /** The entry for `id`, or `undefined`. */
337
+ find: (id: string | null | undefined) => ModelOption | undefined;
338
+ isLoading: boolean;
339
+ error: Error | null;
340
+ refresh: () => Promise<void>;
341
+ }
342
+ /**
343
+ * The models this caller may pick (`GET <base>/models?agent=`), with badges and availability — the
344
+ * data behind a model picker. Headless: render the options however you like, then send the pick
345
+ * as `useAgentChat({ model })`, `sendMessage(msg, { body: { model } })`, or pin it on the thread
346
+ * with `chat.setThreadModel(id)`.
347
+ */
348
+ declare function useModels(options: UseModelsOptions): ModelsState;
349
+
289
350
  interface UseMessageFeedbackOptions {
290
351
  /** `useAgentChat(...).backend`, or your own. Must implement `setMessageFeedback`. */
291
352
  backend: AgentBackend;
@@ -481,6 +542,10 @@ declare class AgentClient implements AgentBackend {
481
542
  uploadAttachment(file: File, options?: UploadAttachmentOptions): Promise<MessageAttachment>;
482
543
  promoteThread(id: string): Promise<OkResult>;
483
544
  truncateFromMessage(threadId: string, messageId: string): Promise<OkResult>;
545
+ /** `GET /agent/models?agent=` — the models this caller may pick, grouped by provider. */
546
+ listModels(agent?: string): Promise<ModelCatalogView>;
547
+ /** `GET /agent/agents` — the registered agents, the default one flagged. */
548
+ listAgents(): Promise<AgentCatalogEntry[]>;
484
549
  getQuotaToday(): Promise<QuotaToday>;
485
550
  cancelStream(runId: string): Promise<CancelResult>;
486
551
  /**
@@ -1308,6 +1373,12 @@ interface UseAgentChatOptions<B extends AgentBackend = AgentClient> {
1308
1373
  client?: B;
1309
1374
  /** Named agent to run each turn. */
1310
1375
  agent?: string;
1376
+ /**
1377
+ * Catalog model to run each turn on (see `useModels`), sent as the body's `model`. Read at every
1378
+ * send, so a picker can change it between turns. Omitted → the thread's pinned model, else the
1379
+ * server default. A single send can still override it with `sendMessage(msg, { body: { model } })`.
1380
+ */
1381
+ model?: string;
1311
1382
  /** Thread this chat is bound to. Omitted → backend creates one on send. */
1312
1383
  threadId?: string;
1313
1384
  /** Persisted history to seed `useChat` with (consumed on mount only). */
@@ -1447,6 +1518,7 @@ declare function useAgentChat<B extends AgentBackend = AgentClient>(options: Use
1447
1518
  * on the first send. A getter, because the created id is learned mid-stream.
1448
1519
  */
1449
1520
  getThreadId: () => string | undefined;
1521
+ setThreadModel: (model: string | null) => Promise<void>;
1450
1522
  /** The backend this chat talks to — pass it to `useThreads`, `useMessageFeedback`, … */
1451
1523
  backend: B;
1452
1524
  /** Same object as {@link backend}; kept for callers that read it under its old name. */
@@ -1492,4 +1564,4 @@ declare function useAgentChat<B extends AgentBackend = AgentClient>(options: Use
1492
1564
  clearError: () => void;
1493
1565
  };
1494
1566
 
1495
- export { type AgentBackend, AgentBackendUnsupportedError, AgentChatTransport, type AgentChatTransportOptions, AgentClient, type AgentClientOptions, AgentHttpError, type AgentMessageMetadata, type AgentStreamMeta, type AggregatedTurnUsage, AnyToolUIPart, type ApprovalCountdown, ApproveOptions, type AutocompleteInputProps, type AutocompleteItem, type AutocompleteListboxProps, type AutocompleteOptionProps, type AutocompleteSource, type BackgroundRun, type CancelResult, type ChatBackground, ChatInput, type ChatInputProps, ChatStatus, type ChatStreamRequest, type ChatStreamResponse, type ChatTranscript, type CompletionEdit, type ComposerAutocomplete, DEFAULT_SPEECH_LANG, type MessageFeedbackInput, type MessageFeedbackState, MessageItem, type MessageItemClassNames, type MessageItemProps, MessageItemView, type MessageItemViewProps, MessageList, type MessageListClassNames, type MessageListProps, MessageUsageInfo, type QuotaToday, type ReconnectOptions, type RenderFilesFn, type RenderReasoningFn, type RenderTextFn, type RenderToolGroupFn, type RenderToolPartFn, type RenderUiFn, type ResumeStreamRequest, SPEECH_LANGUAGES, type SkillSuggestionData, type SkillsSourceOptions, type SpeechLanguage, type SpeechRecognitionHook, type StickToBottom, type StickToBottomOptions, type StoredTurnMetadata, type StreamConnectionState, type ThreadPatch, type ThreadsEvent, type ThreadsState, TimestampInfo, ToolCatalog, type ToolCatalogState, type TranscriptActionState, TranscriptBlock, type TranscriptCopyState, type TranscriptEditState, TranscriptFile, type TranscriptItem, type TranscriptItemOptions, type TranscriptStopState, TranscriptUiBlock, type TranscriptWindow, type TriggerMatch, type TriggerPosition, type UploadAttachmentOptions, UsageSummary, type UseAgentChatOptions, type UseApprovalCountdownOptions, type UseChatTranscriptOptions, type UseComposerAutocompleteOptions, type UseElapsedOptions, type UseMessageFeedbackOptions, type UseSpeechRecognitionOptions, type UseThreadsOptions, type UseToolCatalogOptions, type UseTranscriptItemOptions, applyCompletion, approvalCountdown, backgroundRunsFromThread, createSkillsSource, filterAutocompleteItems, findActiveTrigger, formatElapsed, loadStoredSpeechLang, notifyThreads, onThreadsEvent, persistSpeechLang, readReasoningMs, requireBackendMethod, storedMessageToUiMessage, storedThreadToUiMessages, useAgentChat, useApprovalCountdown, useChatTranscript, useComposerAutocomplete, useElapsed, useMessageFeedback, useSpeechRecognition, useStickToBottom, useThreads, useToolCatalog, useTranscriptItem };
1567
+ export { type AgentBackend, AgentBackendUnsupportedError, AgentChatTransport, type AgentChatTransportOptions, AgentClient, type AgentClientOptions, AgentHttpError, type AgentMessageMetadata, type AgentStreamMeta, type AgentsState, type AggregatedTurnUsage, AnyToolUIPart, type ApprovalCountdown, ApproveOptions, type AutocompleteInputProps, type AutocompleteItem, type AutocompleteListboxProps, type AutocompleteOptionProps, type AutocompleteSource, type BackgroundRun, type CancelResult, type ChatBackground, ChatInput, type ChatInputProps, ChatStatus, type ChatStreamRequest, type ChatStreamResponse, type ChatTranscript, type CompletionEdit, type ComposerAutocomplete, DEFAULT_SPEECH_LANG, type MessageFeedbackInput, type MessageFeedbackState, MessageItem, type MessageItemClassNames, type MessageItemProps, MessageItemView, type MessageItemViewProps, MessageList, type MessageListClassNames, type MessageListProps, MessageUsageInfo, type ModelOption, type ModelsState, type QuotaToday, type ReconnectOptions, type RenderFilesFn, type RenderReasoningFn, type RenderTextFn, type RenderToolGroupFn, type RenderToolPartFn, type RenderUiFn, type ResumeStreamRequest, SPEECH_LANGUAGES, type SkillSuggestionData, type SkillsSourceOptions, type SpeechLanguage, type SpeechRecognitionHook, type StickToBottom, type StickToBottomOptions, type StoredTurnMetadata, type StreamConnectionState, type ThreadPatch, type ThreadsEvent, type ThreadsState, TimestampInfo, ToolCatalog, type ToolCatalogState, type TranscriptActionState, TranscriptBlock, type TranscriptCopyState, type TranscriptEditState, TranscriptFile, type TranscriptItem, type TranscriptItemOptions, type TranscriptStopState, TranscriptUiBlock, type TranscriptWindow, type TriggerMatch, type TriggerPosition, type UploadAttachmentOptions, UsageSummary, type UseAgentChatOptions, type UseAgentsOptions, type UseApprovalCountdownOptions, type UseChatTranscriptOptions, type UseComposerAutocompleteOptions, type UseElapsedOptions, type UseMessageFeedbackOptions, type UseModelsOptions, type UseSpeechRecognitionOptions, type UseThreadsOptions, type UseToolCatalogOptions, type UseTranscriptItemOptions, applyCompletion, approvalCountdown, backgroundRunsFromThread, createSkillsSource, filterAutocompleteItems, findActiveTrigger, formatElapsed, loadStoredSpeechLang, notifyThreads, onThreadsEvent, persistSpeechLang, readReasoningMs, requireBackendMethod, storedMessageToUiMessage, storedThreadToUiMessages, useAgentChat, useAgents, useApprovalCountdown, useChatTranscript, useComposerAutocomplete, useElapsed, useMessageFeedback, useModels, useSpeechRecognition, useStickToBottom, useThreads, useToolCatalog, useTranscriptItem };