@copilotkit/angular 0.2.0 → 0.3.1-canary.rc-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.
@@ -1,7 +1,7 @@
1
1
  import * as _angular_core from '@angular/core';
2
2
  import { Type, Signal, InjectionToken, Provider, Injector, DestroyRef, WritableSignal, OnDestroy, NgZone, ElementRef, TemplateRef, ViewContainerRef, ComponentRef, EmbeddedViewRef, OnInit, OnChanges, ChangeDetectorRef, SimpleChanges, AfterViewInit, EventEmitter } from '@angular/core';
3
3
  import * as _ag_ui_client from '@ag-ui/client';
4
- import { AbstractAgent, ActivityMessage, ToolCall, Context, AssistantMessage, Message as Message$1 } from '@ag-ui/client';
4
+ import { AbstractAgent, ActivityMessage, ToolCall, Message, Interrupt, ResumeEntry, RunAgentResult, Context, AssistantMessage } from '@ag-ui/client';
5
5
  export { AssistantMessage, Message } from '@ag-ui/client';
6
6
  import { FrontendTool, FrontendToolHandlerContext, SuggestionsConfig, CopilotKitCoreRuntimeConnectionStatus, CopilotRuntimeTransport, ThreadEndpointRuntimeInfo, IntelligenceRuntimeInfo, RuntimeLicenseStatus, CopilotKitCoreGetSuggestionsResult, CopilotKitCore, Suggestion, Memory, MemoryRealtimeStatus, NewMemory, MemoryChanges } from '@copilotkit/core';
7
7
  export { DynamicSuggestionsConfig, Memory, MemoryChanges, MemoryKind, MemoryScope, NewMemory, StaticSuggestionsConfig, Suggestion, SuggestionsConfig } from '@copilotkit/core';
@@ -13,8 +13,7 @@ import { ScrollDispatcher, ViewportRuler } from '@angular/cdk/scrolling';
13
13
  import { Observable } from 'rxjs';
14
14
  import { ClassValue } from 'clsx';
15
15
  import * as _copilotkit_angular from '@copilotkit/angular';
16
- import * as lucide_angular from 'lucide-angular';
17
- import { UserMessage, Message, ReasoningMessage, ActivityMessage as ActivityMessage$1 } from '@ag-ui/core';
16
+ import { UserMessage, Message as Message$1, ReasoningMessage, ActivityMessage as ActivityMessage$1 } from '@ag-ui/core';
18
17
  import { DrawerThread } from '@copilotkit/web-components/threads-drawer';
19
18
  import Websandbox from '@jetbrains/websandbox';
20
19
 
@@ -112,7 +111,16 @@ interface RenderActivityMessageConfig<TActivityContent = unknown> {
112
111
  content: AngularActivityContentSchema<TActivityContent>;
113
112
  component: Type<ActivityRenderer<TActivityContent>>;
114
113
  }
114
+ /**
115
+ * Extension point used by optional secondary entry points to contribute
116
+ * lower-precedence built-in activity renderers.
117
+ *
118
+ * @internal
119
+ */
120
+ declare const ɵCOPILOTKIT_BUILT_IN_ACTIVITY_RENDERERS: InjectionToken<RenderActivityMessageConfig<unknown>[]>;
115
121
  declare const anyActivityContentSchema: AngularActivityContentSchema<unknown>;
122
+ /** Register an activity renderer for the lifetime of the current injector. */
123
+ declare function registerRenderActivityMessage(config: RenderActivityMessageConfig): void;
116
124
 
117
125
  declare const OPEN_GENERATIVE_UI_ACTIVITY_TYPE = "open-generative-ui";
118
126
  declare const GENERATE_SANDBOXED_UI_TOOL_NAME = "generateSandboxedUi";
@@ -192,6 +200,15 @@ interface A2UIConfig {
192
200
  catalog?: Catalog<LitComponentImplementation>;
193
201
  loadingComponent?: () => LitRenderable;
194
202
  includeSchema?: boolean;
203
+ recovery?: A2UIRecoveryOptions;
204
+ }
205
+ interface A2UIRecoveryOptions {
206
+ /** Delay before revealing a transient retry. Defaults to 2000ms. */
207
+ showAfterMs?: number;
208
+ /** Attempt number that reveals retry state immediately. Defaults to 2. */
209
+ showAfterAttempts?: number;
210
+ /** Client diagnostic visibility, overridden by server lifecycle content. */
211
+ debugExposure?: "hidden" | "collapsed" | "verbose";
195
212
  }
