@distri/react 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/index.cjs +102 -1100
- package/dist/index.d.cts +79 -501
- package/dist/index.d.ts +79 -501
- package/dist/index.js +102 -1036
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -1,14 +1,44 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
import React$1, { ReactNode } from 'react';
|
|
3
|
+
import { DistriClient, DistriClientConfig, Agent as Agent$1, DistriAgent, DistriFnTool, DistriBaseTool, ToolCall as ToolCall$1, ToolResult as ToolResult$1, DistriPart as DistriPart$1, DistriThread, DistriMessage as DistriMessage$1, DistriStreamEvent as DistriStreamEvent$1 } from '@distri/core';
|
|
4
|
+
|
|
5
|
+
interface DistriContextValue {
|
|
6
|
+
client: DistriClient | null;
|
|
7
|
+
error: Error | null;
|
|
8
|
+
isLoading: boolean;
|
|
9
|
+
}
|
|
10
|
+
interface DistriProviderProps {
|
|
11
|
+
config: DistriClientConfig;
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
defaultTheme?: 'dark' | 'light' | 'system';
|
|
14
|
+
}
|
|
15
|
+
declare function DistriProvider({ config, children, defaultTheme }: DistriProviderProps): react_jsx_runtime.JSX.Element;
|
|
16
|
+
declare function useDistri(): DistriContextValue;
|
|
17
|
+
|
|
18
|
+
interface UseAgentOptions {
|
|
19
|
+
agentId: string;
|
|
20
|
+
agent?: Agent$1;
|
|
21
|
+
autoCreateAgent?: boolean;
|
|
22
|
+
}
|
|
23
|
+
interface UseAgentResult {
|
|
24
|
+
agent: Agent$1 | null;
|
|
25
|
+
loading: boolean;
|
|
26
|
+
error: Error | null;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* useAgent is for agent configuration and invocation.
|
|
30
|
+
* For chat UIs, use useChat instead.
|
|
31
|
+
*/
|
|
32
|
+
declare function useAgent({ agentId, autoCreateAgent, }: UseAgentOptions): UseAgentResult;
|
|
33
|
+
|
|
34
|
+
interface UseAgentsResult {
|
|
35
|
+
agents: DistriAgent[];
|
|
36
|
+
loading: boolean;
|
|
37
|
+
error: Error | null;
|
|
38
|
+
refetch: () => Promise<void>;
|
|
39
|
+
getAgent: (agentId: string) => Promise<DistriAgent>;
|
|
40
|
+
}
|
|
41
|
+
declare function useAgents(): UseAgentsResult;
|
|
12
42
|
|
|
13
43
|
type Role = 'user' | 'system' | 'assistant';
|
|
14
44
|
interface RunStartedEvent {
|
|
@@ -99,14 +129,6 @@ interface DistriMessage {
|
|
|
99
129
|
created_at?: string;
|
|
100
130
|
}
|
|
101
131
|
type DistriStreamEvent = DistriMessage | DistriEvent;
|
|
102
|
-
/**
|
|
103
|
-
* Context required for constructing A2A messages from DistriMessage
|
|
104
|
-
*/
|
|
105
|
-
interface InvokeContext {
|
|
106
|
-
thread_id: string;
|
|
107
|
-
run_id?: string;
|
|
108
|
-
metadata?: any;
|
|
109
|
-
}
|
|
110
132
|
/**
|
|
111
133
|
* Distri message parts - equivalent to Rust enum Part
|
|
112
134
|
*/
|
|
@@ -158,26 +180,6 @@ interface FileUrl {
|
|
|
158
180
|
url: string;
|
|
159
181
|
name?: string;
|
|
160
182
|
}
|
|
161
|
-
/**
|
|
162
|
-
* Tool definition interface following AG-UI pattern
|
|
163
|
-
*/
|
|
164
|
-
interface DistriBaseTool {
|
|
165
|
-
name: string;
|
|
166
|
-
type: 'function' | 'ui';
|
|
167
|
-
description: string;
|
|
168
|
-
input_schema: object;
|
|
169
|
-
}
|
|
170
|
-
interface DistriFnTool extends DistriBaseTool {
|
|
171
|
-
type: 'function';
|
|
172
|
-
handler: ToolHandler;
|
|
173
|
-
onToolComplete?: (toolCallId: string, toolResult: ToolResult) => void;
|
|
174
|
-
}
|
|
175
|
-
/**
|
|
176
|
-
* Tool handler function
|
|
177
|
-
*/
|
|
178
|
-
interface ToolHandler {
|
|
179
|
-
(input: any): Promise<string | number | boolean | null | object>;
|
|
180
|
-
}
|
|
181
183
|
/**
|
|
182
184
|
* Tool call from agent
|
|
183
185
|
*/
|
|
@@ -195,273 +197,6 @@ interface ToolResult {
|
|
|
195
197
|
success: boolean;
|
|
196
198
|
error?: string;
|
|
197
199
|
}
|
|
198
|
-
/**
|
|
199
|
-
* Distri-specific Agent type that wraps A2A AgentCard
|
|
200
|
-
*/
|
|
201
|
-
interface DistriAgent {
|
|
202
|
-
/** The name of the agent. */
|
|
203
|
-
name: string;
|
|
204
|
-
id: string;
|
|
205
|
-
/** A brief description of the agent's purpose. */
|
|
206
|
-
description?: string;
|
|
207
|
-
/** The version of the agent. */
|
|
208
|
-
version?: string;
|
|
209
|
-
/** The system prompt for the agent, if any. */
|
|
210
|
-
system_prompt?: string | null;
|
|
211
|
-
/** A list of MCP server definitions associated with the agent. */
|
|
212
|
-
mcp_servers?: McpDefinition[];
|
|
213
|
-
/** Settings related to the model used by the agent. */
|
|
214
|
-
model_settings?: ModelSettings;
|
|
215
|
-
/** The size of the history to maintain for the agent. */
|
|
216
|
-
history_size?: number;
|
|
217
|
-
/** The planning configuration for the agent, if any. */
|
|
218
|
-
plan?: any;
|
|
219
|
-
/** A2A-specific fields */
|
|
220
|
-
icon_url?: string;
|
|
221
|
-
max_iterations?: number;
|
|
222
|
-
skills?: AgentSkill[];
|
|
223
|
-
/** List of sub-agents that this agent can transfer control to */
|
|
224
|
-
sub_agents?: string[];
|
|
225
|
-
}
|
|
226
|
-
interface McpDefinition {
|
|
227
|
-
/** The filter applied to the tools in this MCP definition. */
|
|
228
|
-
filter?: string[];
|
|
229
|
-
/** The name of the MCP server. */
|
|
230
|
-
name: string;
|
|
231
|
-
/** The type of the MCP server (Tool or Agent). */
|
|
232
|
-
type?: McpServerType;
|
|
233
|
-
}
|
|
234
|
-
interface ModelSettings {
|
|
235
|
-
model: string;
|
|
236
|
-
temperature: number;
|
|
237
|
-
max_tokens: number;
|
|
238
|
-
top_p: number;
|
|
239
|
-
frequency_penalty: number;
|
|
240
|
-
presence_penalty: number;
|
|
241
|
-
max_iterations: number;
|
|
242
|
-
provider: ModelProvider;
|
|
243
|
-
/** Additional parameters for the agent, if any. */
|
|
244
|
-
parameters?: any;
|
|
245
|
-
/** The format of the response, if specified. */
|
|
246
|
-
response_format?: any;
|
|
247
|
-
}
|
|
248
|
-
type McpServerType = 'tool' | 'agent';
|
|
249
|
-
type ModelProvider = 'openai' | 'aigateway';
|
|
250
|
-
/**
|
|
251
|
-
* Distri Thread type for conversation management
|
|
252
|
-
*/
|
|
253
|
-
interface DistriThread {
|
|
254
|
-
id: string;
|
|
255
|
-
title: string;
|
|
256
|
-
agent_id: string;
|
|
257
|
-
agent_name: string;
|
|
258
|
-
updated_at: string;
|
|
259
|
-
message_count: number;
|
|
260
|
-
last_message?: string;
|
|
261
|
-
}
|
|
262
|
-
/**
|
|
263
|
-
* Distri Client Configuration
|
|
264
|
-
*/
|
|
265
|
-
interface DistriClientConfig {
|
|
266
|
-
baseUrl: string;
|
|
267
|
-
apiVersion?: string;
|
|
268
|
-
timeout?: number;
|
|
269
|
-
retryAttempts?: number;
|
|
270
|
-
retryDelay?: number;
|
|
271
|
-
debug?: boolean;
|
|
272
|
-
headers?: Record<string, string>;
|
|
273
|
-
interceptor?: (init?: RequestInit) => Promise<RequestInit | undefined>;
|
|
274
|
-
}
|
|
275
|
-
type A2AStreamEventData = Message | TaskStatusUpdateEvent | TaskArtifactUpdateEvent | Task;
|
|
276
|
-
|
|
277
|
-
/**
|
|
278
|
-
* Enhanced Distri Client that wraps A2AClient and adds Distri-specific features
|
|
279
|
-
*/
|
|
280
|
-
declare class DistriClient {
|
|
281
|
-
private config;
|
|
282
|
-
private agentClients;
|
|
283
|
-
constructor(config: DistriClientConfig);
|
|
284
|
-
/**
|
|
285
|
-
* Get all available agents from the Distri server
|
|
286
|
-
*/
|
|
287
|
-
getAgents(): Promise<DistriAgent[]>;
|
|
288
|
-
/**
|
|
289
|
-
* Get specific agent by ID
|
|
290
|
-
*/
|
|
291
|
-
getAgent(agentId: string): Promise<DistriAgent>;
|
|
292
|
-
/**
|
|
293
|
-
* Get or create A2AClient for an agent
|
|
294
|
-
*/
|
|
295
|
-
private getA2AClient;
|
|
296
|
-
/**
|
|
297
|
-
* Send a message to an agent
|
|
298
|
-
*/
|
|
299
|
-
sendMessage(agentId: string, params: MessageSendParams): Promise<Message | Task>;
|
|
300
|
-
/**
|
|
301
|
-
* Send a streaming message to an agent
|
|
302
|
-
*/
|
|
303
|
-
sendMessageStream(agentId: string, params: MessageSendParams): AsyncGenerator<A2AStreamEventData>;
|
|
304
|
-
/**
|
|
305
|
-
* Get task details
|
|
306
|
-
*/
|
|
307
|
-
getTask(agentId: string, taskId: string): Promise<Task>;
|
|
308
|
-
/**
|
|
309
|
-
* Cancel a task
|
|
310
|
-
*/
|
|
311
|
-
cancelTask(agentId: string, taskId: string): Promise<void>;
|
|
312
|
-
/**
|
|
313
|
-
* Get threads from Distri server
|
|
314
|
-
*/
|
|
315
|
-
getThreads(): Promise<DistriThread[]>;
|
|
316
|
-
getThread(threadId: string): Promise<DistriThread>;
|
|
317
|
-
/**
|
|
318
|
-
* Get thread messages
|
|
319
|
-
*/
|
|
320
|
-
getThreadMessages(threadId: string): Promise<Message[]>;
|
|
321
|
-
/**
|
|
322
|
-
* Get messages from a thread as DistriMessage format
|
|
323
|
-
*/
|
|
324
|
-
getThreadMessagesAsDistri(threadId: string): Promise<DistriMessage[]>;
|
|
325
|
-
/**
|
|
326
|
-
* Send a DistriMessage to a thread
|
|
327
|
-
*/
|
|
328
|
-
sendDistriMessage(threadId: string, message: DistriMessage, context: InvokeContext): Promise<void>;
|
|
329
|
-
/**
|
|
330
|
-
* Get the base URL for making direct requests
|
|
331
|
-
*/
|
|
332
|
-
get baseUrl(): string;
|
|
333
|
-
/**
|
|
334
|
-
* Enhanced fetch with retry logic
|
|
335
|
-
*/
|
|
336
|
-
private fetchAbsolute;
|
|
337
|
-
/**
|
|
338
|
-
* Enhanced fetch with retry logic
|
|
339
|
-
*/
|
|
340
|
-
private fetch;
|
|
341
|
-
/**
|
|
342
|
-
* Delay utility
|
|
343
|
-
*/
|
|
344
|
-
private delay;
|
|
345
|
-
/**
|
|
346
|
-
* Debug logging
|
|
347
|
-
*/
|
|
348
|
-
private debug;
|
|
349
|
-
/**
|
|
350
|
-
* Helper method to create A2A messages
|
|
351
|
-
*/
|
|
352
|
-
static initMessage(parts: Part[] | string, role: "agent" | "user" | undefined, message: Omit<Partial<Message>, 'parts' | 'role' | 'kind'>): Message;
|
|
353
|
-
/**
|
|
354
|
-
* Create a DistriMessage instance
|
|
355
|
-
*/
|
|
356
|
-
static initDistriMessage(role: DistriMessage['role'], parts: DistriPart[], id?: string, created_at?: string): DistriMessage;
|
|
357
|
-
/**
|
|
358
|
-
* Helper method to create message send parameters
|
|
359
|
-
*/
|
|
360
|
-
static initMessageParams(message: Message, configuration?: MessageSendParams['configuration'], metadata?: any): MessageSendParams;
|
|
361
|
-
/**
|
|
362
|
-
* Create MessageSendParams from a DistriMessage using InvokeContext
|
|
363
|
-
*/
|
|
364
|
-
static initDistriMessageParams(message: DistriMessage, context: InvokeContext): MessageSendParams;
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
/**
|
|
368
|
-
* Enhanced Agent class with simple tool system following AG-UI pattern
|
|
369
|
-
*/
|
|
370
|
-
declare class Agent$1 {
|
|
371
|
-
private client;
|
|
372
|
-
private agentDefinition;
|
|
373
|
-
private tools;
|
|
374
|
-
constructor(agentDefinition: DistriAgent, client: DistriClient);
|
|
375
|
-
/**
|
|
376
|
-
* Add a tool to the agent (AG-UI style)
|
|
377
|
-
*/
|
|
378
|
-
registerTool(tool: DistriBaseTool): void;
|
|
379
|
-
/**
|
|
380
|
-
* Add multiple tools at once
|
|
381
|
-
*/
|
|
382
|
-
registerTools(tools: DistriBaseTool[]): void;
|
|
383
|
-
/**
|
|
384
|
-
* Remove a tool
|
|
385
|
-
*/
|
|
386
|
-
unregisterTool(toolName: string): void;
|
|
387
|
-
/**
|
|
388
|
-
* Get all registered tools
|
|
389
|
-
*/
|
|
390
|
-
getTools(): DistriBaseTool[];
|
|
391
|
-
/**
|
|
392
|
-
* Check if a tool is registered
|
|
393
|
-
*/
|
|
394
|
-
hasTool(toolName: string): boolean;
|
|
395
|
-
/**
|
|
396
|
-
* Get agent information
|
|
397
|
-
*/
|
|
398
|
-
get id(): string;
|
|
399
|
-
get name(): string;
|
|
400
|
-
get description(): string | undefined;
|
|
401
|
-
get iconUrl(): string | undefined;
|
|
402
|
-
/**
|
|
403
|
-
* Fetch messages for a thread (public method for useChat)
|
|
404
|
-
*/
|
|
405
|
-
getThreadMessages(threadId: string): Promise<Message[]>;
|
|
406
|
-
/**
|
|
407
|
-
* Direct (non-streaming) invoke
|
|
408
|
-
*/
|
|
409
|
-
invoke(params: MessageSendParams): Promise<Message>;
|
|
410
|
-
/**
|
|
411
|
-
* Streaming invoke
|
|
412
|
-
*/
|
|
413
|
-
invokeStream(params: MessageSendParams): Promise<AsyncGenerator<DistriEvent | DistriMessage>>;
|
|
414
|
-
/**
|
|
415
|
-
* Enhance message params with tool definitions
|
|
416
|
-
*/
|
|
417
|
-
private enhanceParamsWithTools;
|
|
418
|
-
/**
|
|
419
|
-
* Create an agent instance from an agent ID
|
|
420
|
-
*/
|
|
421
|
-
static create(agentId: string, client: DistriClient): Promise<Agent$1>;
|
|
422
|
-
/**
|
|
423
|
-
* List all available agents
|
|
424
|
-
*/
|
|
425
|
-
static list(client: DistriClient): Promise<Agent$1[]>;
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
interface DistriContextValue {
|
|
429
|
-
client: DistriClient | null;
|
|
430
|
-
error: Error | null;
|
|
431
|
-
isLoading: boolean;
|
|
432
|
-
}
|
|
433
|
-
interface DistriProviderProps {
|
|
434
|
-
config: DistriClientConfig;
|
|
435
|
-
children: ReactNode;
|
|
436
|
-
defaultTheme?: 'dark' | 'light' | 'system';
|
|
437
|
-
}
|
|
438
|
-
declare function DistriProvider({ config, children, defaultTheme }: DistriProviderProps): react_jsx_runtime.JSX.Element;
|
|
439
|
-
declare function useDistri(): DistriContextValue;
|
|
440
|
-
|
|
441
|
-
interface UseAgentOptions {
|
|
442
|
-
agentId: string;
|
|
443
|
-
agent?: Agent$1;
|
|
444
|
-
autoCreateAgent?: boolean;
|
|
445
|
-
}
|
|
446
|
-
interface UseAgentResult {
|
|
447
|
-
agent: Agent$1 | null;
|
|
448
|
-
loading: boolean;
|
|
449
|
-
error: Error | null;
|
|
450
|
-
}
|
|
451
|
-
/**
|
|
452
|
-
* useAgent is for agent configuration and invocation.
|
|
453
|
-
* For chat UIs, use useChat instead.
|
|
454
|
-
*/
|
|
455
|
-
declare function useAgent({ agentId, autoCreateAgent, }: UseAgentOptions): UseAgentResult;
|
|
456
|
-
|
|
457
|
-
interface UseAgentsResult {
|
|
458
|
-
agents: DistriAgent[];
|
|
459
|
-
loading: boolean;
|
|
460
|
-
error: Error | null;
|
|
461
|
-
refetch: () => Promise<void>;
|
|
462
|
-
getAgent: (agentId: string) => Promise<DistriAgent>;
|
|
463
|
-
}
|
|
464
|
-
declare function useAgents(): UseAgentsResult;
|
|
465
200
|
|
|
466
201
|
type ToolCallStatus = 'pending' | 'running' | 'completed' | 'error' | 'user_action_required';
|
|
467
202
|
interface ToolCallState {
|
|
@@ -481,9 +216,9 @@ interface DistriUiTool extends DistriBaseTool {
|
|
|
481
216
|
component: (props: UiToolProps) => React.ReactNode;
|
|
482
217
|
}
|
|
483
218
|
type UiToolProps = {
|
|
484
|
-
toolCall: ToolCall;
|
|
219
|
+
toolCall: ToolCall$1;
|
|
485
220
|
toolCallState?: ToolCallState;
|
|
486
|
-
completeTool: (result: ToolResult) => void;
|
|
221
|
+
completeTool: (result: ToolResult$1) => void;
|
|
487
222
|
};
|
|
488
223
|
|
|
489
224
|
interface UseChatOptions {
|
|
@@ -491,15 +226,15 @@ interface UseChatOptions {
|
|
|
491
226
|
agent?: Agent$1;
|
|
492
227
|
onMessage?: (message: DistriStreamEvent) => void;
|
|
493
228
|
onError?: (error: Error) => void;
|
|
494
|
-
|
|
229
|
+
getMetadata?: () => Promise<any>;
|
|
495
230
|
onMessagesUpdate?: () => void;
|
|
496
231
|
tools?: DistriAnyTool[];
|
|
497
232
|
}
|
|
498
233
|
interface UseChatReturn {
|
|
499
234
|
messages: DistriStreamEvent[];
|
|
500
235
|
isStreaming: boolean;
|
|
501
|
-
sendMessage: (content: string | DistriPart[]) => Promise<void>;
|
|
502
|
-
sendMessageStream: (content: string | DistriPart[]) => Promise<void>;
|
|
236
|
+
sendMessage: (content: string | DistriPart$1[]) => Promise<void>;
|
|
237
|
+
sendMessageStream: (content: string | DistriPart$1[]) => Promise<void>;
|
|
503
238
|
isLoading: boolean;
|
|
504
239
|
error: Error | null;
|
|
505
240
|
clearMessages: () => void;
|
|
@@ -508,7 +243,7 @@ interface UseChatReturn {
|
|
|
508
243
|
hasPendingToolCalls: () => boolean;
|
|
509
244
|
stopStreaming: () => void;
|
|
510
245
|
}
|
|
511
|
-
declare function useChat({ threadId, onMessage, onError,
|
|
246
|
+
declare function useChat({ threadId, onMessage, onError, getMetadata, onMessagesUpdate, agent, tools, }: UseChatOptions): UseChatReturn;
|
|
512
247
|
|
|
513
248
|
interface UseThreadsResult {
|
|
514
249
|
threads: DistriThread[];
|
|
@@ -528,12 +263,12 @@ interface UseToolsOptions {
|
|
|
528
263
|
declare function registerTools({ agent, tools }: UseToolsOptions): void;
|
|
529
264
|
|
|
530
265
|
interface UseToolCallStateOptions {
|
|
531
|
-
onAllToolsCompleted?: (toolResults: ToolResult[]) => void;
|
|
266
|
+
onAllToolsCompleted?: (toolResults: ToolResult$1[]) => void;
|
|
532
267
|
agent?: Agent$1;
|
|
533
268
|
}
|
|
534
269
|
interface UseToolCallStateReturn {
|
|
535
270
|
toolCallStates: Map<string, ToolCallState>;
|
|
536
|
-
initToolCall: (toolCall: ToolCall) => void;
|
|
271
|
+
initToolCall: (toolCall: ToolCall$1) => void;
|
|
537
272
|
updateToolCallStatus: (toolCallId: string, updates: Partial<ToolCallState>) => void;
|
|
538
273
|
getToolCallState: (toolCallId: string) => ToolCallState | undefined;
|
|
539
274
|
hasPendingToolCalls: () => boolean;
|
|
@@ -546,17 +281,17 @@ declare function useToolCallState(options: UseToolCallStateOptions): UseToolCall
|
|
|
546
281
|
interface FullChatProps {
|
|
547
282
|
agentId: string;
|
|
548
283
|
agent?: Agent$1;
|
|
549
|
-
|
|
284
|
+
getMetadata?: () => Promise<any>;
|
|
550
285
|
className?: string;
|
|
551
286
|
availableAgents?: Array<{
|
|
552
287
|
id: string;
|
|
553
288
|
name: string;
|
|
554
289
|
description?: string;
|
|
555
290
|
}>;
|
|
556
|
-
UserMessageComponent?:
|
|
557
|
-
AssistantMessageComponent?:
|
|
558
|
-
AssistantWithToolCallsComponent?:
|
|
559
|
-
PlanMessageComponent?:
|
|
291
|
+
UserMessageComponent?: React$1.ComponentType<any>;
|
|
292
|
+
AssistantMessageComponent?: React$1.ComponentType<any>;
|
|
293
|
+
AssistantWithToolCallsComponent?: React$1.ComponentType<any>;
|
|
294
|
+
PlanMessageComponent?: React$1.ComponentType<any>;
|
|
560
295
|
theme?: 'light' | 'dark' | 'auto';
|
|
561
296
|
showDebug?: boolean;
|
|
562
297
|
onAgentSelect?: (agentId: string) => void;
|
|
@@ -565,25 +300,25 @@ interface FullChatProps {
|
|
|
565
300
|
onThreadDelete?: (threadId: string) => void;
|
|
566
301
|
onLogoClick?: () => void;
|
|
567
302
|
}
|
|
568
|
-
declare const FullChat:
|
|
303
|
+
declare const FullChat: React$1.FC<FullChatProps>;
|
|
569
304
|
|
|
570
305
|
interface EmbeddableChatProps {
|
|
571
306
|
agent: Agent$1;
|
|
572
307
|
threadId?: string;
|
|
573
308
|
height?: string;
|
|
574
309
|
className?: string;
|
|
575
|
-
style?:
|
|
576
|
-
|
|
310
|
+
style?: React$1.CSSProperties;
|
|
311
|
+
getMetadata?: () => Promise<any>;
|
|
577
312
|
tools?: DistriAnyTool[];
|
|
578
313
|
availableAgents?: Array<{
|
|
579
314
|
id: string;
|
|
580
315
|
name: string;
|
|
581
316
|
description?: string;
|
|
582
317
|
}>;
|
|
583
|
-
UserMessageComponent?:
|
|
584
|
-
AssistantMessageComponent?:
|
|
585
|
-
AssistantWithToolCallsComponent?:
|
|
586
|
-
PlanMessageComponent?:
|
|
318
|
+
UserMessageComponent?: React$1.ComponentType<any>;
|
|
319
|
+
AssistantMessageComponent?: React$1.ComponentType<any>;
|
|
320
|
+
AssistantWithToolCallsComponent?: React$1.ComponentType<any>;
|
|
321
|
+
PlanMessageComponent?: React$1.ComponentType<any>;
|
|
587
322
|
theme?: 'light' | 'dark' | 'auto';
|
|
588
323
|
showDebug?: boolean;
|
|
589
324
|
showAgentSelector?: boolean;
|
|
@@ -593,7 +328,7 @@ interface EmbeddableChatProps {
|
|
|
593
328
|
onResponse?: (message: any) => void;
|
|
594
329
|
onMessagesUpdate?: () => void;
|
|
595
330
|
}
|
|
596
|
-
declare const EmbeddableChat:
|
|
331
|
+
declare const EmbeddableChat: React$1.FC<EmbeddableChatProps>;
|
|
597
332
|
|
|
598
333
|
interface Agent {
|
|
599
334
|
id: string;
|
|
@@ -608,7 +343,7 @@ interface AgentSelectProps {
|
|
|
608
343
|
placeholder?: string;
|
|
609
344
|
disabled?: boolean;
|
|
610
345
|
}
|
|
611
|
-
declare const AgentSelect:
|
|
346
|
+
declare const AgentSelect: React$1.FC<AgentSelectProps>;
|
|
612
347
|
|
|
613
348
|
interface ChatInputProps {
|
|
614
349
|
value: string;
|
|
@@ -620,11 +355,11 @@ interface ChatInputProps {
|
|
|
620
355
|
isStreaming?: boolean;
|
|
621
356
|
className?: string;
|
|
622
357
|
}
|
|
623
|
-
declare const ChatInput:
|
|
358
|
+
declare const ChatInput: React$1.FC<ChatInputProps>;
|
|
624
359
|
|
|
625
360
|
type Theme = 'dark' | 'light' | 'system';
|
|
626
361
|
interface ThemeProviderProps {
|
|
627
|
-
children:
|
|
362
|
+
children: React$1.ReactNode;
|
|
628
363
|
defaultTheme?: Theme;
|
|
629
364
|
storageKey?: string;
|
|
630
365
|
}
|
|
@@ -639,10 +374,10 @@ declare function ThemeToggle(): react_jsx_runtime.JSX.Element;
|
|
|
639
374
|
|
|
640
375
|
interface BaseMessageProps {
|
|
641
376
|
content?: string;
|
|
642
|
-
message?: DistriMessage;
|
|
377
|
+
message?: DistriMessage$1;
|
|
643
378
|
timestamp?: Date;
|
|
644
379
|
className?: string;
|
|
645
|
-
avatar?:
|
|
380
|
+
avatar?: React$1.ReactNode;
|
|
646
381
|
name?: string;
|
|
647
382
|
}
|
|
648
383
|
interface UserMessageProps extends BaseMessageProps {
|
|
@@ -650,201 +385,44 @@ interface UserMessageProps extends BaseMessageProps {
|
|
|
650
385
|
}
|
|
651
386
|
interface AssistantMessageProps extends BaseMessageProps {
|
|
652
387
|
content?: string;
|
|
653
|
-
message?: DistriMessage;
|
|
388
|
+
message?: DistriMessage$1;
|
|
654
389
|
isStreaming?: boolean;
|
|
655
390
|
metadata?: any;
|
|
656
391
|
name?: string;
|
|
657
392
|
}
|
|
658
393
|
interface AssistantWithToolCallsProps extends BaseMessageProps {
|
|
659
394
|
content?: string;
|
|
660
|
-
message?: DistriMessage;
|
|
395
|
+
message?: DistriMessage$1;
|
|
661
396
|
toolCallStates: ToolCallState[];
|
|
662
397
|
timestamp?: Date;
|
|
663
398
|
isStreaming?: boolean;
|
|
664
399
|
}
|
|
665
400
|
interface PlanMessageProps extends BaseMessageProps {
|
|
666
|
-
message?: DistriMessage;
|
|
401
|
+
message?: DistriMessage$1;
|
|
667
402
|
plan: string;
|
|
668
403
|
timestamp?: Date;
|
|
669
404
|
}
|
|
670
405
|
interface DebugMessageProps extends BaseMessageProps {
|
|
671
406
|
className?: string;
|
|
672
407
|
}
|
|
673
|
-
declare const UserMessage:
|
|
674
|
-
declare const AssistantMessage:
|
|
675
|
-
declare const AssistantWithToolCalls:
|
|
676
|
-
declare const PlanMessage:
|
|
677
|
-
declare const DebugMessage:
|
|
408
|
+
declare const UserMessage: React$1.FC<UserMessageProps>;
|
|
409
|
+
declare const AssistantMessage: React$1.FC<AssistantMessageProps>;
|
|
410
|
+
declare const AssistantWithToolCalls: React$1.FC<AssistantWithToolCallsProps>;
|
|
411
|
+
declare const PlanMessage: React$1.FC<PlanMessageProps>;
|
|
412
|
+
declare const DebugMessage: React$1.FC<DebugMessageProps>;
|
|
678
413
|
|
|
679
|
-
declare const ApprovalToolCall:
|
|
414
|
+
declare const ApprovalToolCall: React$1.FC<UiToolProps>;
|
|
680
415
|
|
|
681
|
-
declare const ToastToolCall:
|
|
416
|
+
declare const ToastToolCall: React$1.FC<UiToolProps>;
|
|
682
417
|
|
|
683
418
|
/**
|
|
684
419
|
* Utility function to extract text content from message parts
|
|
685
420
|
*/
|
|
686
|
-
declare const extractTextFromMessage: (message: DistriStreamEvent) => string;
|
|
421
|
+
declare const extractTextFromMessage: (message: DistriStreamEvent$1) => string;
|
|
687
422
|
/**
|
|
688
423
|
* Utility function to determine if a message should be displayed
|
|
689
424
|
* Can be used by builders when creating custom chat components
|
|
690
425
|
*/
|
|
691
|
-
declare const shouldDisplayMessage: (message: DistriStreamEvent, showDebugMessages?: boolean) => boolean;
|
|
692
|
-
|
|
693
|
-
declare const buttonVariants: {
|
|
694
|
-
variant: {
|
|
695
|
-
default: string;
|
|
696
|
-
destructive: string;
|
|
697
|
-
outline: string;
|
|
698
|
-
secondary: string;
|
|
699
|
-
ghost: string;
|
|
700
|
-
link: string;
|
|
701
|
-
};
|
|
702
|
-
size: {
|
|
703
|
-
default: string;
|
|
704
|
-
sm: string;
|
|
705
|
-
lg: string;
|
|
706
|
-
icon: string;
|
|
707
|
-
};
|
|
708
|
-
};
|
|
709
|
-
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
710
|
-
variant?: keyof typeof buttonVariants.variant;
|
|
711
|
-
size?: keyof typeof buttonVariants.size;
|
|
712
|
-
}
|
|
713
|
-
declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
714
|
-
|
|
715
|
-
interface InputProps extends React$1.InputHTMLAttributes<HTMLInputElement> {
|
|
716
|
-
}
|
|
717
|
-
declare const Input: React$1.ForwardRefExoticComponent<InputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
718
|
-
|
|
719
|
-
declare const Card: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
720
|
-
declare const CardHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
721
|
-
declare const CardTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
722
|
-
declare const CardDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
723
|
-
declare const CardContent: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
724
|
-
declare const CardFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
725
|
-
|
|
726
|
-
declare const badgeVariants: (props?: ({
|
|
727
|
-
variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
|
|
728
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
729
|
-
interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
730
|
-
}
|
|
731
|
-
declare function Badge({ className, variant, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
732
|
-
|
|
733
|
-
interface DialogProps {
|
|
734
|
-
open?: boolean;
|
|
735
|
-
onOpenChange?: (open: boolean) => void;
|
|
736
|
-
children: React$1.ReactNode;
|
|
737
|
-
}
|
|
738
|
-
declare const DialogRoot: React$1.FC<DialogProps>;
|
|
739
|
-
declare const DialogTrigger: React$1.ForwardRefExoticComponent<React$1.ButtonHTMLAttributes<HTMLButtonElement> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
740
|
-
declare const DialogContent: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
741
|
-
declare const DialogHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
742
|
-
declare const DialogTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
743
|
-
|
|
744
|
-
interface TextareaProps extends React$1.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
745
|
-
}
|
|
746
|
-
declare const Textarea: React$1.ForwardRefExoticComponent<TextareaProps & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
747
|
-
|
|
748
|
-
declare const TooltipProvider: React$1.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
749
|
-
declare const Tooltip: React$1.FC<TooltipPrimitive.TooltipProps>;
|
|
750
|
-
declare const TooltipTrigger: React$1.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
751
|
-
declare const TooltipContent: React$1.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
752
|
-
|
|
753
|
-
type SidebarContext = {
|
|
754
|
-
state: "expanded" | "collapsed";
|
|
755
|
-
open: boolean;
|
|
756
|
-
setOpen: (open: boolean) => void;
|
|
757
|
-
openMobile: boolean;
|
|
758
|
-
setOpenMobile: (open: boolean) => void;
|
|
759
|
-
isMobile: boolean;
|
|
760
|
-
toggleSidebar: () => void;
|
|
761
|
-
};
|
|
762
|
-
declare const SidebarContext: React$1.Context<SidebarContext | null>;
|
|
763
|
-
declare function useSidebar(): SidebarContext;
|
|
764
|
-
declare const SidebarProvider: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement> & {
|
|
765
|
-
defaultOpen?: boolean;
|
|
766
|
-
open?: boolean;
|
|
767
|
-
onOpenChange?: (open: boolean) => void;
|
|
768
|
-
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
769
|
-
declare const Sidebar: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement> & {
|
|
770
|
-
side?: "left" | "right";
|
|
771
|
-
variant?: "sidebar" | "floating" | "inset";
|
|
772
|
-
collapsible?: "offcanvas" | "icon" | "none";
|
|
773
|
-
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
774
|
-
declare const SidebarTrigger: React$1.ForwardRefExoticComponent<Omit<ButtonProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
775
|
-
declare const SidebarRail: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
776
|
-
declare const SidebarInset: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
777
|
-
declare const SidebarHeader: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
778
|
-
declare const SidebarFooter: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
779
|
-
declare const SidebarSeparator: React$1.ForwardRefExoticComponent<Omit<Omit<_radix_ui_react_separator.SeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
780
|
-
declare const SidebarContent: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
781
|
-
declare const SidebarGroup: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
782
|
-
declare const SidebarGroupLabel: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement> & {
|
|
783
|
-
asChild?: boolean;
|
|
784
|
-
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
785
|
-
declare const SidebarGroupAction: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLButtonElement> & React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
786
|
-
asChild?: boolean;
|
|
787
|
-
}, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
788
|
-
declare const SidebarGroupContent: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
789
|
-
declare const SidebarMenu: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React$1.RefAttributes<HTMLUListElement>>;
|
|
790
|
-
declare const SidebarMenuItem: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React$1.RefAttributes<HTMLLIElement>>;
|
|
791
|
-
declare const SidebarMenuButton: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLButtonElement> & React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
792
|
-
asChild?: boolean;
|
|
793
|
-
isActive?: boolean;
|
|
794
|
-
tooltip?: string | React$1.ComponentProps<typeof TooltipContent>;
|
|
795
|
-
} & VariantProps<(props?: ({
|
|
796
|
-
variant?: "default" | "outline" | null | undefined;
|
|
797
|
-
size?: "default" | "sm" | "lg" | null | undefined;
|
|
798
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
799
|
-
declare const SidebarMenuAction: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLButtonElement> & React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
800
|
-
asChild?: boolean;
|
|
801
|
-
showOnHover?: boolean;
|
|
802
|
-
}, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
803
|
-
declare const SidebarMenuBadge: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
804
|
-
declare const SidebarMenuSkeleton: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement> & {
|
|
805
|
-
showIcon?: boolean;
|
|
806
|
-
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
807
|
-
declare const SidebarMenuSub: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React$1.RefAttributes<HTMLUListElement>>;
|
|
808
|
-
declare const SidebarMenuSubItem: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React$1.RefAttributes<HTMLLIElement>>;
|
|
809
|
-
declare const SidebarMenuSubButton: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLAnchorElement> & React$1.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
810
|
-
asChild?: boolean;
|
|
811
|
-
size?: "sm" | "md";
|
|
812
|
-
isActive?: boolean;
|
|
813
|
-
}, "ref"> & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
814
|
-
|
|
815
|
-
declare const Separator: React$1.ForwardRefExoticComponent<Omit<_radix_ui_react_separator.SeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
816
|
-
|
|
817
|
-
declare const Sheet: React$1.FC<SheetPrimitive.DialogProps>;
|
|
818
|
-
declare const sheetVariants: (props?: ({
|
|
819
|
-
side?: "bottom" | "left" | "right" | "top" | null | undefined;
|
|
820
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
821
|
-
interface SheetContentProps extends React$1.ComponentProps<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
822
|
-
}
|
|
823
|
-
declare const SheetContent: React$1.ForwardRefExoticComponent<Omit<SheetContentProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
824
|
-
declare const SheetHeader: {
|
|
825
|
-
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
826
|
-
displayName: string;
|
|
827
|
-
};
|
|
828
|
-
declare const SheetFooter: {
|
|
829
|
-
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
830
|
-
displayName: string;
|
|
831
|
-
};
|
|
832
|
-
declare const SheetTitle: React$1.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
833
|
-
declare const SheetDescription: React$1.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
834
|
-
|
|
835
|
-
declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
836
|
-
|
|
837
|
-
declare const Select: React$1.FC<SelectPrimitive.SelectProps>;
|
|
838
|
-
declare const SelectGroup: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
839
|
-
declare const SelectValue: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
840
|
-
declare const SelectTrigger: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
841
|
-
declare const SelectScrollUpButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
842
|
-
declare const SelectScrollDownButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
843
|
-
declare const SelectContent: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
844
|
-
declare const SelectLabel: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
845
|
-
declare const SelectItem: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
846
|
-
declare const SelectSeparator: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
847
|
-
|
|
848
|
-
declare function cn(...inputs: ClassValue[]): string;
|
|
426
|
+
declare const shouldDisplayMessage: (message: DistriStreamEvent$1, showDebugMessages?: boolean) => boolean;
|
|
849
427
|
|
|
850
|
-
export { AgentSelect, ApprovalToolCall, AssistantMessage, AssistantWithToolCalls,
|
|
428
|
+
export { AgentSelect, ApprovalToolCall, AssistantMessage, AssistantWithToolCalls, ChatInput, DebugMessage, type DistriAnyTool, DistriProvider, EmbeddableChat, FullChat, PlanMessage, ThemeProvider, ThemeToggle, ToastToolCall, UserMessage, extractTextFromMessage, registerTools, shouldDisplayMessage, useAgent, useAgents, useChat, useDistri, useTheme, useThreads, useToolCallState };
|