196
213
  interface CopilotKitConfig {
197
214
  runtimeUrl?: string;
@@ -206,6 +223,8 @@ interface CopilotKitConfig {
206
223
  suggestionsConfig?: SuggestionsConfig[];
207
224
  frontendTools?: FrontendToolConfig[];
208
225
  humanInTheLoop?: HumanInTheLoopConfig[];
226
+ /** Opt in to a text-only renderer for otherwise unknown tool calls. */
227
+ defaultToolRendering?: boolean;
209
228
  a2ui?: A2UIConfig;
210
229
  openGenerativeUI?: OpenGenerativeUIConfig;
211
230
  }
@@ -215,6 +234,8 @@ declare function provideCopilotKit(config: CopilotKitConfig): Provider;
215
234
 
216
235
  declare class CopilotKit {
217
236
  #private;
237
+ /** Whether unknown tools may use the built-in text-only fallback renderer. */
238
+ readonly defaultToolRenderingEnabled: boolean;
218
239
  readonly agents: Signal<Record<string, AbstractAgent>>;
219
240
  readonly runtimeConnectionStatus: Signal<CopilotKitCoreRuntimeConnectionStatus>;
220
241
  readonly runtimeUrl: Signal<string>;
@@ -254,6 +275,8 @@ declare class CopilotKit {
254
275
  }): void;
255
276
  addRenderToolCall(renderConfig: RenderToolCallConfig): void;
256
277
  addRenderActivityMessage(renderConfig: RenderActivityMessageConfig): void;
278
+ /** Remove one dynamically registered activity renderer by identity. */
279
+ removeRenderActivityMessage(renderConfig: RenderActivityMessageConfig): void;
257
280
  addHumanInTheLoop(humanInTheLoopTool: HumanInTheLoopConfig): void;
258
281
  addSuggestionsConfig(config: SuggestionsConfig): string;
259
282
  removeSuggestionsConfig(id: string): void;
@@ -274,6 +297,21 @@ declare class CopilotKit {
274
297
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<CopilotKit>;
275
298
  }
276
299
 
300
+ /** Serialize untrusted tool values defensively for text-only display. */
301
+ declare function safeToolValue(value: unknown): string;
302
+ /** Opt-in text-only fallback for tool calls without an application renderer. */
303
+ declare class CopilotDefaultToolRenderer implements ToolRenderer {
304
+ readonly toolCall: _angular_core.InputSignal<AngularToolCall>;
305
+ protected readonly expanded: _angular_core.WritableSignal<boolean>;
306
+ protected readonly argumentsText: _angular_core.Signal<string>;
307
+ protected readonly resultText: _angular_core.Signal<string>;
308
+ protected readonly statusValue: _angular_core.Signal<string>;
309
+ protected readonly statusLabel: _angular_core.Signal<"Preparing" | "Running" | "Complete" | "Unknown status">;
310
+ protected toggleExpanded(): void;
311
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotDefaultToolRenderer, never>;
312
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotDefaultToolRenderer, "copilot-default-tool-renderer", never, { "toolCall": { "alias": "toolCall"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
313
+ }
314
+
277
315
  type RendererToolCallHandler = {
278
316
  type: "renderer";
279
317
  config: RenderToolCallConfig;
@@ -286,7 +324,25 @@ type HumanInTheLoopToolCallHandler = {
286
324
  type: "humanInTheLoopTool";
287
325
  config: HumanInTheLoopConfig;
288
326
  };
289
- type ToolCallHandler = RendererToolCallHandler | ClientToolCallHandler | HumanInTheLoopToolCallHandler;
327
+ type BuiltInToolCallHandler = {
328
+ type: "builtIn";
329
+ config: {
330
+ component: typeof CopilotDefaultToolRenderer;
331
+ };
332
+ };
333
+ type ToolCallHandler = RendererToolCallHandler | ClientToolCallHandler | HumanInTheLoopToolCallHandler | BuiltInToolCallHandler;
334
+ /** Parse tool-call arguments without allowing malformed payloads to escape. */
335
+ declare function parseToolCallArguments(rawArguments: string, allowPartial?: boolean): Record<string, unknown>;
336
+ interface PickToolCallHandlerOptions {
337
+ name: string;
338
+ agentId?: string;
339
+ application: readonly RenderToolCallConfig[];
340
+ frontend: readonly FrontendToolConfig[];
341
+ humanInTheLoop: readonly HumanInTheLoopConfig[];
342
+ builtInFallback: boolean;
343
+ }
344
+ /** Resolve the documented application/frontend/wildcard/fallback precedence. */
345
+ declare function pickToolCallHandler(options: PickToolCallHandlerOptions): ToolCallHandler | undefined;
290
346
  declare class RenderToolCalls {
291
347
  #private;
292
348
  readonly message: _angular_core.InputSignal<{
@@ -418,7 +474,7 @@ declare class RenderToolCalls {
418
474
  readonly agentId: _angular_core.InputSignal<string>;
419
475
  protected pickRenderer(name: string): ToolCallHandler | undefined;
420
476
  protected buildToolCall<Args extends Record<string, unknown>>(toolCall: ToolCall): AngularToolCall<Args>;
421
- protected buildRendererInputs<Args extends Record<string, unknown>>(toolCall: ToolCall, handler: RendererToolCallHandler | ClientToolCallHandler): {
477
+ protected buildRendererInputs<Args extends Record<string, unknown>>(toolCall: ToolCall, handler: RendererToolCallHandler | ClientToolCallHandler | BuiltInToolCallHandler): {
422
478
  toolCall: AngularToolCall<Args>;
423
479
  agent?: AbstractAgent;
424
480
  };
@@ -435,115 +491,7 @@ declare class AgentStore {
435
491
  #private;
436
492
  readonly agent: AbstractAgent;
437
493
  readonly isRunning: Signal<boolean>;
438
- readonly messages: Signal<({
439
- role: "developer";
440
- content: string;
441
- id: string;
442
- name?: string | undefined;
443
- encryptedValue?: string | undefined;
444
- } | {
445
- role: "system";
446
- content: string;
447
- id: string;
448
- name?: string | undefined;
449
- encryptedValue?: string | undefined;
450
- } | {
451
- role: "assistant";
452
- id: string;
453
- name?: string | undefined;
454
- content?: string | undefined;
455
- encryptedValue?: string | undefined;
456
- toolCalls?: {
457
- function: {
458
- name: string;
459
- arguments: string;
460
- };
461
- type: "function";
462
- id: string;
463
- encryptedValue?: string | undefined;
464
- }[] | undefined;
465
- } | {
466
- role: "user";
467
- content: string | ({
468
- type: "text";
469
- text: string;
470
- } | {
471
- type: "image";
472
- source: {
473
- type: "data";
474
- value: string;
475
- mimeType: string;
476
- } | {
477
- type: "url";
478
- value: string;
479
- mimeType?: string | undefined;
480
- };
481
- metadata?: unknown;
482
- } | {
483
- type: "audio";
484
- source: {
485
- type: "data";
486
- value: string;
487
- mimeType: string;
488
- } | {
489
- type: "url";
490
- value: string;
491
- mimeType?: string | undefined;
492
- };
493
- metadata?: unknown;
494
- } | {
495
- type: "video";
496
- source: {
497
- type: "data";
498
- value: string;
499
- mimeType: string;
500
- } | {
501
- type: "url";
502
- value: string;
503
- mimeType?: string | undefined;
504
- };
505
- metadata?: unknown;
506
- } | {
507
- type: "document";
508
- source: {
509
- type: "data";
510
- value: string;
511
- mimeType: string;
512
- } | {
513
- type: "url";
514
- value: string;
515
- mimeType?: string | undefined;
516
- };
517
- metadata?: unknown;
518
- } | {
519
- type: "binary";
520
- mimeType: string;
521
- id?: string | undefined;
522
- data?: string | undefined;
523
- url?: string | undefined;
524
- filename?: string | undefined;
525
- })[];
526
- id: string;
527
- name?: string | undefined;
528
- encryptedValue?: string | undefined;
529
- } | {
530
- role: "tool";
531
- toolCallId: string;
532
- content: string;
533
- id: string;
534
- encryptedValue?: string | undefined;
535
- error?: string | undefined;
536
- } | {
537
- role: "activity";
538
- content: Record<string, any>;
539
- id: string;
540
- activityType: string;
541
- } | {
542
- role: "reasoning";
543
- content: string;
544
- id: string;
545
- encryptedValue?: string | undefined;
546
- })[]>;
494
+ readonly messages: Signal<Message[]>;
547
495
  readonly state: Signal<unknown>;
548
496
  constructor(abstractAgent: AbstractAgent, destroyRef: DestroyRef, subscribeToAgent: SubscribeToAgentFn);
549
497
  teardown(): void;
@@ -556,6 +504,99 @@ declare class CopilotkitAgentFactory {
556
504
  }
557
505
  declare function injectAgentStore(agentId: string | Signal<string | undefined>): Signal<AgentStore>;
558
506
 
507
+ /** Legacy custom-event interrupt payload. */
508
+ interface InterruptEvent<TValue = unknown> {
509
+ name: string;
510
+ value: TValue;
511
+ }
512
+ /** Options forwarded when resuming an interrupted agent. */
513
+ interface InterruptRunOptions {
514
+ resume?: ResumeEntry[];
515
+ forwardedProps?: Record<string, unknown>;
516
+ }
517
+ /** Injectable interrupt filtering and preprocessing options. */
518
+ interface InjectInterruptOptions<TValue = unknown, TResult = never> {
519
+ /** Agent id or signal. Defaults to the ambient chat agent. */
520
+ agentId?: string | Signal<string | undefined>;
521
+ /** Return false to leave this interrupt for a different controller. */
522
+ enabled?: (event: InterruptEvent<TValue>) => boolean | PromiseLike<boolean>;
523
+ /** Optionally prepare data for the interrupt UI. */
524
+ handler?: (props: InterruptHandlerProps<TValue>) => TResult | PromiseLike<TResult>;
525
+ }
526
+ /** Actions and normalized protocol data passed to interrupt handlers. */
527
+ interface InterruptHandlerProps<TValue = unknown> {
528
+ event: InterruptEvent<TValue>;
529
+ interrupt: Interrupt | null;
530
+ interrupts: readonly Interrupt[];
531
+ resolve: InterruptController<TValue>["resolve"];
532
+ cancel: InterruptController<TValue>["cancel"];
533
+ }
534
+ /** Reactive data suitable for binding to an application interrupt component. */
535
+ interface InterruptView<TValue = unknown, TResult = unknown> extends InterruptHandlerProps<TValue> {
536
+ result: TResult | null;
537
+ }
538
+ type InterruptRunner = (agent: AbstractAgent, options: InterruptRunOptions) => Promise<RunAgentResult>;
539
+ /** Error surfaced when an application attempts to resume an expired interrupt. */
540
+ declare class InterruptExpiredError extends Error {
541
+ readonly interrupt: Interrupt;
542
+ constructor(interrupt: Interrupt);
543
+ }
544
+ /**
545
+ * Signal-based state machine for standard AG-UI and legacy interrupts.
546
+ *
547
+ * Prefer {@link injectInterrupt} in application components. The public class is
548
+ * useful for framework adapters and deterministic lifecycle tests.
549
+ */
550
+ declare class InterruptController<TValue = unknown, TResult = never> {
551
+ #private;
552
+ readonly event: Signal<InterruptEvent<TValue>>;
553
+ readonly interrupt: Signal<{
554
+ id: string;
555
+ reason: string;
556
+ message?: string | undefined;
557
+ toolCallId?: string | undefined;
558
+ metadata?: Record<string, any> | undefined;
559
+ responseSchema?: Record<string, any> | undefined;
560
+ expiresAt?: string | undefined;
561
+ }>;
562
+ readonly interrupts: Signal<readonly {
563
+ id: string;
564
+ reason: string;
565
+ message?: string | undefined;
566
+ toolCallId?: string | undefined;
567
+ metadata?: Record<string, any> | undefined;
568
+ responseSchema?: Record<string, any> | undefined;
569
+ expiresAt?: string | undefined;
570
+ }[]>;
571
+ readonly result: Signal<TResult>;
572
+ readonly error: Signal<unknown>;
573
+ readonly hasInterrupt: Signal<boolean>;
574
+ readonly view: Signal<InterruptView<TValue, TResult>>;
575
+ constructor(runner: InterruptRunner, options?: InjectInterruptOptions<TValue, TResult>);
576
+ /** Subscribe to an agent, replacing any previous lifecycle subscription. */
577
+ connect(agent: AbstractAgent): void;
578
+ /** Clear pending decisions when the host changes threads. */
579
+ setThreadId(threadId: string): void;
580
+ /** Resolve one interrupt, resuming only after the complete set is addressed. */
581
+ readonly resolve: (payload?: unknown, interruptId?: string) => Promise<RunAgentResult | void>;
582
+ /** Cancel one standard interrupt; legacy interrupts are dismissed locally. */
583
+ readonly cancel: (interruptId?: string) => Promise<RunAgentResult | void>;
584
+ /** Alias retained for parity with other CopilotKit framework adapters. */
585
+ readonly resolveInterrupt: (payload?: unknown, interruptId?: string) => Promise<RunAgentResult | void>;
586
+ /** Alias retained for parity with other CopilotKit framework adapters. */
587
+ readonly cancelInterrupt: (interruptId?: string) => Promise<RunAgentResult | void>;
588
+ /** Release the agent subscription and clear sensitive pending state. */
589
+ destroy(): void;
590
+ }
591
+ /**
592
+ * Create an interrupt controller in the current Angular injection context.
593
+ *
594
+ * The controller follows the ambient chat agent and thread unless an explicit
595
+ * agent is supplied. Bind its signals in a template and call `resolve` or
596
+ * `cancel` from user-driven event handlers.
597
+ */
598
+ declare function injectInterrupt<TValue = unknown, TResult = never>(options?: InjectInterruptOptions<TValue, TResult>): InterruptController<TValue, TResult>;
599
+
559
600
  /**
560
601
  * A conversation thread managed by the Intelligence platform.
561
602
  *
@@ -1119,10 +1160,10 @@ interface ConnectAgentContextConfig {
1119
1160
  /**
1120
1161
  * Connects context to the agent.
1121
1162
  *
1122
- * @param context - The context (or a signal of context) to connect to the agent.
1163
+ * @param context - The context (or reactive zero-argument accessor) to connect.
1123
1164
  * @param config - Optional configuration for connecting the context.
1124
1165
  */
1125
- declare function connectAgentContext(context: Context | Signal<Context>, config?: ConnectAgentContextConfig): void;
1166
+ declare function connectAgentContext(context: Context | (() => Context), config?: ConnectAgentContextConfig): void;
1126
1167
 
1127
1168
  /**
1128
1169
  * Return value of {@link injectMemories}.
@@ -1508,7 +1549,7 @@ type ScrollBehavior = "smooth" | "instant" | "auto";
1508
1549
  * </div>
1509
1550
  * ```
1510
1551
  */
1511
- declare class StickToBottom implements OnInit, AfterViewInit, OnDestroy {
1552
+ declare class StickToBottom implements AfterViewInit, OnDestroy {
1512
1553
  enabled: _angular_core.InputSignal<boolean>;
1513
1554
  threshold: _angular_core.InputSignal<number>;
1514
1555
  initialBehavior: _angular_core.InputSignal<ScrollBehavior>;
@@ -1519,12 +1560,14 @@ declare class StickToBottom implements OnInit, AfterViewInit, OnDestroy {
1519
1560
  private elementRef;
1520
1561
  private scrollService;
1521
1562
  private resizeService;
1563
+ private platformId;
1522
1564
  private destroy$;
1523
1565
  private contentElement?;
1524
1566
  private wasAtBottom;
1525
1567
  private hasInitialized;
1526
1568
  private userHasScrolled;
1527
- ngOnInit(): void;
1569
+ private destroyed;
1570
+ constructor();
1528
1571
  ngAfterViewInit(): void;
1529
1572
  private setupScrollMonitoring;
1530
1573
  private setupResizeMonitoring;
@@ -1598,6 +1641,24 @@ declare class CopilotChat extends ChatState {
1598
1641
  readonly agentId: _angular_core.InputSignal<string>;
1599
1642
  readonly threadId: _angular_core.InputSignal<string>;
1600
1643
  readonly inputComponent: _angular_core.InputSignal<Type<any>>;
1644
+ /** Component used to render each assistant message in the prebuilt chat. */
1645
+ readonly assistantMessageComponent: _angular_core.InputSignal<Type<any>>;
1646
+ /** Template used to render each assistant message in the prebuilt chat. */
1647
+ readonly assistantMessageTemplate: _angular_core.InputSignal<TemplateRef<any>>;
1648
+ /** Class forwarded to the default or custom assistant-message renderer. */
1649
+ readonly assistantMessageClass: _angular_core.InputSignal<string>;
1650
+ /** Component used to render each reasoning message in the prebuilt chat. */
1651
+ readonly reasoningMessageComponent: _angular_core.InputSignal<Type<any>>;
1652
+ /** Template used to render each reasoning message in the prebuilt chat. */
1653
+ readonly reasoningMessageTemplate: _angular_core.InputSignal<TemplateRef<any>>;
1654
+ /** Class forwarded to the default or custom reasoning-message renderer. */
1655
+ readonly reasoningMessageClass: _angular_core.InputSignal<string>;
1656
+ /** Component rendered after the transcript messages and before the cursor. */
1657
+ readonly messageViewChildrenComponent: _angular_core.InputSignal<Type<any>>;
1658
+ /** Template rendered after the transcript messages and before the cursor. */
1659
+ readonly messageViewChildrenTemplate: _angular_core.InputSignal<TemplateRef<any>>;
1660
+ /** Class forwarded to custom transcript-children renderers. */
1661
+ readonly messageViewChildrenClass: _angular_core.InputSignal<string>;
1601
1662
  readonly attachmentsConfig: _angular_core.InputSignal<AttachmentsConfig>;
1602
1663
  /**
1603
1664
  * Ambient chat configuration, when a {@link provideCopilotChatConfiguration}
@@ -1721,6 +1782,7 @@ declare class CopilotChat extends ChatState {
1721
1782
  id: string;
1722
1783
  encryptedValue?: string | undefined;
1723
1784
  })[]>;
1785
+ protected agentState: _angular_core.Signal<unknown>;
1724
1786
  protected isRunning: _angular_core.Signal<boolean>;
1725
1787
  protected readonly hasExplicitThreadId: _angular_core.Signal<boolean>;
1726
1788
  protected readonly agentRef: _angular_core.Signal<AbstractAgent>;
@@ -1742,7 +1804,7 @@ declare class CopilotChat extends ChatState {
1742
1804
  handleDragLeave(event: DragEvent): void;
1743
1805
  handleDrop(event: DragEvent): void;
1744
1806
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChat, never>;
1745
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChat, "copilot-chat", never, { "agentId": { "alias": "agentId"; "required": false; "isSignal": true; }; "threadId": { "alias": "threadId"; "required": false; "isSignal": true; }; "inputComponent": { "alias": "inputComponent"; "required": false; "isSignal": true; }; "attachmentsConfig": { "alias": "attachments"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1807
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChat, "copilot-chat", never, { "agentId": { "alias": "agentId"; "required": false; "isSignal": true; }; "threadId": { "alias": "threadId"; "required": false; "isSignal": true; }; "inputComponent": { "alias": "inputComponent"; "required": false; "isSignal": true; }; "assistantMessageComponent": { "alias": "assistantMessageComponent"; "required": false; "isSignal": true; }; "assistantMessageTemplate": { "alias": "assistantMessageTemplate"; "required": false; "isSignal": true; }; "assistantMessageClass": { "alias": "assistantMessageClass"; "required": false; "isSignal": true; }; "reasoningMessageComponent": { "alias": "reasoningMessageComponent"; "required": false; "isSignal": true; }; "reasoningMessageTemplate": { "alias": "reasoningMessageTemplate"; "required": false; "isSignal": true; }; "reasoningMessageClass": { "alias": "reasoningMessageClass"; "required": false; "isSignal": true; }; "messageViewChildrenComponent": { "alias": "messageViewChildrenComponent"; "required": false; "isSignal": true; }; "messageViewChildrenTemplate": { "alias": "messageViewChildrenTemplate"; "required": false; "isSignal": true; }; "messageViewChildrenClass": { "alias": "messageViewChildrenClass"; "required": false; "isSignal": true; }; "attachmentsConfig": { "alias": "attachments"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1746
1808
  }
1747
1809
 
1748
1810
  declare class CopilotChatToolCallsView {
@@ -1932,6 +1994,12 @@ declare class CopilotChatAssistantMessageRenderer implements AfterViewInit {
1932
1994
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatAssistantMessageRenderer, "copilot-chat-assistant-message-renderer", never, { "content": { "alias": "content"; "required": false; "isSignal": true; }; "inputClass": { "alias": "inputClass"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1933
1995
  }
1934
1996
 
1997
+ interface CopilotIconNode {
1998
+ readonly tag: "path" | "rect";
1999
+ readonly attributes: Readonly<Record<string, string>>;
2000
+ }
2001
+ type CopilotIconData = readonly CopilotIconNode[];
2002
+
1935
2003
  declare class CopilotChatAssistantMessageToolbarButton {
1936
2004
  title: _angular_core.InputSignal<string>;
1937
2005
  disabled: _angular_core.InputSignal<boolean>;
@@ -1946,8 +2014,8 @@ declare class CopilotChatAssistantMessageCopyButton {
1946
2014
  readonly inputClass: _angular_core.InputSignal<string>;
1947
2015
  readonly content: _angular_core.InputSignal<string>;
1948
2016
  readonly clicked: _angular_core.OutputEmitterRef<void>;
1949
- readonly CopyIcon: lucide_angular.LucideIconData;
1950
- readonly CheckIcon: lucide_angular.LucideIconData;
2017
+ readonly CopyIcon: CopilotIconData;
2018
+ readonly CheckIcon: CopilotIconData;
1951
2019
  readonly copied: _angular_core.WritableSignal<boolean>;
1952
2020
  readonly labels: _copilotkit_angular.CopilotChatLabels;
1953
2021
  handleCopy(event?: Event): void;
@@ -1959,7 +2027,7 @@ declare class CopilotChatAssistantMessageThumbsUpButton {
1959
2027
  readonly disabled: _angular_core.InputSignal<boolean>;
1960
2028
  readonly inputClass: _angular_core.InputSignal<string>;
1961
2029
  readonly clicked: _angular_core.OutputEmitterRef<void>;
1962
- readonly ThumbsUpIcon: lucide_angular.LucideIconData;
2030
+ readonly ThumbsUpIcon: CopilotIconData;
1963
2031
  readonly labels: _copilotkit_angular.CopilotChatLabels;
1964
2032
  handleClick(event?: Event): void;
1965
2033
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatAssistantMessageThumbsUpButton, never>;
@@ -1970,7 +2038,7 @@ declare class CopilotChatAssistantMessageThumbsDownButton {
1970
2038
  readonly disabled: _angular_core.InputSignal<boolean>;
1971
2039
  readonly inputClass: _angular_core.InputSignal<string>;
1972
2040
  readonly clicked: _angular_core.OutputEmitterRef<void>;
1973
- readonly ThumbsDownIcon: lucide_angular.LucideIconData;
2041
+ readonly ThumbsDownIcon: CopilotIconData;
1974
2042
  readonly labels: _copilotkit_angular.CopilotChatLabels;
1975
2043
  handleClick(event?: Event): void;
1976
2044
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatAssistantMessageThumbsDownButton, never>;
@@ -1981,7 +2049,7 @@ declare class CopilotChatAssistantMessageReadAloudButton {
1981
2049
  readonly disabled: _angular_core.InputSignal<boolean>;
1982
2050
  readonly inputClass: _angular_core.InputSignal<string>;
1983
2051
  readonly clicked: _angular_core.OutputEmitterRef<void>;
1984
- readonly Volume2Icon: lucide_angular.LucideIconData;
2052
+ readonly Volume2Icon: CopilotIconData;
1985
2053
  readonly labels: _copilotkit_angular.CopilotChatLabels;
1986
2054
  handleClick(event?: Event): void;
1987
2055
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatAssistantMessageReadAloudButton, never>;
@@ -1992,7 +2060,7 @@ declare class CopilotChatAssistantMessageRegenerateButton {
1992
2060
  readonly disabled: _angular_core.InputSignal<boolean>;
1993
2061
  readonly inputClass: _angular_core.InputSignal<string>;
1994
2062
  readonly clicked: _angular_core.OutputEmitterRef<void>;
1995
- readonly RefreshCwIcon: lucide_angular.LucideIconData;
2063
+ readonly RefreshCwIcon: CopilotIconData;
1996
2064
  readonly labels: _copilotkit_angular.CopilotChatLabels;
1997
2065
  handleClick(event?: Event): void;
1998
2066
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatAssistantMessageRegenerateButton, never>;
@@ -2578,7 +2646,7 @@ declare class CopilotChatAudioRecorder implements AfterViewInit {
2578
2646
  declare class CopilotChatSendButton {
2579
2647
  disabled: _angular_core.InputSignal<boolean>;
2580
2648
  clicked: _angular_core.OutputEmitterRef<void>;
2581
- readonly ArrowUpIcon: lucide_angular.LucideIconData;
2649
+ readonly ArrowUpIcon: CopilotIconData;
2582
2650
  buttonClass: string;
2583
2651
  onClick(): void;
2584
2652
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatSendButton, never>;
@@ -2588,7 +2656,7 @@ declare class CopilotChatStartTranscribeButton {
2588
2656
  disabled: _angular_core.InputSignal<boolean>;
2589
2657
  clicked: _angular_core.OutputEmitterRef<void>;
2590
2658
  readonly labels: _copilotkit_angular.CopilotChatLabels;
2591
- readonly MicIcon: lucide_angular.LucideIconData;
2659
+ readonly MicIcon: CopilotIconData;
2592
2660
  buttonClass: string;
2593
2661
  get label(): string;
2594
2662
  onClick(): void;
@@ -2599,7 +2667,7 @@ declare class CopilotChatCancelTranscribeButton {
2599
2667
  disabled: _angular_core.InputSignal<boolean>;
2600
2668
  clicked: _angular_core.OutputEmitterRef<void>;
2601
2669
  readonly labels: _copilotkit_angular.CopilotChatLabels;
2602
- readonly XIcon: lucide_angular.LucideIconData;
2670
+ readonly XIcon: CopilotIconData;
2603
2671
  buttonClass: string;
2604
2672
  get label(): string;
2605
2673
  onClick(): void;
@@ -2610,7 +2678,7 @@ declare class CopilotChatFinishTranscribeButton {
2610
2678
  disabled: _angular_core.InputSignal<boolean>;
2611
2679
  clicked: _angular_core.OutputEmitterRef<void>;
2612
2680
  readonly labels: _copilotkit_angular.CopilotChatLabels;
2613
- readonly CheckIcon: lucide_angular.LucideIconData;
2681
+ readonly CheckIcon: CopilotIconData;
2614
2682
  buttonClass: string;
2615
2683
  get label(): string;
2616
2684
  onClick(): void;
@@ -2621,7 +2689,7 @@ declare class CopilotChatAddFileButton {
2621
2689
  disabled: _angular_core.InputSignal<boolean>;
2622
2690
  clicked: _angular_core.OutputEmitterRef<void>;
2623
2691
  readonly labels: _copilotkit_angular.CopilotChatLabels;
2624
- readonly PlusIcon: lucide_angular.LucideIconData;
2692
+ readonly PlusIcon: CopilotIconData;
2625
2693
  buttonClass: string;
2626
2694
  get label(): string;
2627
2695
  onClick(): void;
@@ -2629,19 +2697,20 @@ declare class CopilotChatAddFileButton {
2629
2697
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatAddFileButton, "copilot-chat-add-file-button", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "clicked": "clicked"; }, never, never, true, never>;
2630
2698
  }
2631
2699
  declare class CopilotChatToolbarButton {
2632
- disabled: _angular_core.WritableSignal<boolean>;
2633
- variant: _angular_core.WritableSignal<"primary" | "secondary">;
2634
- customClass: _angular_core.WritableSignal<string>;
2635
- title: _angular_core.WritableSignal<string>;
2700
+ disabled: _angular_core.InputSignal<boolean>;
2701
+ variant: _angular_core.InputSignal<"primary" | "secondary">;
2702
+ customClass: _angular_core.InputSignal<string>;
2703
+ title: _angular_core.InputSignal<string>;
2636
2704
  clicked: _angular_core.OutputEmitterRef<void>;
2637
2705
  computedClass: _angular_core.Signal<string>;
2638
2706
  onClick(): void;
2639
2707
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatToolbarButton, never>;
2640
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatToolbarButton, "copilot-chat-toolbar-button", never, {}, { "clicked": "clicked"; }, never, ["*"], true, never>;
2708
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatToolbarButton, "copilot-chat-toolbar-button", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "customClass": { "alias": "customClass"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; }, { "clicked": "clicked"; }, never, ["*"], true, never>;
2641
2709
  }
2642
2710
 
2643
2711
  declare class CopilotChatTextarea implements AfterViewInit {
2644
2712
  private elementRef;
2713
+ private platformId;
2645
2714
  get textareaRef(): ElementRef<any>;
2646
2715
  inputValue: _angular_core.InputSignal<string>;
2647
2716
  inputPlaceholder: _angular_core.InputSignal<string>;
@@ -2688,8 +2757,8 @@ declare class CopilotChatToolbar {
2688
2757
  }
2689
2758
 
2690
2759
  declare class CopilotChatToolsMenu {
2691
- readonly PlusIcon: lucide_angular.LucideIconData;
2692
- readonly ChevronRightIcon: lucide_angular.LucideIconData;
2760
+ readonly PlusIcon: CopilotIconData;
2761
+ readonly ChevronRightIcon: CopilotIconData;
2693
2762
  inputToolsMenu: _angular_core.InputSignal<(ToolsMenuItem | "-")[]>;
2694
2763
  inputDisabled: _angular_core.InputSignal<boolean>;
2695
2764
  inputClass: _angular_core.InputSignal<string>;
@@ -2723,7 +2792,7 @@ interface ToolbarContext {
2723
2792
  mode: CopilotChatInputMode;
2724
2793
  value: string;
2725
2794
  }
2726
- declare class CopilotChatInput implements AfterViewInit, OnDestroy {
2795
+ declare class CopilotChatInput implements OnDestroy {
2727
2796
  readonly textAreaRef: _angular_core.Signal<CopilotChatTextarea>;
2728
2797
  readonly audioRecorderRef: _angular_core.Signal<CopilotChatAudioRecorder>;
2729
2798
  readonly sendButtonTemplate: _angular_core.Signal<TemplateRef<SendButtonContext>>;
@@ -2768,7 +2837,7 @@ declare class CopilotChatInput implements AfterViewInit, OnDestroy {
2768
2837
  finishTranscribeWithAudio: _angular_core.OutputEmitterRef<Blob>;
2769
2838
  addFile: _angular_core.OutputEmitterRef<void>;
2770
2839
  valueChange: _angular_core.OutputEmitterRef<string>;
2771
- readonly ArrowUpIcon: lucide_angular.LucideIconData;
2840
+ readonly ArrowUpIcon: CopilotIconData;
2772
2841
  readonly defaultButtonClass: string;
2773
2842
  readonly labels: _copilotkit_angular.CopilotChatLabels;
2774
2843
  readonly chatState: _copilotkit_angular.ChatState;
@@ -2829,7 +2898,6 @@ declare class CopilotChatInput implements AfterViewInit, OnDestroy {
2829
2898
  clicked: () => void;
2830
2899
  click: () => void;
2831
2900
  };
2832
- ngAfterViewInit(): void;
2833
2901
  ngOnDestroy(): void;
2834
2902
  handleKeyDown(event: KeyboardEvent): void;
2835
2903
  handleValueChange(value: string): void;
@@ -2924,8 +2992,8 @@ declare class CopilotChatUserMessageCopyButton {
2924
2992
  readonly inputClass: _angular_core.InputSignal<string>;
2925
2993
  readonly content: _angular_core.InputSignal<string>;
2926
2994
  readonly clicked: _angular_core.OutputEmitterRef<void>;
2927
- readonly CopyIcon: lucide_angular.LucideIconData;
2928
- readonly CheckIcon: lucide_angular.LucideIconData;
2995
+ readonly CopyIcon: CopilotIconData;
2996
+ readonly CheckIcon: CopilotIconData;
2929
2997
  readonly copied: _angular_core.WritableSignal<boolean>;
2930
2998
  readonly labels: _copilotkit_angular.CopilotChatLabels;
2931
2999
  handleCopy(): void;
@@ -2937,7 +3005,7 @@ declare class CopilotChatUserMessageEditButton {
2937
3005
  disabled: _angular_core.InputSignal<boolean>;
2938
3006
  inputClass: _angular_core.InputSignal<string>;
2939
3007
  clicked: _angular_core.OutputEmitterRef<void>;
2940
- readonly EditIcon: lucide_angular.LucideIconData;
3008
+ readonly EditIcon: CopilotIconData;
2941
3009
  readonly labels: _copilotkit_angular.CopilotChatLabels;
2942
3010
  handleEdit(): void;
2943
3011
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatUserMessageEditButton, never>;
@@ -3021,8 +3089,8 @@ declare class CopilotChatUserMessageBranchNavigation {
3021
3089
  }>;
3022
3090
  inputClass: _angular_core.InputSignal<string>;
3023
3091
  switchToBranch: _angular_core.OutputEmitterRef<CopilotChatUserMessageOnSwitchToBranchProps>;
3024
- readonly ChevronLeftIcon: lucide_angular.LucideIconData;
3025
- readonly ChevronRightIcon: lucide_angular.LucideIconData;
3092
+ readonly ChevronLeftIcon: CopilotIconData;
3093
+ readonly ChevronRightIcon: CopilotIconData;
3026
3094
  readonly buttonClass: string;
3027
3095
  showNavigation: _angular_core.Signal<boolean>;
3028
3096
  canGoPrev: _angular_core.Signal<boolean>;
@@ -3163,13 +3231,14 @@ declare class CopilotChatMessageViewCursor {
3163
3231
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatMessageViewCursor, "copilot-chat-message-view-cursor", never, { "inputClass": { "alias": "inputClass"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
3164
3232
  }
3165
3233
 
3166
- /**
3167
- * CopilotChatMessageView component - Angular port of the React component.
3168
- * Renders a list of chat messages with support for custom slots and layouts.
3169
- * DOM structure and Tailwind classes match the React implementation exactly.
3170
- */
3171
- declare class CopilotChatMessageView {
3172
- messages: _angular_core.InputSignal<({
3234
+ declare class CopilotChatReasoningMessage {
3235
+ readonly message: _angular_core.InputSignal<{
3236
+ role: "reasoning";
3237
+ content: string;
3238
+ id: string;
3239
+ encryptedValue?: string | undefined;
3240
+ }>;
3241
+ readonly messages: _angular_core.InputSignal<({
3173
3242
  role: "developer";
3174
3243
  content: string;
3175
3244
  id: string;
@@ -3278,43 +3347,31 @@ declare class CopilotChatMessageView {
3278
3347
  id: string;
3279
3348
  encryptedValue?: string | undefined;
3280
3349
  })[]>;
3281
- showCursor: _angular_core.InputSignal<boolean>;
3282
- isLoading: _angular_core.InputSignal<boolean>;
3283
- inputClass: _angular_core.InputSignal<string>;
3284
- agentId: _angular_core.InputSignal<string>;
3285
- assistantMessageComponent: _angular_core.InputSignal<Type<any>>;
3286
- assistantMessageTemplate: _angular_core.InputSignal<TemplateRef<any>>;
3287
- assistantMessageClass: _angular_core.InputSignal<string>;
3288
- userMessageComponent: _angular_core.InputSignal<Type<any>>;
3289
- userMessageTemplate: _angular_core.InputSignal<TemplateRef<any>>;
3290
- userMessageClass: _angular_core.InputSignal<string>;
3291
- cursorComponent: _angular_core.InputSignal<Type<any>>;
3292
- cursorTemplate: _angular_core.InputSignal<TemplateRef<any>>;
3293
- cursorClass: _angular_core.InputSignal<string>;
3294
- customLayoutTemplate?: TemplateRef<any>;
3295
- assistantMessageThumbsUp: _angular_core.OutputEmitterRef<{
3296
- message: Message;
3297
- }>;
3298
- assistantMessageThumbsDown: _angular_core.OutputEmitterRef<{
3299
- message: Message;
3300
- }>;
3301
- assistantMessageReadAloud: _angular_core.OutputEmitterRef<{
3302
- message: Message;
3303
- }>;
3304
- assistantMessageRegenerate: _angular_core.OutputEmitterRef<{
3305
- message: Message;
3306
- }>;
3307
- userMessageCopy: _angular_core.OutputEmitterRef<{
3308
- message: Message;
3309
- }>;
3310
- userMessageEdit: _angular_core.OutputEmitterRef<{
3311
- message: Message;
3312
- }>;
3313
- protected readonly defaultAssistantComponent: typeof CopilotChatAssistantMessage;
3314
- protected readonly defaultUserComponent: typeof CopilotChatUserMessage;
3315
- protected readonly defaultCursorComponent: typeof CopilotChatMessageViewCursor;
3316
- protected readonly copilotKit: CopilotKit;
3317
- protected messagesValue: _angular_core.Signal<({
3350
+ readonly isRunning: _angular_core.InputSignal<boolean>;
3351
+ readonly inputClass: _angular_core.InputSignal<string>;
3352
+ private readonly userToggled;
3353
+ protected readonly isLatest: _angular_core.Signal<boolean>;
3354
+ protected readonly isStreaming: _angular_core.Signal<boolean>;
3355
+ private readonly startTime;
3356
+ protected readonly open: _angular_core.WritableSignal<boolean>;
3357
+ protected readonly hasContent: _angular_core.Signal<boolean>;
3358
+ protected readonly reasoningContent: _angular_core.Signal<string>;
3359
+ protected readonly label: _angular_core.Signal<string>;
3360
+ protected readonly computedClass: _angular_core.Signal<string>;
3361
+ protected readonly headerClass: _angular_core.Signal<string>;
3362
+ protected readonly chevronClass: _angular_core.Signal<string>;
3363
+ protected toggle(): void;
3364
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatReasoningMessage, never>;
3365
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatReasoningMessage, "copilot-chat-reasoning-message", never, { "message": { "alias": "message"; "required": true; "isSignal": true; }; "messages": { "alias": "messages"; "required": false; "isSignal": true; }; "isRunning": { "alias": "isRunning"; "required": false; "isSignal": true; }; "inputClass": { "alias": "inputClass"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
3366
+ }
3367
+
3368
+ /**
3369
+ * CopilotChatMessageView component - Angular port of the React component.
3370
+ * Renders a list of chat messages with support for custom slots and layouts.
3371
+ * DOM structure and Tailwind classes match the React implementation exactly.
3372
+ */
3373
+ declare class CopilotChatMessageView {
3374
+ messages: _angular_core.InputSignal<({
3318
3375
  role: "developer";
3319
3376
  content: string;
3320
3377
  id: string;
@@ -3423,42 +3480,85 @@ declare class CopilotChatMessageView {
3423
3480
  id: string;
3424
3481
  encryptedValue?: string | undefined;
3425
3482
  })[]>;
3426
- protected showCursorValue: _angular_core.Signal<boolean>;
3427
- protected isLoadingValue: _angular_core.Signal<boolean>;
3428
- protected lastMessage: _angular_core.Signal<{
3429
- role: "developer";
3430
- content: string;
3431
- id: string;
3432
- name?: string | undefined;
3433
- encryptedValue?: string | undefined;
3434
- } | {
3435
- role: "system";
3436
- content: string;
3437
- id: string;
3438
- name?: string | undefined;
3439
- encryptedValue?: string | undefined;
3440
- } | {
3441
- role: "assistant";
3442
- id: string;
3443
- name?: string | undefined;
3444
- content?: string | undefined;
3445
- encryptedValue?: string | undefined;
3446
- toolCalls?: {
3447
- function: {
3448
- name: string;
3449
- arguments: string;
3450
- };
3451
- type: "function";
3452
- id: string;
3453
- encryptedValue?: string | undefined;
3454
- }[] | undefined;
3455
- } | {
3456
- role: "user";
3457
- content: string | ({
3458
- type: "text";
3459
- text: string;
3460
- } | {
3461
- type: "image";
3483
+ /** Current agent state exposed to transcript-children slots. */
3484
+ state: _angular_core.InputSignal<unknown>;
3485
+ showCursor: _angular_core.InputSignal<boolean>;
3486
+ isLoading: _angular_core.InputSignal<boolean>;
3487
+ inputClass: _angular_core.InputSignal<string>;
3488
+ agentId: _angular_core.InputSignal<string>;
3489
+ assistantMessageComponent: _angular_core.InputSignal<Type<any>>;
3490
+ assistantMessageTemplate: _angular_core.InputSignal<TemplateRef<any>>;
3491
+ assistantMessageClass: _angular_core.InputSignal<string>;
3492
+ reasoningMessageComponent: _angular_core.InputSignal<Type<any>>;
3493
+ reasoningMessageTemplate: _angular_core.InputSignal<TemplateRef<any>>;
3494
+ reasoningMessageClass: _angular_core.InputSignal<string>;
3495
+ childrenComponent: _angular_core.InputSignal<Type<any>>;
3496
+ childrenTemplate: _angular_core.InputSignal<TemplateRef<any>>;
3497
+ childrenClass: _angular_core.InputSignal<string>;
3498
+ userMessageComponent: _angular_core.InputSignal<Type<any>>;
3499
+ userMessageTemplate: _angular_core.InputSignal<TemplateRef<any>>;
3500
+ userMessageClass: _angular_core.InputSignal<string>;
3501
+ cursorComponent: _angular_core.InputSignal<Type<any>>;
3502
+ cursorTemplate: _angular_core.InputSignal<TemplateRef<any>>;
3503
+ cursorClass: _angular_core.InputSignal<string>;
3504
+ customLayoutTemplate?: TemplateRef<any>;
3505
+ assistantMessageThumbsUp: _angular_core.OutputEmitterRef<{
3506
+ message: Message$1;
3507
+ }>;
3508
+ assistantMessageThumbsDown: _angular_core.OutputEmitterRef<{
3509
+ message: Message$1;
3510
+ }>;
3511
+ assistantMessageReadAloud: _angular_core.OutputEmitterRef<{
3512
+ message: Message$1;
3513
+ }>;
3514
+ assistantMessageRegenerate: _angular_core.OutputEmitterRef<{
3515
+ message: Message$1;
3516
+ }>;
3517
+ userMessageCopy: _angular_core.OutputEmitterRef<{
3518
+ message: Message$1;
3519
+ }>;
3520
+ userMessageEdit: _angular_core.OutputEmitterRef<{
3521
+ message: Message$1;
3522
+ }>;
3523
+ protected readonly defaultAssistantComponent: typeof CopilotChatAssistantMessage;
3524
+ protected readonly defaultUserComponent: typeof CopilotChatUserMessage;
3525
+ protected readonly defaultReasoningComponent: typeof CopilotChatReasoningMessage;
3526
+ protected readonly defaultCursorComponent: typeof CopilotChatMessageViewCursor;
3527
+ protected readonly copilotKit: CopilotKit;
3528
+ protected messagesValue: _angular_core.Signal<({
3529
+ role: "developer";
3530
+ content: string;
3531
+ id: string;
3532
+ name?: string | undefined;
3533
+ encryptedValue?: string | undefined;
3534
+ } | {
3535
+ role: "system";
3536
+ content: string;
3537
+ id: string;
3538
+ name?: string | undefined;
3539
+ encryptedValue?: string | undefined;
3540
+ } | {
3541
+ role: "assistant";
3542
+ id: string;
3543
+ name?: string | undefined;
3544
+ content?: string | undefined;
3545
+ encryptedValue?: string | undefined;
3546
+ toolCalls?: {
3547
+ function: {
3548
+ name: string;
3549
+ arguments: string;
3550
+ };
3551
+ type: "function";
3552
+ id: string;
3553
+ encryptedValue?: string | undefined;
3554
+ }[] | undefined;
3555
+ } | {
3556
+ role: "user";
3557
+ content: string | ({
3558
+ type: "text";
3559
+ text: string;
3560
+ } | {
3561
+ type: "image";
3462
3562
  source: {
3463
3563
  type: "data";
3464
3564
  value: string;
@@ -3513,31 +3613,366 @@ declare class CopilotChatMessageView {
3513
3613
  url?: string | undefined;
3514
3614
  filename?: string | undefined;
3515
3615
  })[];
3516
- id: string;
3517
- name?: string | undefined;
3518
- encryptedValue?: string | undefined;
3519
- } | {
3520
- role: "tool";
3521
- toolCallId: string;
3522
- content: string;
3523
- id: string;
3524
- encryptedValue?: string | undefined;
3525
- error?: string | undefined;
3526
- } | {
3527
- role: "activity";
3528
- content: Record<string, any>;
3529
- id: string;
3530
- activityType: string;
3531
- } | {
3532
- role: "reasoning";
3533
- content: string;
3534
- id: string;
3535
- encryptedValue?: string | undefined;
3616
+ id: string;
3617
+ name?: string | undefined;
3618
+ encryptedValue?: string | undefined;
3619
+ } | {
3620
+ role: "tool";
3621
+ toolCallId: string;
3622
+ content: string;
3623
+ id: string;
3624
+ encryptedValue?: string | undefined;
3625
+ error?: string | undefined;
3626
+ } | {
3627
+ role: "activity";
3628
+ content: Record<string, any>;
3629
+ id: string;
3630
+ activityType: string;
3631
+ } | {
3632
+ role: "reasoning";
3633
+ content: string;
3634
+ id: string;
3635
+ encryptedValue?: string | undefined;
3636
+ })[]>;
3637
+ protected showCursorValue: _angular_core.Signal<boolean>;
3638
+ protected isLoadingValue: _angular_core.Signal<boolean>;
3639
+ protected lastMessage: _angular_core.Signal<{
3640
+ role: "developer";
3641
+ content: string;
3642
+ id: string;
3643
+ name?: string | undefined;
3644
+ encryptedValue?: string | undefined;
3645
+ } | {
3646
+ role: "system";
3647
+ content: string;
3648
+ id: string;
3649
+ name?: string | undefined;
3650
+ encryptedValue?: string | undefined;
3651
+ } | {
3652
+ role: "assistant";
3653
+ id: string;
3654
+ name?: string | undefined;
3655
+ content?: string | undefined;
3656
+ encryptedValue?: string | undefined;
3657
+ toolCalls?: {
3658
+ function: {
3659
+ name: string;
3660
+ arguments: string;
3661
+ };
3662
+ type: "function";
3663
+ id: string;
3664
+ encryptedValue?: string | undefined;
3665
+ }[] | undefined;
3666
+ } | {
3667
+ role: "user";
3668
+ content: string | ({
3669
+ type: "text";
3670
+ text: string;
3671
+ } | {
3672
+ type: "image";
3673
+ source: {
3674
+ type: "data";
3675
+ value: string;
3676
+ mimeType: string;
3677
+ } | {
3678
+ type: "url";
3679
+ value: string;
3680
+ mimeType?: string | undefined;
3681
+ };
3682
+ metadata?: unknown;
3683
+ } | {
3684
+ type: "audio";
3685
+ source: {
3686
+ type: "data";
3687
+ value: string;
3688
+ mimeType: string;
3689
+ } | {
3690
+ type: "url";
3691
+ value: string;
3692
+ mimeType?: string | undefined;
3693
+ };
3694
+ metadata?: unknown;
3695
+ } | {
3696
+ type: "video";
3697
+ source: {
3698
+ type: "data";
3699
+ value: string;
3700
+ mimeType: string;
3701
+ } | {
3702
+ type: "url";
3703
+ value: string;
3704
+ mimeType?: string | undefined;
3705
+ };
3706
+ metadata?: unknown;
3707
+ } | {
3708
+ type: "document";
3709
+ source: {
3710
+ type: "data";
3711
+ value: string;
3712
+ mimeType: string;
3713
+ } | {
3714
+ type: "url";
3715
+ value: string;
3716
+ mimeType?: string | undefined;
3717
+ };
3718
+ metadata?: unknown;
3719
+ } | {
3720
+ type: "binary";
3721
+ mimeType: string;
3722
+ id?: string | undefined;
3723
+ data?: string | undefined;
3724
+ url?: string | undefined;
3725
+ filename?: string | undefined;
3726
+ })[];
3727
+ id: string;
3728
+ name?: string | undefined;
3729
+ encryptedValue?: string | undefined;
3730
+ } | {
3731
+ role: "tool";
3732
+ toolCallId: string;
3733
+ content: string;
3734
+ id: string;
3735
+ encryptedValue?: string | undefined;
3736
+ error?: string | undefined;
3737
+ } | {
3738
+ role: "activity";
3739
+ content: Record<string, any>;
3740
+ id: string;
3741
+ activityType: string;
3742
+ } | {
3743
+ role: "reasoning";
3744
+ content: string;
3745
+ id: string;
3746
+ encryptedValue?: string | undefined;
3747
+ }>;
3748
+ computedClass: _angular_core.Signal<string>;
3749
+ layoutContext: _angular_core.Signal<{
3750
+ isLoading: boolean;
3751
+ messages: ({
3752
+ role: "developer";
3753
+ content: string;
3754
+ id: string;
3755
+ name?: string | undefined;
3756
+ encryptedValue?: string | undefined;
3757
+ } | {
3758
+ role: "system";
3759
+ content: string;
3760
+ id: string;
3761
+ name?: string | undefined;
3762
+ encryptedValue?: string | undefined;
3763
+ } | {
3764
+ role: "assistant";
3765
+ id: string;
3766
+ name?: string | undefined;
3767
+ content?: string | undefined;
3768
+ encryptedValue?: string | undefined;
3769
+ toolCalls?: {
3770
+ function: {
3771
+ name: string;
3772
+ arguments: string;
3773
+ };
3774
+ type: "function";
3775
+ id: string;
3776
+ encryptedValue?: string | undefined;
3777
+ }[] | undefined;
3778
+ } | {
3779
+ role: "user";
3780
+ content: string | ({
3781
+ type: "text";
3782
+ text: string;
3783
+ } | {
3784
+ type: "image";
3785
+ source: {
3786
+ type: "data";
3787
+ value: string;
3788
+ mimeType: string;
3789
+ } | {
3790
+ type: "url";
3791
+ value: string;
3792
+ mimeType?: string | undefined;
3793
+ };
3794
+ metadata?: unknown;
3795
+ } | {
3796
+ type: "audio";
3797
+ source: {
3798
+ type: "data";
3799
+ value: string;
3800
+ mimeType: string;
3801
+ } | {
3802
+ type: "url";
3803
+ value: string;
3804
+ mimeType?: string | undefined;
3805
+ };
3806
+ metadata?: unknown;
3807
+ } | {
3808
+ type: "video";
3809
+ source: {
3810
+ type: "data";
3811
+ value: string;
3812
+ mimeType: string;
3813
+ } | {
3814
+ type: "url";
3815
+ value: string;
3816
+ mimeType?: string | undefined;
3817
+ };
3818
+ metadata?: unknown;
3819
+ } | {
3820
+ type: "document";
3821
+ source: {
3822
+ type: "data";
3823
+ value: string;
3824
+ mimeType: string;
3825
+ } | {
3826
+ type: "url";
3827
+ value: string;
3828
+ mimeType?: string | undefined;
3829
+ };
3830
+ metadata?: unknown;
3831
+ } | {
3832
+ type: "binary";
3833
+ mimeType: string;
3834
+ id?: string | undefined;
3835
+ data?: string | undefined;
3836
+ url?: string | undefined;
3837
+ filename?: string | undefined;
3838
+ })[];
3839
+ id: string;
3840
+ name?: string | undefined;
3841
+ encryptedValue?: string | undefined;
3842
+ } | {
3843
+ role: "tool";
3844
+ toolCallId: string;
3845
+ content: string;
3846
+ id: string;
3847
+ encryptedValue?: string | undefined;
3848
+ error?: string | undefined;
3849
+ } | {
3850
+ role: "activity";
3851
+ content: Record<string, any>;
3852
+ id: string;
3853
+ activityType: string;
3854
+ } | {
3855
+ role: "reasoning";
3856
+ content: string;
3857
+ id: string;
3858
+ encryptedValue?: string | undefined;
3859
+ })[];
3860
+ showCursor: boolean;
3861
+ messageElements: ({
3862
+ role: "developer";
3863
+ content: string;
3864
+ id: string;
3865
+ name?: string | undefined;
3866
+ encryptedValue?: string | undefined;
3867
+ } | {
3868
+ role: "system";
3869
+ content: string;
3870
+ id: string;
3871
+ name?: string | undefined;
3872
+ encryptedValue?: string | undefined;
3873
+ } | {
3874
+ role: "assistant";
3875
+ id: string;
3876
+ name?: string | undefined;
3877
+ content?: string | undefined;
3878
+ encryptedValue?: string | undefined;
3879
+ toolCalls?: {
3880
+ function: {
3881
+ name: string;
3882
+ arguments: string;
3883
+ };
3884
+ type: "function";
3885
+ id: string;
3886
+ encryptedValue?: string | undefined;
3887
+ }[] | undefined;
3888
+ } | {
3889
+ role: "user";
3890
+ content: string | ({
3891
+ type: "text";
3892
+ text: string;
3893
+ } | {
3894
+ type: "image";
3895
+ source: {
3896
+ type: "data";
3897
+ value: string;
3898
+ mimeType: string;
3899
+ } | {
3900
+ type: "url";
3901
+ value: string;
3902
+ mimeType?: string | undefined;
3903
+ };
3904
+ metadata?: unknown;
3905
+ } | {
3906
+ type: "audio";
3907
+ source: {
3908
+ type: "data";
3909
+ value: string;
3910
+ mimeType: string;
3911
+ } | {
3912
+ type: "url";
3913
+ value: string;
3914
+ mimeType?: string | undefined;
3915
+ };
3916
+ metadata?: unknown;
3917
+ } | {
3918
+ type: "video";
3919
+ source: {
3920
+ type: "data";
3921
+ value: string;
3922
+ mimeType: string;
3923
+ } | {
3924
+ type: "url";
3925
+ value: string;
3926
+ mimeType?: string | undefined;
3927
+ };
3928
+ metadata?: unknown;
3929
+ } | {
3930
+ type: "document";
3931
+ source: {
3932
+ type: "data";
3933
+ value: string;
3934
+ mimeType: string;
3935
+ } | {
3936
+ type: "url";
3937
+ value: string;
3938
+ mimeType?: string | undefined;
3939
+ };
3940
+ metadata?: unknown;
3941
+ } | {
3942
+ type: "binary";
3943
+ mimeType: string;
3944
+ id?: string | undefined;
3945
+ data?: string | undefined;
3946
+ url?: string | undefined;
3947
+ filename?: string | undefined;
3948
+ })[];
3949
+ id: string;
3950
+ name?: string | undefined;
3951
+ encryptedValue?: string | undefined;
3952
+ } | {
3953
+ role: "tool";
3954
+ toolCallId: string;
3955
+ content: string;
3956
+ id: string;
3957
+ encryptedValue?: string | undefined;
3958
+ error?: string | undefined;
3959
+ } | {
3960
+ role: "activity";
3961
+ content: Record<string, any>;
3962
+ id: string;
3963
+ activityType: string;
3964
+ } | {
3965
+ role: "reasoning";
3966
+ content: string;
3967
+ id: string;
3968
+ encryptedValue?: string | undefined;
3969
+ })[];
3536
3970
  }>;
3537
- computedClass: _angular_core.Signal<string>;
3538
- layoutContext: _angular_core.Signal<{
3539
- isLoading: boolean;
3540
- messages: ({
3971
+ assistantMessageSlot: _angular_core.Signal<string | Type<any>>;
3972
+ userMessageSlot: _angular_core.Signal<string | Type<any>>;
3973
+ cursorSlot: _angular_core.Signal<string | Type<any>>;
3974
+ mergeAssistantProps(message: Message$1): {
3975
+ message: {
3541
3976
  role: "developer";
3542
3977
  content: string;
3543
3978
  id: string;
@@ -3645,9 +4080,8 @@ declare class CopilotChatMessageView {
3645
4080
  content: string;
3646
4081
  id: string;
3647
4082
  encryptedValue?: string | undefined;
3648
- })[];
3649
- showCursor: boolean;
3650
- messageElements: ({
4083
+ };
4084
+ messages: ({
3651
4085
  role: "developer";
3652
4086
  content: string;
3653
4087
  id: string;
@@ -3756,12 +4190,17 @@ declare class CopilotChatMessageView {
3756
4190
  id: string;
3757
4191
  encryptedValue?: string | undefined;
3758
4192
  })[];
3759
- }>;
3760
- assistantMessageSlot: _angular_core.Signal<string | Type<any>>;
3761
- userMessageSlot: _angular_core.Signal<string | Type<any>>;
3762
- cursorSlot: _angular_core.Signal<string | Type<any>>;
3763
- mergeAssistantProps(message: Message): {
4193
+ isLoading: boolean;
4194
+ inputClass: string;
4195
+ };
4196
+ mergeReasoningProps(message: ReasoningMessage): {
3764
4197
  message: {
4198
+ role: "reasoning";
4199
+ content: string;
4200
+ id: string;
4201
+ encryptedValue?: string | undefined;
4202
+ };
4203
+ messages: ({
3765
4204
  role: "developer";
3766
4205
  content: string;
3767
4206
  id: string;
@@ -3869,7 +4308,11 @@ declare class CopilotChatMessageView {
3869
4308
  content: string;
3870
4309
  id: string;
3871
4310
  encryptedValue?: string | undefined;
3872
- };
4311
+ })[];
4312
+ isRunning: boolean;
4313
+ inputClass: string;
4314
+ };
4315
+ childrenContext(): {
3873
4316
  messages: ({
3874
4317
  role: "developer";
3875
4318
  content: string;
@@ -3979,10 +4422,12 @@ declare class CopilotChatMessageView {
3979
4422
  id: string;
3980
4423
  encryptedValue?: string | undefined;
3981
4424
  })[];
3982
- isLoading: boolean;
4425
+ state: unknown;
4426
+ agentId: string;
4427
+ isRunning: boolean;
3983
4428
  inputClass: string;
3984
4429
  };
3985
- mergeUserProps(message: Message): {
4430
+ mergeUserProps(message: Message$1): {
3986
4431
  message: {
3987
4432
  role: "developer";
3988
4433
  content: string;
@@ -4094,8 +4539,8 @@ declare class CopilotChatMessageView {
4094
4539
  };
4095
4540
  inputClass: string;
4096
4541
  };
4097
- asReasoningMessage(message: Message): ReasoningMessage;
4098
- trackByMessageId(index: number, message: Message): string;
4542
+ asReasoningMessage(message: Message$1): ReasoningMessage;
4543
+ trackByMessageId(index: number, message: Message$1): string;
4099
4544
  private pickActivityRenderer;
4100
4545
  protected resolveActivityRender(message: ActivityMessage$1): {
4101
4546
  component: Type<_copilotkit_angular.ActivityRenderer<unknown>>;
@@ -4111,37 +4556,41 @@ declare class CopilotChatMessageView {
4111
4556
  agent: _ag_ui_client.AbstractAgent;
4112
4557
  };
4113
4558
  };
4114
- constructor();
4115
4559
  handleAssistantThumbsUp(event: {
4116
- message: Message;
4560
+ message: Message$1;
4117
4561
  }): void;
4118
4562
  handleAssistantThumbsDown(event: {
4119
- message: Message;
4563
+ message: Message$1;
4120
4564
  }): void;
4121
4565
  handleAssistantReadAloud(event: {
4122
- message: Message;
4566
+ message: Message$1;
4123
4567
  }): void;
4124
4568
  handleAssistantRegenerate(event: {
4125
- message: Message;
4569
+ message: Message$1;
4126
4570
  }): void;
4127
4571
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatMessageView, never>;
4128
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatMessageView, "copilot-chat-message-view", never, { "messages": { "alias": "messages"; "required": false; "isSignal": true; }; "showCursor": { "alias": "showCursor"; "required": false; "isSignal": true; }; "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "inputClass": { "alias": "inputClass"; "required": false; "isSignal": true; }; "agentId": { "alias": "agentId"; "required": false; "isSignal": true; }; "assistantMessageComponent": { "alias": "assistantMessageComponent"; "required": false; "isSignal": true; }; "assistantMessageTemplate": { "alias": "assistantMessageTemplate"; "required": false; "isSignal": true; }; "assistantMessageClass": { "alias": "assistantMessageClass"; "required": false; "isSignal": true; }; "userMessageComponent": { "alias": "userMessageComponent"; "required": false; "isSignal": true; }; "userMessageTemplate": { "alias": "userMessageTemplate"; "required": false; "isSignal": true; }; "userMessageClass": { "alias": "userMessageClass"; "required": false; "isSignal": true; }; "cursorComponent": { "alias": "cursorComponent"; "required": false; "isSignal": true; }; "cursorTemplate": { "alias": "cursorTemplate"; "required": false; "isSignal": true; }; "cursorClass": { "alias": "cursorClass"; "required": false; "isSignal": true; }; }, { "assistantMessageThumbsUp": "assistantMessageThumbsUp"; "assistantMessageThumbsDown": "assistantMessageThumbsDown"; "assistantMessageReadAloud": "assistantMessageReadAloud"; "assistantMessageRegenerate": "assistantMessageRegenerate"; "userMessageCopy": "userMessageCopy"; "userMessageEdit": "userMessageEdit"; }, ["customLayoutTemplate"], never, true, never>;
4572
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatMessageView, "copilot-chat-message-view", never, { "messages": { "alias": "messages"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "showCursor": { "alias": "showCursor"; "required": false; "isSignal": true; }; "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "inputClass": { "alias": "inputClass"; "required": false; "isSignal": true; }; "agentId": { "alias": "agentId"; "required": false; "isSignal": true; }; "assistantMessageComponent": { "alias": "assistantMessageComponent"; "required": false; "isSignal": true; }; "assistantMessageTemplate": { "alias": "assistantMessageTemplate"; "required": false; "isSignal": true; }; "assistantMessageClass": { "alias": "assistantMessageClass"; "required": false; "isSignal": true; }; "reasoningMessageComponent": { "alias": "reasoningMessageComponent"; "required": false; "isSignal": true; }; "reasoningMessageTemplate": { "alias": "reasoningMessageTemplate"; "required": false; "isSignal": true; }; "reasoningMessageClass": { "alias": "reasoningMessageClass"; "required": false; "isSignal": true; }; "childrenComponent": { "alias": "childrenComponent"; "required": false; "isSignal": true; }; "childrenTemplate": { "alias": "childrenTemplate"; "required": false; "isSignal": true; }; "childrenClass": { "alias": "childrenClass"; "required": false; "isSignal": true; }; "userMessageComponent": { "alias": "userMessageComponent"; "required": false; "isSignal": true; }; "userMessageTemplate": { "alias": "userMessageTemplate"; "required": false; "isSignal": true; }; "userMessageClass": { "alias": "userMessageClass"; "required": false; "isSignal": true; }; "cursorComponent": { "alias": "cursorComponent"; "required": false; "isSignal": true; }; "cursorTemplate": { "alias": "cursorTemplate"; "required": false; "isSignal": true; }; "cursorClass": { "alias": "cursorClass"; "required": false; "isSignal": true; }; }, { "assistantMessageThumbsUp": "assistantMessageThumbsUp"; "assistantMessageThumbsDown": "assistantMessageThumbsDown"; "assistantMessageReadAloud": "assistantMessageReadAloud"; "assistantMessageRegenerate": "assistantMessageRegenerate"; "userMessageCopy": "userMessageCopy"; "userMessageEdit": "userMessageEdit"; }, ["customLayoutTemplate"], never, true, never>;
4129
4573
  }
4130
4574
 
4131
4575
  interface MessageViewContext {
4132
4576
  showCursor: boolean;
4133
- messages: Message$1[];
4577
+ messages: Message[];
4578
+ state: unknown;
4134
4579
  messageElements: any[];
4135
4580
  }
4136
4581
  interface CursorContext {
4137
4582
  }
4138
4583
  interface CopilotChatMessageViewProps {
4139
- messages?: Message$1[];
4584
+ messages?: Message[];
4585
+ state?: unknown;
4140
4586
  showCursor?: boolean;
4141
4587
  inputClass?: string;
4142
4588
  assistantMessageComponent?: Type<any>;
4143
4589
  assistantMessageTemplate?: TemplateRef<any>;
4144
4590
  assistantMessageClass?: string;
4591
+ childrenComponent?: Type<any>;
4592
+ childrenTemplate?: TemplateRef<any>;
4593
+ childrenClass?: string;
4145
4594
  userMessageComponent?: Type<any>;
4146
4595
  userMessageTemplate?: TemplateRef<any>;
4147
4596
  userMessageClass?: string;
@@ -4150,140 +4599,6 @@ interface CopilotChatMessageViewProps {
4150
4599
  cursorClass?: string;
4151
4600
  }
4152
4601
 
4153
- declare class CopilotChatReasoningMessage {
4154
- readonly message: _angular_core.InputSignal<{
4155
- role: "reasoning";
4156
- content: string;
4157
- id: string;
4158
- encryptedValue?: string | undefined;
4159
- }>;
4160
- readonly messages: _angular_core.InputSignal<({
4161
- role: "developer";
4162
- content: string;
4163
- id: string;
4164
- name?: string | undefined;
4165
- encryptedValue?: string | undefined;
4166
- } | {
4167
- role: "system";
4168
- content: string;
4169
- id: string;
4170
- name?: string | undefined;
4171
- encryptedValue?: string | undefined;
4172
- } | {
4173
- role: "assistant";
4174
- id: string;
4175
- name?: string | undefined;
4176
- content?: string | undefined;
4177
- encryptedValue?: string | undefined;
4178
- toolCalls?: {
4179
- function: {
4180
- name: string;
4181
- arguments: string;
4182
- };
4183
- type: "function";
4184
- id: string;
4185
- encryptedValue?: string | undefined;
4186
- }[] | undefined;
4187
- } | {
4188
- role: "user";
4189
- content: string | ({
4190
- type: "text";
4191
- text: string;
4192
- } | {
4193
- type: "image";
4194
- source: {
4195
- type: "data";
4196
- value: string;
4197
- mimeType: string;
4198
- } | {
4199
- type: "url";
4200
- value: string;
4201
- mimeType?: string | undefined;
4202
- };
4203
- metadata?: unknown;
4204
- } | {
4205
- type: "audio";
4206
- source: {
4207
- type: "data";
4208
- value: string;
4209
- mimeType: string;
4210
- } | {
4211
- type: "url";
4212
- value: string;
4213
- mimeType?: string | undefined;
4214
- };
4215
- metadata?: unknown;
4216
- } | {
4217
- type: "video";
4218
- source: {
4219
- type: "data";
4220
- value: string;
4221
- mimeType: string;
4222
- } | {
4223
- type: "url";
4224
- value: string;
4225
- mimeType?: string | undefined;
4226
- };
4227
- metadata?: unknown;
4228
- } | {
4229
- type: "document";
4230
- source: {
4231
- type: "data";
4232
- value: string;
4233
- mimeType: string;
4234
- } | {
4235
- type: "url";
4236
- value: string;
4237
- mimeType?: string | undefined;
4238
- };
4239
- metadata?: unknown;
4240
- } | {
4241
- type: "binary";
4242
- mimeType: string;
4243
- id?: string | undefined;
4244
- data?: string | undefined;
4245
- url?: string | undefined;
4246
- filename?: string | undefined;
4247
- })[];
4248
- id: string;
4249
- name?: string | undefined;
4250
- encryptedValue?: string | undefined;
4251
- } | {
4252
- role: "tool";
4253
- toolCallId: string;
4254
- content: string;
4255
- id: string;
4256
- encryptedValue?: string | undefined;
4257
- error?: string | undefined;
4258
- } | {
4259
- role: "activity";
4260
- content: Record<string, any>;
4261
- id: string;
4262
- activityType: string;
4263
- } | {
4264
- role: "reasoning";
4265
- content: string;
4266
- id: string;
4267
- encryptedValue?: string | undefined;
4268
- })[]>;
4269
- readonly isRunning: _angular_core.InputSignal<boolean>;
4270
- readonly inputClass: _angular_core.InputSignal<string>;
4271
- private readonly userToggled;
4272
- protected readonly isLatest: _angular_core.Signal<boolean>;
4273
- protected readonly isStreaming: _angular_core.Signal<boolean>;
4274
- private readonly startTime;
4275
- protected readonly open: _angular_core.WritableSignal<boolean>;
4276
- protected readonly hasContent: _angular_core.Signal<boolean>;
4277
- protected readonly reasoningContent: _angular_core.Signal<string>;
4278
- protected readonly label: _angular_core.Signal<string>;
4279
- protected readonly computedClass: _angular_core.Signal<string>;
4280
- protected readonly headerClass: _angular_core.Signal<string>;
4281
- protected readonly chevronClass: _angular_core.Signal<string>;
4282
- protected toggle(): void;
4283
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatReasoningMessage, never>;
4284
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatReasoningMessage, "copilot-chat-reasoning-message", never, { "message": { "alias": "message"; "required": true; "isSignal": true; }; "messages": { "alias": "messages"; "required": false; "isSignal": true; }; "isRunning": { "alias": "isRunning"; "required": false; "isSignal": true; }; "inputClass": { "alias": "inputClass"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
4285
- }
4286
-
4287
4602
  declare class CopilotChatSuggestionPill {
4288
4603
  readonly title: _angular_core.InputSignal<string>;
4289
4604
  readonly disabled: _angular_core.InputSignal<boolean>;
@@ -4318,7 +4633,7 @@ declare class CopilotChatViewScrollToBottomButton {
4318
4633
  disabled: _angular_core.InputSignal<boolean>;
4319
4634
  onClick: _angular_core.InputSignal<() => void>;
4320
4635
  clicked: _angular_core.OutputEmitterRef<void>;
4321
- protected readonly ChevronDown: lucide_angular.LucideIconData;
4636
+ protected readonly ChevronDown: CopilotIconData;
4322
4637
  get computedClass(): string;
4323
4638
  handleClick(): void;
4324
4639
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatViewScrollToBottomButton, never>;
@@ -4329,7 +4644,7 @@ declare class CopilotChatViewScrollToBottomButton {
4329
4644
  * ScrollView component for CopilotChatView
4330
4645
  * Handles auto-scrolling and scroll position management
4331
4646
  */
4332
- declare class CopilotChatViewScrollView implements OnInit, AfterViewInit, OnDestroy {
4647
+ declare class CopilotChatViewScrollView implements AfterViewInit, OnDestroy {
4333
4648
  private cdr;
4334
4649
  protected readonly chatState: ChatState;
4335
4650
  autoScroll: _angular_core.InputSignal<boolean>;
@@ -4445,29 +4760,40 @@ declare class CopilotChatViewScrollView implements OnInit, AfterViewInit, OnDest
4445
4760
  id: string;
4446
4761
  encryptedValue?: string | undefined;
4447
4762
  })[]>;
4763
+ /** Current agent state forwarded to message-view extension slots. */
4764
+ state: _angular_core.InputSignal<unknown>;
4448
4765
  agentId: _angular_core.InputSignal<string>;
4449
4766
  messageView: _angular_core.InputSignal<any>;
4450
4767
  messageViewClass: _angular_core.InputSignal<string>;
4768
+ assistantMessageComponent: _angular_core.InputSignal<Type<any>>;
4769
+ assistantMessageTemplate: _angular_core.InputSignal<TemplateRef<any>>;
4770
+ assistantMessageClass: _angular_core.InputSignal<string>;
4771
+ reasoningMessageComponent: _angular_core.InputSignal<Type<any>>;
4772
+ reasoningMessageTemplate: _angular_core.InputSignal<TemplateRef<any>>;
4773
+ reasoningMessageClass: _angular_core.InputSignal<string>;
4774
+ messageViewChildrenComponent: _angular_core.InputSignal<Type<any>>;
4775
+ messageViewChildrenTemplate: _angular_core.InputSignal<TemplateRef<any>>;
4776
+ messageViewChildrenClass: _angular_core.InputSignal<string>;
4451
4777
  showCursor: _angular_core.InputSignal<boolean>;
4452
4778
  scrollToBottomButton: _angular_core.InputSignal<any>;
4453
4779
  scrollToBottomButtonClass: _angular_core.InputSignal<string>;
4454
4780
  assistantMessageThumbsUp: _angular_core.OutputEmitterRef<{
4455
- message: Message$1;
4781
+ message: Message;
4456
4782
  }>;
4457
4783
  assistantMessageThumbsDown: _angular_core.OutputEmitterRef<{
4458
- message: Message$1;
4784
+ message: Message;
4459
4785
  }>;
4460
4786
  assistantMessageReadAloud: _angular_core.OutputEmitterRef<{
4461
- message: Message$1;
4787
+ message: Message;
4462
4788
  }>;
4463
4789
  assistantMessageRegenerate: _angular_core.OutputEmitterRef<{
4464
- message: Message$1;
4790
+ message: Message;
4465
4791
  }>;
4466
4792
  userMessageCopy: _angular_core.OutputEmitterRef<{
4467
- message: Message$1;
4793
+ message: Message;
4468
4794
  }>;
4469
4795
  userMessageEdit: _angular_core.OutputEmitterRef<{
4470
- message: Message$1;
4796
+ message: Message;
4471
4797
  }>;
4472
4798
  scrollContainer?: ElementRef<HTMLElement>;
4473
4799
  contentContainer?: ElementRef<HTMLElement>;
@@ -4481,9 +4807,8 @@ declare class CopilotChatViewScrollView implements OnInit, AfterViewInit, OnDest
4481
4807
  protected paddingBottom: _angular_core.Signal<number>;
4482
4808
  protected computedClass: _angular_core.Signal<string>;
4483
4809
  private destroy$;
4484
- private platformId;
4485
4810
  private scrollPositionService;
4486
- ngOnInit(): void;
4811
+ constructor();
4487
4812
  ngAfterViewInit(): void;
4488
4813
  /**
4489
4814
  * Handle isAtBottom change from StickToBottom directive
@@ -4508,7 +4833,7 @@ declare class CopilotChatViewScrollView implements OnInit, AfterViewInit, OnDest
4508
4833
  scrollToBottomContext(): any;
4509
4834
  scrollToBottomFromStickContext(): any;
4510
4835
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatViewScrollView, never>;
4511
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatViewScrollView, "copilot-chat-view-scroll-view", never, { "autoScroll": { "alias": "autoScroll"; "required": false; "isSignal": true; }; "inputContainerHeight": { "alias": "inputContainerHeight"; "required": false; "isSignal": true; }; "isResizing": { "alias": "isResizing"; "required": false; "isSignal": true; }; "inputClass": { "alias": "inputClass"; "required": false; "isSignal": true; }; "messages": { "alias": "messages"; "required": false; "isSignal": true; }; "agentId": { "alias": "agentId"; "required": false; "isSignal": true; }; "messageView": { "alias": "messageView"; "required": false; "isSignal": true; }; "messageViewClass": { "alias": "messageViewClass"; "required": false; "isSignal": true; }; "showCursor": { "alias": "showCursor"; "required": false; "isSignal": true; }; "scrollToBottomButton": { "alias": "scrollToBottomButton"; "required": false; "isSignal": true; }; "scrollToBottomButtonClass": { "alias": "scrollToBottomButtonClass"; "required": false; "isSignal": true; }; }, { "assistantMessageThumbsUp": "assistantMessageThumbsUp"; "assistantMessageThumbsDown": "assistantMessageThumbsDown"; "assistantMessageReadAloud": "assistantMessageReadAloud"; "assistantMessageRegenerate": "assistantMessageRegenerate"; "userMessageCopy": "userMessageCopy"; "userMessageEdit": "userMessageEdit"; }, never, ["*"], true, never>;
4836
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatViewScrollView, "copilot-chat-view-scroll-view", never, { "autoScroll": { "alias": "autoScroll"; "required": false; "isSignal": true; }; "inputContainerHeight": { "alias": "inputContainerHeight"; "required": false; "isSignal": true; }; "isResizing": { "alias": "isResizing"; "required": false; "isSignal": true; }; "inputClass": { "alias": "inputClass"; "required": false; "isSignal": true; }; "messages": { "alias": "messages"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "agentId": { "alias": "agentId"; "required": false; "isSignal": true; }; "messageView": { "alias": "messageView"; "required": false; "isSignal": true; }; "messageViewClass": { "alias": "messageViewClass"; "required": false; "isSignal": true; }; "assistantMessageComponent": { "alias": "assistantMessageComponent"; "required": false; "isSignal": true; }; "assistantMessageTemplate": { "alias": "assistantMessageTemplate"; "required": false; "isSignal": true; }; "assistantMessageClass": { "alias": "assistantMessageClass"; "required": false; "isSignal": true; }; "reasoningMessageComponent": { "alias": "reasoningMessageComponent"; "required": false; "isSignal": true; }; "reasoningMessageTemplate": { "alias": "reasoningMessageTemplate"; "required": false; "isSignal": true; }; "reasoningMessageClass": { "alias": "reasoningMessageClass"; "required": false; "isSignal": true; }; "messageViewChildrenComponent": { "alias": "messageViewChildrenComponent"; "required": false; "isSignal": true; }; "messageViewChildrenTemplate": { "alias": "messageViewChildrenTemplate"; "required": false; "isSignal": true; }; "messageViewChildrenClass": { "alias": "messageViewChildrenClass"; "required": false; "isSignal": true; }; "showCursor": { "alias": "showCursor"; "required": false; "isSignal": true; }; "scrollToBottomButton": { "alias": "scrollToBottomButton"; "required": false; "isSignal": true; }; "scrollToBottomButtonClass": { "alias": "scrollToBottomButtonClass"; "required": false; "isSignal": true; }; }, { "assistantMessageThumbsUp": "assistantMessageThumbsUp"; "assistantMessageThumbsDown": "assistantMessageThumbsDown"; "assistantMessageReadAloud": "assistantMessageReadAloud"; "assistantMessageRegenerate": "assistantMessageRegenerate"; "userMessageCopy": "userMessageCopy"; "userMessageEdit": "userMessageEdit"; }, never, ["*"], true, never>;
4512
4837
  }
4513
4838
 
4514
4839
  /**
@@ -4580,7 +4905,7 @@ declare class CopilotChatView implements OnInit, OnChanges, AfterViewInit, OnDes
4580
4905
  private cdr;
4581
4906
  private handlers;
4582
4907
  protected readonly chatState: ChatState;
4583
- protected readonly UploadIcon: lucide_angular.LucideIconData;
4908
+ protected readonly UploadIcon: CopilotIconData;
4584
4909
  messages: _angular_core.InputSignal<({
4585
4910
  role: "developer";
4586
4911
  content: string;
@@ -4690,6 +5015,8 @@ declare class CopilotChatView implements OnInit, OnChanges, AfterViewInit, OnDes
4690
5015
  id: string;
4691
5016
  encryptedValue?: string | undefined;
4692
5017
  })[]>;
5018
+ /** Current agent state forwarded to message-view extension slots. */
5019
+ state: _angular_core.InputSignal<unknown>;
4693
5020
  agentId: _angular_core.InputSignal<string>;
4694
5021
  autoScroll: _angular_core.InputSignal<boolean>;
4695
5022
  showCursor: _angular_core.InputSignal<boolean>;
@@ -4697,6 +5024,15 @@ declare class CopilotChatView implements OnInit, OnChanges, AfterViewInit, OnDes
4697
5024
  messageViewComponent: _angular_core.InputSignal<Type<any>>;
4698
5025
  messageViewTemplate: _angular_core.InputSignal<TemplateRef<any>>;
4699
5026
  messageViewClass: _angular_core.InputSignal<string>;
5027
+ assistantMessageComponent: _angular_core.InputSignal<Type<any>>;
5028
+ assistantMessageTemplate: _angular_core.InputSignal<TemplateRef<any>>;
5029
+ assistantMessageClass: _angular_core.InputSignal<string>;
5030
+ reasoningMessageComponent: _angular_core.InputSignal<Type<any>>;
5031
+ reasoningMessageTemplate: _angular_core.InputSignal<TemplateRef<any>>;
5032
+ reasoningMessageClass: _angular_core.InputSignal<string>;
5033
+ messageViewChildrenComponent: _angular_core.InputSignal<Type<any>>;
5034
+ messageViewChildrenTemplate: _angular_core.InputSignal<TemplateRef<any>>;
5035
+ messageViewChildrenClass: _angular_core.InputSignal<string>;
4700
5036
  scrollViewComponent: _angular_core.InputSignal<Type<any>>;
4701
5037
  scrollViewTemplate: _angular_core.InputSignal<TemplateRef<any>>;
4702
5038
  scrollViewClass: _angular_core.InputSignal<string>;
@@ -4726,22 +5062,22 @@ declare class CopilotChatView implements OnInit, OnChanges, AfterViewInit, OnDes
4726
5062
  readAloudButtonTemplate?: TemplateRef<any>;
4727
5063
  regenerateButtonTemplate?: TemplateRef<any>;
4728
5064
  assistantMessageThumbsUp: _angular_core.OutputEmitterRef<{
4729
- message: Message$1;
5065
+ message: Message;
4730
5066
  }>;
4731
5067
  assistantMessageThumbsDown: _angular_core.OutputEmitterRef<{
4732
- message: Message$1;
5068
+ message: Message;
4733
5069
  }>;
4734
5070
  assistantMessageReadAloud: _angular_core.OutputEmitterRef<{
4735
- message: Message$1;
5071
+ message: Message;
4736
5072
  }>;
4737
5073
  assistantMessageRegenerate: _angular_core.OutputEmitterRef<{
4738
- message: Message$1;
5074
+ message: Message;
4739
5075
  }>;
4740
5076
  userMessageCopy: _angular_core.OutputEmitterRef<{
4741
- message: Message$1;
5077
+ message: Message;
4742
5078
  }>;
4743
5079
  userMessageEdit: _angular_core.OutputEmitterRef<{
4744
- message: Message$1;
5080
+ message: Message;
4745
5081
  }>;
4746
5082
  inputContainerSlotRef?: ElementRef;
4747
5083
  protected readonly defaultScrollViewComponent: typeof CopilotChatViewScrollView;
@@ -4991,9 +5327,19 @@ declare class CopilotChatView implements OnInit, OnChanges, AfterViewInit, OnDes
4991
5327
  id: string;
4992
5328
  encryptedValue?: string | undefined;
4993
5329
  })[];
5330
+ state: unknown;
4994
5331
  agentId: string;
4995
5332
  messageView: Type<any> | TemplateRef<any>;
4996
5333
  messageViewClass: string;
5334
+ assistantMessageComponent: Type<any>;
5335
+ assistantMessageTemplate: TemplateRef<any>;
5336
+ assistantMessageClass: string;
5337
+ reasoningMessageComponent: Type<any>;
5338
+ reasoningMessageTemplate: TemplateRef<any>;
5339
+ reasoningMessageClass: string;
5340
+ messageViewChildrenComponent: Type<any>;
5341
+ messageViewChildrenTemplate: TemplateRef<any>;
5342
+ messageViewChildrenClass: string;
4997
5343
  }>;
4998
5344
  protected inputContainerContext: _angular_core.Signal<{
4999
5345
  input: Type<any> | TemplateRef<any>;
@@ -5013,24 +5359,32 @@ declare class CopilotChatView implements OnInit, OnChanges, AfterViewInit, OnDes
5013
5359
  }>;
5014
5360
  private destroy$;
5015
5361
  private resizeTimeoutRef?;
5362
+ private measurementRetryTimeoutRef?;
5363
+ private readonly ngZone;
5364
+ private destroyed;
5016
5365
  constructor(resizeObserverService: ResizeObserverService, cdr: ChangeDetectorRef, handlers: CopilotChatViewHandlers);
5017
5366
  ngOnInit(): void;
5018
5367
  ngOnChanges(): void;
5019
5368
  ngAfterViewInit(): void;
5369
+ /** Schedules a cancellable layout retry without triggering zone-wide ticks. */
5370
+ private scheduleMeasurementRetry;
5020
5371
  ngOnDestroy(): void;
5021
5372
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatView, never>;
5022
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatView, "copilot-chat-view", never, { "messages": { "alias": "messages"; "required": false; "isSignal": true; }; "agentId": { "alias": "agentId"; "required": false; "isSignal": true; }; "autoScroll": { "alias": "autoScroll"; "required": false; "isSignal": true; }; "showCursor": { "alias": "showCursor"; "required": false; "isSignal": true; }; "hasExplicitThreadId": { "alias": "hasExplicitThreadId"; "required": false; "isSignal": true; }; "messageViewComponent": { "alias": "messageViewComponent"; "required": false; "isSignal": true; }; "messageViewTemplate": { "alias": "messageViewTemplate"; "required": false; "isSignal": true; }; "messageViewClass": { "alias": "messageViewClass"; "required": false; "isSignal": true; }; "scrollViewComponent": { "alias": "scrollViewComponent"; "required": false; "isSignal": true; }; "scrollViewTemplate": { "alias": "scrollViewTemplate"; "required": false; "isSignal": true; }; "scrollViewClass": { "alias": "scrollViewClass"; "required": false; "isSignal": true; }; "scrollToBottomButtonComponent": { "alias": "scrollToBottomButtonComponent"; "required": false; "isSignal": true; }; "scrollToBottomButtonTemplate": { "alias": "scrollToBottomButtonTemplate"; "required": false; "isSignal": true; }; "scrollToBottomButtonClass": { "alias": "scrollToBottomButtonClass"; "required": false; "isSignal": true; }; "inputComponent": { "alias": "inputComponent"; "required": false; "isSignal": true; }; "inputTemplate": { "alias": "inputTemplate"; "required": false; "isSignal": true; }; "inputContainerComponent": { "alias": "inputContainerComponent"; "required": false; "isSignal": true; }; "inputContainerTemplate": { "alias": "inputContainerTemplate"; "required": false; "isSignal": true; }; "inputContainerClass": { "alias": "inputContainerClass"; "required": false; "isSignal": true; }; "featherComponent": { "alias": "featherComponent"; "required": false; "isSignal": true; }; "featherTemplate": { "alias": "featherTemplate"; "required": false; "isSignal": true; }; "featherClass": { "alias": "featherClass"; "required": false; "isSignal": true; }; "disclaimerComponent": { "alias": "disclaimerComponent"; "required": false; "isSignal": true; }; "disclaimerTemplate": { "alias": "disclaimerTemplate"; "required": false; "isSignal": true; }; "disclaimerClass": { "alias": "disclaimerClass"; "required": false; "isSignal": true; }; "disclaimerText": { "alias": "disclaimerText"; "required": false; "isSignal": true; }; }, { "assistantMessageThumbsUp": "assistantMessageThumbsUp"; "assistantMessageThumbsDown": "assistantMessageThumbsDown"; "assistantMessageReadAloud": "assistantMessageReadAloud"; "assistantMessageRegenerate": "assistantMessageRegenerate"; "userMessageCopy": "userMessageCopy"; "userMessageEdit": "userMessageEdit"; }, ["customLayoutTemplate", "sendButtonTemplate", "toolbarTemplate", "textAreaTemplate", "audioRecorderTemplate", "assistantMessageMarkdownRendererTemplate", "thumbsUpButtonTemplate", "thumbsDownButtonTemplate", "readAloudButtonTemplate", "regenerateButtonTemplate"], never, true, never>;
5373
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatView, "copilot-chat-view", never, { "messages": { "alias": "messages"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "agentId": { "alias": "agentId"; "required": false; "isSignal": true; }; "autoScroll": { "alias": "autoScroll"; "required": false; "isSignal": true; }; "showCursor": { "alias": "showCursor"; "required": false; "isSignal": true; }; "hasExplicitThreadId": { "alias": "hasExplicitThreadId"; "required": false; "isSignal": true; }; "messageViewComponent": { "alias": "messageViewComponent"; "required": false; "isSignal": true; }; "messageViewTemplate": { "alias": "messageViewTemplate"; "required": false; "isSignal": true; }; "messageViewClass": { "alias": "messageViewClass"; "required": false; "isSignal": true; }; "assistantMessageComponent": { "alias": "assistantMessageComponent"; "required": false; "isSignal": true; }; "assistantMessageTemplate": { "alias": "assistantMessageTemplate"; "required": false; "isSignal": true; }; "assistantMessageClass": { "alias": "assistantMessageClass"; "required": false; "isSignal": true; }; "reasoningMessageComponent": { "alias": "reasoningMessageComponent"; "required": false; "isSignal": true; }; "reasoningMessageTemplate": { "alias": "reasoningMessageTemplate"; "required": false; "isSignal": true; }; "reasoningMessageClass": { "alias": "reasoningMessageClass"; "required": false; "isSignal": true; }; "messageViewChildrenComponent": { "alias": "messageViewChildrenComponent"; "required": false; "isSignal": true; }; "messageViewChildrenTemplate": { "alias": "messageViewChildrenTemplate"; "required": false; "isSignal": true; }; "messageViewChildrenClass": { "alias": "messageViewChildrenClass"; "required": false; "isSignal": true; }; "scrollViewComponent": { "alias": "scrollViewComponent"; "required": false; "isSignal": true; }; "scrollViewTemplate": { "alias": "scrollViewTemplate"; "required": false; "isSignal": true; }; "scrollViewClass": { "alias": "scrollViewClass"; "required": false; "isSignal": true; }; "scrollToBottomButtonComponent": { "alias": "scrollToBottomButtonComponent"; "required": false; "isSignal": true; }; "scrollToBottomButtonTemplate": { "alias": "scrollToBottomButtonTemplate"; "required": false; "isSignal": true; }; "scrollToBottomButtonClass": { "alias": "scrollToBottomButtonClass"; "required": false; "isSignal": true; }; "inputComponent": { "alias": "inputComponent"; "required": false; "isSignal": true; }; "inputTemplate": { "alias": "inputTemplate"; "required": false; "isSignal": true; }; "inputContainerComponent": { "alias": "inputContainerComponent"; "required": false; "isSignal": true; }; "inputContainerTemplate": { "alias": "inputContainerTemplate"; "required": false; "isSignal": true; }; "inputContainerClass": { "alias": "inputContainerClass"; "required": false; "isSignal": true; }; "featherComponent": { "alias": "featherComponent"; "required": false; "isSignal": true; }; "featherTemplate": { "alias": "featherTemplate"; "required": false; "isSignal": true; }; "featherClass": { "alias": "featherClass"; "required": false; "isSignal": true; }; "disclaimerComponent": { "alias": "disclaimerComponent"; "required": false; "isSignal": true; }; "disclaimerTemplate": { "alias": "disclaimerTemplate"; "required": false; "isSignal": true; }; "disclaimerClass": { "alias": "disclaimerClass"; "required": false; "isSignal": true; }; "disclaimerText": { "alias": "disclaimerText"; "required": false; "isSignal": true; }; }, { "assistantMessageThumbsUp": "assistantMessageThumbsUp"; "assistantMessageThumbsDown": "assistantMessageThumbsDown"; "assistantMessageReadAloud": "assistantMessageReadAloud"; "assistantMessageRegenerate": "assistantMessageRegenerate"; "userMessageCopy": "userMessageCopy"; "userMessageEdit": "userMessageEdit"; }, ["customLayoutTemplate", "sendButtonTemplate", "toolbarTemplate", "textAreaTemplate", "audioRecorderTemplate", "assistantMessageMarkdownRendererTemplate", "thumbsUpButtonTemplate", "thumbsDownButtonTemplate", "readAloudButtonTemplate", "regenerateButtonTemplate"], never, true, never>;
5023
5374
  }
5024
5375
 
5025
5376
  /**
5026
5377
  * Props for CopilotChatView component
5027
5378
  */
5028
5379
  interface CopilotChatViewProps {
5029
- messages?: Message$1[];
5380
+ messages?: Message[];
5030
5381
  autoScroll?: boolean;
5031
5382
  messageViewComponent?: Type<any>;
5032
5383
  messageViewTemplate?: TemplateRef<any>;
5033
5384
  messageViewClass?: string;
5385
+ messageViewChildrenComponent?: Type<any>;
5386
+ messageViewChildrenTemplate?: TemplateRef<any>;
5387
+ messageViewChildrenClass?: string;
5034
5388
  scrollViewComponent?: Type<any>;
5035
5389
  scrollViewTemplate?: TemplateRef<any>;
5036
5390
  scrollViewClass?: string;
@@ -5357,6 +5711,68 @@ declare class CopilotThreadsDrawer {
5357
5711
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotThreadsDrawer, "copilot-threads-drawer", never, { "agentId": { "alias": "agentId"; "required": false; "isSignal": true; }; "dataTestId": { "alias": "data-testid"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "recentLabel": { "alias": "recentLabel"; "required": false; "isSignal": true; }; "collapsible": { "alias": "collapsible"; "required": false; "isSignal": true; }; "threadSelectHandler": { "alias": "onThreadSelect"; "required": false; "isSignal": true; }; "newThreadHandler": { "alias": "onNewThread"; "required": false; "isSignal": true; }; "limit": { "alias": "limit"; "required": false; "isSignal": true; }; "licenseUrl": { "alias": "licenseUrl"; "required": false; "isSignal": true; }; "licensedHandler": { "alias": "onLicensed"; "required": false; "isSignal": true; }; }, { "collapseChange": "collapseChange"; }, ["rowDirective"], ["*"], true, never>;
5358
5712
  }
5359
5713
 
5714
+ /** Accessible, responsive floating chat surface with an explicit open model. */
5715
+ declare class CopilotPopup {
5716
+ readonly open: _angular_core.ModelSignal<boolean>;
5717
+ readonly title: _angular_core.InputSignal<string>;
5718
+ readonly width: _angular_core.InputSignal<string | number>;
5719
+ readonly height: _angular_core.InputSignal<string | number>;
5720
+ readonly clickOutsideToClose: _angular_core.InputSignal<boolean>;
5721
+ readonly chatComponent: _angular_core.InputSignal<Type<unknown>>;
5722
+ readonly headerComponent: _angular_core.InputSignal<Type<unknown>>;
5723
+ protected readonly dialogId: string;
5724
+ protected readonly titleId: string;
5725
+ protected readonly resolvedWidth: _angular_core.Signal<string>;
5726
+ protected readonly resolvedHeight: _angular_core.Signal<string>;
5727
+ private readonly launcher;
5728
+ private readonly initialFocus;
5729
+ constructor();
5730
+ protected toggle(): void;
5731
+ protected closeFromBackdrop(): void;
5732
+ protected close(): void;
5733
+ private focusModal;
5734
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotPopup, never>;
5735
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotPopup, "copilot-popup", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "clickOutsideToClose": { "alias": "clickOutsideToClose"; "required": false; "isSignal": true; }; "chatComponent": { "alias": "chatComponent"; "required": false; "isSignal": true; }; "headerComponent": { "alias": "headerComponent"; "required": false; "isSignal": true; }; }, { "open": "openChange"; }, never, never, true, never>;
5736
+ }
5737
+
5738
+ type CopilotSidebarMode = "docked" | "overlay";
5739
+ type CopilotSidebarPosition = "left" | "right";
5740
+ /** Responsive chat sidebar with independent overlay and single-owner docked modes. */
5741
+ declare class CopilotSidebar {
5742
+ readonly open: _angular_core.ModelSignal<boolean>;
5743
+ readonly mode: _angular_core.InputSignal<CopilotSidebarMode>;
5744
+ readonly position: _angular_core.InputSignal<CopilotSidebarPosition>;
5745
+ readonly width: _angular_core.InputSignal<string | number>;
5746
+ readonly title: _angular_core.InputSignal<string>;
5747
+ readonly clickOutsideToClose: _angular_core.InputSignal<boolean>;
5748
+ readonly chatComponent: _angular_core.InputSignal<Type<unknown>>;
5749
+ readonly headerComponent: _angular_core.InputSignal<Type<unknown>>;
5750
+ protected readonly sidebarId: string;
5751
+ protected readonly titleId: string;
5752
+ protected readonly resolvedWidth: _angular_core.Signal<string>;
5753
+ protected readonly isCompact: _angular_core.WritableSignal<boolean>;
5754
+ protected readonly isModal: _angular_core.Signal<boolean>;
5755
+ protected readonly dockAccepted: _angular_core.WritableSignal<boolean>;
5756
+ private readonly owner;
5757
+ private readonly registry;
5758
+ private readonly document;
5759
+ private readonly isBrowser;
5760
+ private readonly destroyRef;
5761
+ private readonly launcher;
5762
+ private readonly initialFocus;
5763
+ private ownsDock;
5764
+ constructor();
5765
+ protected toggle(): void;
5766
+ protected closeFromBackdrop(): void;
5767
+ protected close(): void;
5768
+ private releaseDock;
5769
+ private focusModal;
5770
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotSidebar, never>;
5771
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotSidebar, "copilot-sidebar", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "clickOutsideToClose": { "alias": "clickOutsideToClose"; "required": false; "isSignal": true; }; "chatComponent": { "alias": "chatComponent"; "required": false; "isSignal": true; }; "headerComponent": { "alias": "headerComponent"; "required": false; "isSignal": true; }; }, { "open": "openChange"; }, never, never, true, never>;
5772
+ }
5773
+
5774
+ type A2UIOperation = Record<string, unknown>;
5775
+
5360
5776
  declare class CopilotA2UIActivityRenderer implements ActivityRenderer<unknown> {
5361
5777
  readonly activityType: _angular_core.InputSignal<string>;
5362
5778
  readonly content: _angular_core.InputSignal<unknown>;
@@ -5369,7 +5785,14 @@ declare class CopilotA2UIActivityRenderer implements ActivityRenderer<unknown> {
5369
5785
  readonly agent: _angular_core.InputSignal<AbstractAgent>;
5370
5786
  private readonly surfaceRef;
5371
5787
  private readonly copilotKit;
5372
- private readonly config;
5788
+ protected readonly config: _copilotkit_angular.CopilotKitConfig;
5789
+ private readonly platformId;
5790
+ private readonly zone;
5791
+ protected readonly operations: _angular_core.Signal<A2UIOperation[]>;
5792
+ protected readonly hasOperations: _angular_core.Signal<boolean>;
5793
+ protected readonly surfaceReady: _angular_core.WritableSignal<boolean>;
5794
+ protected readonly loaderContent: _angular_core.WritableSignal<unknown>;
5795
+ private readonly markSurfaceReady;
5373
5796
  constructor();
5374
5797
  protected handleAction(event: Event): Promise<void>;
5375
5798
  protected handleError(event: Event): void;
@@ -5385,13 +5808,43 @@ declare class CopilotA2UIActivityRenderer implements ActivityRenderer<unknown> {
5385
5808
  declare class CopilotA2UIProgress {
5386
5809
  readonly phase: _angular_core.InputSignal<number>;
5387
5810
  readonly tokens: _angular_core.InputSignal<number>;
5811
+ readonly label: _angular_core.InputSignal<string>;
5388
5812
  protected topbarBarClass(): string;
5389
5813
  protected rowClass(phase: number, delayClass: string): string;
5390
5814
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotA2UIProgress, never>;
5391
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotA2UIProgress, "copilot-a2ui-progress", never, { "phase": { "alias": "phase"; "required": true; "isSignal": true; }; "tokens": { "alias": "tokens"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
5815
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotA2UIProgress, "copilot-a2ui-progress", never, { "phase": { "alias": "phase"; "required": true; "isSignal": true; }; "tokens": { "alias": "tokens"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
5392
5816
  }
5393
5817
 
5394
- type A2UIOperation = Record<string, unknown>;
5818
+ type A2UIDebugExposure = "hidden" | "collapsed" | "verbose";
5819
+ type A2UILifecycleStatus = "building" | "retrying" | "failed";
5820
+ interface A2UILifecycleContent {
5821
+ status: A2UILifecycleStatus;
5822
+ attempt?: number;
5823
+ maxAttempts?: number;
5824
+ progressTokens?: number;
5825
+ error?: string;
5826
+ errors?: unknown[];
5827
+ attempts?: unknown[];
5828
+ debugExposure?: A2UIDebugExposure;
5829
+ }
5830
+ /** Read only the server-owned A2UI lifecycle fields from activity content. */
5831
+ declare function readA2UILifecycleContent(content: unknown): A2UILifecycleContent;
5832
+ /** Pre-paint building, retry, and failure UI for a stable A2UI activity. */
5833
+ declare class CopilotA2UIRecovery {
5834
+ #private;
5835
+ readonly content: _angular_core.InputSignal<unknown>;
5836
+ readonly options: _angular_core.InputSignal<A2UIRecoveryOptions>;
5837
+ readonly lifecycle: _angular_core.Signal<A2UILifecycleContent>;
5838
+ readonly retryRevealed: _angular_core.WritableSignal<boolean>;
5839
+ readonly debugExposure: _angular_core.Signal<A2UIDebugExposure>;
5840
+ readonly label: _angular_core.Signal<string>;
5841
+ readonly phase: _angular_core.Signal<0 | 1 | 2 | 3>;
5842
+ readonly failureDiagnostics: _angular_core.Signal<string>;
5843
+ readonly retryDiagnostics: _angular_core.Signal<string>;
5844
+ constructor();
5845
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotA2UIRecovery, never>;
5846
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotA2UIRecovery, "copilot-a2ui-recovery", never, { "content": { "alias": "content"; "required": true; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
5847
+ }
5395
5848
 
5396
5849
  declare const RENDER_A2UI_TOOL_NAME = "render_a2ui";
5397
5850
  declare const AGUI_SEND_STATE_SNAPSHOT_TOOL_NAME = "AGUISendStateSnapshot";
@@ -5422,7 +5875,7 @@ declare class CopilotA2UIToolRenderer implements ToolRenderer<RenderA2UIArgs> {
5422
5875
  type WebsandboxConstructor = typeof Websandbox;
5423
5876
 
5424
5877
  declare const OPEN_GENERATIVE_UI_WEBSANDBOX_LOADER: InjectionToken<() => Promise<WebsandboxConstructor>>;
5425
- declare class CopilotOpenGenerativeUIRenderer {
5878
+ declare class CopilotOpenGenerativeUIRenderer implements OnChanges {
5426
5879
  readonly content: _angular_core.InputSignal<{
5427
5880
  html?: string[];
5428
5881
  initialHeight?: number;
@@ -5464,6 +5917,10 @@ declare class CopilotOpenGenerativeUIRenderer {
5464
5917
  protected readonly isGenerating: _angular_core.Signal<boolean>;
5465
5918
  private readonly renderState;
5466
5919
  constructor();
5920
+ /** Applies input updates synchronously before the matching render pass. */
5921
+ ngOnChanges(): void;
5922
+ /** Commits content and synchronously removes stale sandbox DOM on restart. */
5923
+ private commitContent;
5467
5924
  private clearThrottle;
5468
5925
  private loadWebsandbox;
5469
5926
  private createLocalApi;
@@ -5528,5 +5985,5 @@ declare class CopilotOpenGenerativeUIToolRenderer implements ToolRenderer<Genera
5528
5985
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotOpenGenerativeUIToolRenderer, "copilot-open-generative-ui-tool-renderer", never, { "toolCall": { "alias": "toolCall"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
5529
5986
  }
5530
5987
 
5531
- export { AGUI_SEND_STATE_SNAPSHOT_TOOL_NAME, AgentStore, AudioRecorderError, COPILOT_CHAT_CONFIGURATION, COPILOT_CHAT_CONFIGURATION_OPTIONS, COPILOT_CHAT_DEFAULT_LABELS, COPILOT_CHAT_LABELS, COPILOT_KIT_CONFIG, ChatState, CopilotA2UIActivityRenderer, CopilotA2UIProgress, CopilotA2UIToolRenderer, CopilotChat, CopilotChatAddFileButton, CopilotChatAssistantMessage, CopilotChatAssistantMessageCopyButton, CopilotChatAssistantMessageReadAloudButton, CopilotChatAssistantMessageRegenerateButton, CopilotChatAssistantMessageRenderer, CopilotChatAssistantMessageThumbsDownButton, CopilotChatAssistantMessageThumbsUpButton, CopilotChatAssistantMessageToolbar, CopilotChatAssistantMessageToolbarButton, CopilotChatAttachmentQueue, CopilotChatAttachmentRenderer, CopilotChatAttachmentsDirective, CopilotChatAudioRecorder, CopilotChatCancelTranscribeButton, CopilotChatConfiguration, CopilotChatFinishTranscribeButton, CopilotChatInput, CopilotChatInputDefaults, CopilotChatMessageView, CopilotChatMessageViewCursor, CopilotChatReasoningMessage, CopilotChatSendButton, CopilotChatStartTranscribeButton, CopilotChatSuggestionPill, CopilotChatSuggestionView, CopilotChatTextarea, CopilotChatToolCallsView, CopilotChatToolbar, CopilotChatToolbarButton, CopilotChatToolsMenu, CopilotChatUserMessage, CopilotChatUserMessageBranchNavigation, CopilotChatUserMessageCopyButton, CopilotChatUserMessageEditButton, CopilotChatUserMessageRenderer, CopilotChatUserMessageToolbar, CopilotChatUserMessageToolbarButton, CopilotChatView, CopilotChatViewDisclaimer, CopilotChatViewFeather, CopilotChatViewHandlers, CopilotChatViewInputContainer, CopilotChatViewScrollToBottomButton, CopilotChatViewScrollView, CopilotKit, CopilotKitAgentContext, CopilotOpenGenerativeUIActivityRenderer, CopilotOpenGenerativeUIRenderer, CopilotOpenGenerativeUIToolRenderer, CopilotSlot, CopilotThreadsDrawer, CopilotThreadsDrawerRow, CopilotTooltip, CopilotkitAgentFactory, CopilotkitThreadsFactory, DEFAULT_OPEN_GENERATIVE_UI_DESIGN_SKILL, GENERATE_SANDBOXED_UI_DESCRIPTION, GENERATE_SANDBOXED_UI_TOOL_NAME, GenerateSandboxedUiArgsSchema, OPEN_GENERATIVE_UI_ACTIVITY_TYPE, OPEN_GENERATIVE_UI_WEBSANDBOX_LOADER, OpenGenerativeUIContentSchema, RENDER_A2UI_TOOL_NAME, RenderA2UIArgsSchema, RenderToolCalls, ResizeObserverService, SLOT_CONFIG, ScrollPosition, StickToBottom, ThreadsStore, TooltipContent, TranscriptionError, anyActivityContentSchema, cn, connectAgentContext, createSlotConfig, createSlotRenderer, getSlotConfig, injectAgentStore, injectChatConfiguration, injectChatLabels, injectChatState, injectCopilotKitConfig, injectMemories, injectThreads, isComponentType, isSlotValue, normalizeSlotValue, provideCopilotChatConfiguration, provideCopilotChatLabels, provideCopilotKit, provideSlots, registerFrontendTool, registerHumanInTheLoop, registerRenderToolCall, renderSlot, transcribeAudio };
5532
- export type { A2UIConfig, ActivityRenderer, AngularActivityContentParseResult, AngularActivityContentSchema, AngularToolCall, AssistantMessageCopyButtonContext, AssistantMessageMarkdownRendererContext, AssistantMessageToolbarContext, AudioRecorderState, BranchNavigationContext, ClientTool, ConnectAgentContextConfig, CopilotChatAssistantMessageOnReadAloudProps, CopilotChatAssistantMessageOnRegenerateProps, CopilotChatAssistantMessageOnThumbsDownProps, CopilotChatAssistantMessageOnThumbsUpProps, CopilotChatAudioRecorderProps, CopilotChatButtonProps, CopilotChatConfigurationOptions, CopilotChatInputConfig, CopilotChatInputMode, CopilotChatInputOutputs, CopilotChatInputSlots, CopilotChatLabels, CopilotChatMessageViewProps, CopilotChatTextareaProps, CopilotChatToolbarButtonProps, CopilotChatToolbarProps, CopilotChatToolsButtonProps, CopilotChatUserMessageOnEditMessageProps, CopilotChatUserMessageOnSwitchToBranchProps, CopilotChatViewLayoutContext, CopilotChatViewProps, CopilotKitConfig, CopyButtonContext, CursorContext, EditButtonContext, FrontendToolConfig, GenerateSandboxedUiArgs, HumanInTheLoopConfig, HumanInTheLoopToolCall, HumanInTheLoopToolRenderer, InjectThreadsInput, InjectThreadsResult, MemoriesController, MessageRendererContext, MessageViewContext, OpenGenerativeUIConfig, OpenGenerativeUIContent, ReadAloudButtonContext, RegenerateButtonContext, RenderA2UIArgs, RenderActivityMessageConfig, RenderSlotOptions, RenderToolCallConfig, ResizeState, SandboxFunction, ScrollBehavior, ScrollState, SendButtonContext, SlotConfig, SlotContext, SlotRegistryEntry, SlotValue, Thread, ThumbsDownButtonContext, ThumbsUpButtonContext, ToolRenderer, ToolbarContext, ToolsMenuItem, TranscriptionErrorInfo, TranscriptionResult, UserMessageToolbarContext, WithSlots };
5988
+ export { AGUI_SEND_STATE_SNAPSHOT_TOOL_NAME, AgentStore, AudioRecorderError, COPILOT_CHAT_CONFIGURATION, COPILOT_CHAT_CONFIGURATION_OPTIONS, COPILOT_CHAT_DEFAULT_LABELS, COPILOT_CHAT_LABELS, COPILOT_KIT_CONFIG, ChatState, CopilotA2UIActivityRenderer, CopilotA2UIProgress, CopilotA2UIRecovery, CopilotA2UIToolRenderer, CopilotChat, CopilotChatAddFileButton, CopilotChatAssistantMessage, CopilotChatAssistantMessageCopyButton, CopilotChatAssistantMessageReadAloudButton, CopilotChatAssistantMessageRegenerateButton, CopilotChatAssistantMessageRenderer, CopilotChatAssistantMessageThumbsDownButton, CopilotChatAssistantMessageThumbsUpButton, CopilotChatAssistantMessageToolbar, CopilotChatAssistantMessageToolbarButton, CopilotChatAttachmentQueue, CopilotChatAttachmentRenderer, CopilotChatAttachmentsDirective, CopilotChatAudioRecorder, CopilotChatCancelTranscribeButton, CopilotChatConfiguration, CopilotChatFinishTranscribeButton, CopilotChatInput, CopilotChatInputDefaults, CopilotChatMessageView, CopilotChatMessageViewCursor, CopilotChatReasoningMessage, CopilotChatSendButton, CopilotChatStartTranscribeButton, CopilotChatSuggestionPill, CopilotChatSuggestionView, CopilotChatTextarea, CopilotChatToolCallsView, CopilotChatToolbar, CopilotChatToolbarButton, CopilotChatToolsMenu, CopilotChatUserMessage, CopilotChatUserMessageBranchNavigation, CopilotChatUserMessageCopyButton, CopilotChatUserMessageEditButton, CopilotChatUserMessageRenderer, CopilotChatUserMessageToolbar, CopilotChatUserMessageToolbarButton, CopilotChatView, CopilotChatViewDisclaimer, CopilotChatViewFeather, CopilotChatViewHandlers, CopilotChatViewInputContainer, CopilotChatViewScrollToBottomButton, CopilotChatViewScrollView, CopilotDefaultToolRenderer, CopilotKit, CopilotKitAgentContext, CopilotOpenGenerativeUIActivityRenderer, CopilotOpenGenerativeUIRenderer, CopilotOpenGenerativeUIToolRenderer, CopilotPopup, CopilotSidebar, CopilotSlot, CopilotThreadsDrawer, CopilotThreadsDrawerRow, CopilotTooltip, CopilotkitAgentFactory, CopilotkitThreadsFactory, DEFAULT_OPEN_GENERATIVE_UI_DESIGN_SKILL, GENERATE_SANDBOXED_UI_DESCRIPTION, GENERATE_SANDBOXED_UI_TOOL_NAME, GenerateSandboxedUiArgsSchema, InterruptController, InterruptExpiredError, OPEN_GENERATIVE_UI_ACTIVITY_TYPE, OPEN_GENERATIVE_UI_WEBSANDBOX_LOADER, OpenGenerativeUIContentSchema, RENDER_A2UI_TOOL_NAME, RenderA2UIArgsSchema, RenderToolCalls, ResizeObserverService, SLOT_CONFIG, ScrollPosition, StickToBottom, ThreadsStore, TooltipContent, TranscriptionError, anyActivityContentSchema, cn, connectAgentContext, createSlotConfig, createSlotRenderer, getSlotConfig, injectAgentStore, injectChatConfiguration, injectChatLabels, injectChatState, injectCopilotKitConfig, injectInterrupt, injectMemories, injectThreads, isComponentType, isSlotValue, normalizeSlotValue, parseToolCallArguments, pickToolCallHandler, provideCopilotChatConfiguration, provideCopilotChatLabels, provideCopilotKit, provideSlots, readA2UILifecycleContent, registerFrontendTool, registerHumanInTheLoop, registerRenderActivityMessage, registerRenderToolCall, renderSlot, safeToolValue, transcribeAudio, ɵCOPILOTKIT_BUILT_IN_ACTIVITY_RENDERERS };
5989
+ export type { A2UIConfig, A2UIDebugExposure, A2UILifecycleContent, A2UILifecycleStatus, A2UIRecoveryOptions, ActivityRenderer, AngularActivityContentParseResult, AngularActivityContentSchema, AngularToolCall, AssistantMessageCopyButtonContext, AssistantMessageMarkdownRendererContext, AssistantMessageToolbarContext, AudioRecorderState, BranchNavigationContext, ClientTool, ConnectAgentContextConfig, CopilotChatAssistantMessageOnReadAloudProps, CopilotChatAssistantMessageOnRegenerateProps, CopilotChatAssistantMessageOnThumbsDownProps, CopilotChatAssistantMessageOnThumbsUpProps, CopilotChatAudioRecorderProps, CopilotChatButtonProps, CopilotChatConfigurationOptions, CopilotChatInputConfig, CopilotChatInputMode, CopilotChatInputOutputs, CopilotChatInputSlots, CopilotChatLabels, CopilotChatMessageViewProps, CopilotChatTextareaProps, CopilotChatToolbarButtonProps, CopilotChatToolbarProps, CopilotChatToolsButtonProps, CopilotChatUserMessageOnEditMessageProps, CopilotChatUserMessageOnSwitchToBranchProps, CopilotChatViewLayoutContext, CopilotChatViewProps, CopilotKitConfig, CopilotSidebarMode, CopilotSidebarPosition, CopyButtonContext, CursorContext, EditButtonContext, FrontendToolConfig, GenerateSandboxedUiArgs, HumanInTheLoopConfig, HumanInTheLoopToolCall, HumanInTheLoopToolRenderer, InjectInterruptOptions, InjectThreadsInput, InjectThreadsResult, InterruptEvent, InterruptHandlerProps, InterruptRunOptions, InterruptRunner, InterruptView, MemoriesController, MessageRendererContext, MessageViewContext, OpenGenerativeUIConfig, OpenGenerativeUIContent, ReadAloudButtonContext, RegenerateButtonContext, RenderA2UIArgs, RenderActivityMessageConfig, RenderSlotOptions, RenderToolCallConfig, ResizeState, SandboxFunction, ScrollBehavior, ScrollState, SendButtonContext, SlotConfig, SlotContext, SlotRegistryEntry, SlotValue, Thread, ThumbsDownButtonContext, ThumbsUpButtonContext, ToolCallHandler, ToolRenderer, ToolbarContext, ToolsMenuItem, TranscriptionErrorInfo, TranscriptionResult, UserMessageToolbarContext, WithSlots };