@copilotkit/angular 0.2.0 → 0.3.1-canary.1785346263

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 {
@@ -1922,7 +1984,6 @@ declare class CopilotChatAssistantMessageRenderer implements AfterViewInit {
1922
1984
  private markedInstance;
1923
1985
  private initializeMarked;
1924
1986
  private renderMarkdown;
1925
- private processMathEquations;
1926
1987
  private renderMathEquations;
1927
1988
  handleClick(event: MouseEvent): void;
1928
1989
  private copyCodeBlock;
@@ -1932,6 +1993,12 @@ declare class CopilotChatAssistantMessageRenderer implements AfterViewInit {
1932
1993
  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
1994
  }
1934
1995
 
1996
+ interface CopilotIconNode {
1997
+ readonly tag: "path" | "rect";
1998
+ readonly attributes: Readonly<Record<string, string>>;
1999
+ }
2000
+ type CopilotIconData = readonly CopilotIconNode[];
2001
+
1935
2002
  declare class CopilotChatAssistantMessageToolbarButton {
1936
2003
  title: _angular_core.InputSignal<string>;
1937
2004
  disabled: _angular_core.InputSignal<boolean>;
@@ -1946,8 +2013,8 @@ declare class CopilotChatAssistantMessageCopyButton {
1946
2013
  readonly inputClass: _angular_core.InputSignal<string>;
1947
2014
  readonly content: _angular_core.InputSignal<string>;
1948
2015
  readonly clicked: _angular_core.OutputEmitterRef<void>;
1949
- readonly CopyIcon: lucide_angular.LucideIconData;
1950
- readonly CheckIcon: lucide_angular.LucideIconData;
2016
+ readonly CopyIcon: CopilotIconData;
2017
+ readonly CheckIcon: CopilotIconData;
1951
2018
  readonly copied: _angular_core.WritableSignal<boolean>;
1952
2019
  readonly labels: _copilotkit_angular.CopilotChatLabels;
1953
2020
  handleCopy(event?: Event): void;
@@ -1959,7 +2026,7 @@ declare class CopilotChatAssistantMessageThumbsUpButton {
1959
2026
  readonly disabled: _angular_core.InputSignal<boolean>;
1960
2027
  readonly inputClass: _angular_core.InputSignal<string>;
1961
2028
  readonly clicked: _angular_core.OutputEmitterRef<void>;
1962
- readonly ThumbsUpIcon: lucide_angular.LucideIconData;
2029
+ readonly ThumbsUpIcon: CopilotIconData;
1963
2030
  readonly labels: _copilotkit_angular.CopilotChatLabels;
1964
2031
  handleClick(event?: Event): void;
1965
2032
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatAssistantMessageThumbsUpButton, never>;
@@ -1970,7 +2037,7 @@ declare class CopilotChatAssistantMessageThumbsDownButton {
1970
2037
  readonly disabled: _angular_core.InputSignal<boolean>;
1971
2038
  readonly inputClass: _angular_core.InputSignal<string>;
1972
2039
  readonly clicked: _angular_core.OutputEmitterRef<void>;
1973
- readonly ThumbsDownIcon: lucide_angular.LucideIconData;
2040
+ readonly ThumbsDownIcon: CopilotIconData;
1974
2041
  readonly labels: _copilotkit_angular.CopilotChatLabels;
1975
2042
  handleClick(event?: Event): void;
1976
2043
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatAssistantMessageThumbsDownButton, never>;
@@ -1981,7 +2048,7 @@ declare class CopilotChatAssistantMessageReadAloudButton {
1981
2048
  readonly disabled: _angular_core.InputSignal<boolean>;
1982
2049
  readonly inputClass: _angular_core.InputSignal<string>;
1983
2050
  readonly clicked: _angular_core.OutputEmitterRef<void>;
1984
- readonly Volume2Icon: lucide_angular.LucideIconData;
2051
+ readonly Volume2Icon: CopilotIconData;
1985
2052
  readonly labels: _copilotkit_angular.CopilotChatLabels;
1986
2053
  handleClick(event?: Event): void;
1987
2054
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatAssistantMessageReadAloudButton, never>;
@@ -1992,7 +2059,7 @@ declare class CopilotChatAssistantMessageRegenerateButton {
1992
2059
  readonly disabled: _angular_core.InputSignal<boolean>;
1993
2060
  readonly inputClass: _angular_core.InputSignal<string>;
1994
2061
  readonly clicked: _angular_core.OutputEmitterRef<void>;
1995
- readonly RefreshCwIcon: lucide_angular.LucideIconData;
2062
+ readonly RefreshCwIcon: CopilotIconData;
1996
2063
  readonly labels: _copilotkit_angular.CopilotChatLabels;
1997
2064
  handleClick(event?: Event): void;
1998
2065
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatAssistantMessageRegenerateButton, never>;
@@ -2578,7 +2645,7 @@ declare class CopilotChatAudioRecorder implements AfterViewInit {
2578
2645
  declare class CopilotChatSendButton {
2579
2646
  disabled: _angular_core.InputSignal<boolean>;
2580
2647
  clicked: _angular_core.OutputEmitterRef<void>;
2581
- readonly ArrowUpIcon: lucide_angular.LucideIconData;
2648
+ readonly ArrowUpIcon: CopilotIconData;
2582
2649
  buttonClass: string;
2583
2650
  onClick(): void;
2584
2651
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatSendButton, never>;
@@ -2588,7 +2655,7 @@ declare class CopilotChatStartTranscribeButton {
2588
2655
  disabled: _angular_core.InputSignal<boolean>;
2589
2656
  clicked: _angular_core.OutputEmitterRef<void>;
2590
2657
  readonly labels: _copilotkit_angular.CopilotChatLabels;
2591
- readonly MicIcon: lucide_angular.LucideIconData;
2658
+ readonly MicIcon: CopilotIconData;
2592
2659
  buttonClass: string;
2593
2660
  get label(): string;
2594
2661
  onClick(): void;
@@ -2599,7 +2666,7 @@ declare class CopilotChatCancelTranscribeButton {
2599
2666
  disabled: _angular_core.InputSignal<boolean>;
2600
2667
  clicked: _angular_core.OutputEmitterRef<void>;
2601
2668
  readonly labels: _copilotkit_angular.CopilotChatLabels;
2602
- readonly XIcon: lucide_angular.LucideIconData;
2669
+ readonly XIcon: CopilotIconData;
2603
2670
  buttonClass: string;
2604
2671
  get label(): string;
2605
2672
  onClick(): void;
@@ -2610,7 +2677,7 @@ declare class CopilotChatFinishTranscribeButton {
2610
2677
  disabled: _angular_core.InputSignal<boolean>;
2611
2678
  clicked: _angular_core.OutputEmitterRef<void>;
2612
2679
  readonly labels: _copilotkit_angular.CopilotChatLabels;
2613
- readonly CheckIcon: lucide_angular.LucideIconData;
2680
+ readonly CheckIcon: CopilotIconData;
2614
2681
  buttonClass: string;
2615
2682
  get label(): string;
2616
2683
  onClick(): void;
@@ -2621,7 +2688,7 @@ declare class CopilotChatAddFileButton {
2621
2688
  disabled: _angular_core.InputSignal<boolean>;
2622
2689
  clicked: _angular_core.OutputEmitterRef<void>;
2623
2690
  readonly labels: _copilotkit_angular.CopilotChatLabels;
2624
- readonly PlusIcon: lucide_angular.LucideIconData;
2691
+ readonly PlusIcon: CopilotIconData;
2625
2692
  buttonClass: string;
2626
2693
  get label(): string;
2627
2694
  onClick(): void;
@@ -2629,19 +2696,20 @@ declare class CopilotChatAddFileButton {
2629
2696
  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
2697
  }
2631
2698
  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>;
2699
+ disabled: _angular_core.InputSignal<boolean>;
2700
+ variant: _angular_core.InputSignal<"primary" | "secondary">;
2701
+ customClass: _angular_core.InputSignal<string>;
2702
+ title: _angular_core.InputSignal<string>;
2636
2703
  clicked: _angular_core.OutputEmitterRef<void>;
2637
2704
  computedClass: _angular_core.Signal<string>;
2638
2705
  onClick(): void;
2639
2706
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatToolbarButton, never>;
2640
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatToolbarButton, "copilot-chat-toolbar-button", never, {}, { "clicked": "clicked"; }, never, ["*"], true, never>;
2707
+ 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
2708
  }
2642
2709
 
2643
2710
  declare class CopilotChatTextarea implements AfterViewInit {
2644
2711
  private elementRef;
2712
+ private platformId;
2645
2713
  get textareaRef(): ElementRef<any>;
2646
2714
  inputValue: _angular_core.InputSignal<string>;
2647
2715
  inputPlaceholder: _angular_core.InputSignal<string>;
@@ -2688,8 +2756,8 @@ declare class CopilotChatToolbar {
2688
2756
  }
2689
2757
 
2690
2758
  declare class CopilotChatToolsMenu {
2691
- readonly PlusIcon: lucide_angular.LucideIconData;
2692
- readonly ChevronRightIcon: lucide_angular.LucideIconData;
2759
+ readonly PlusIcon: CopilotIconData;
2760
+ readonly ChevronRightIcon: CopilotIconData;
2693
2761
  inputToolsMenu: _angular_core.InputSignal<(ToolsMenuItem | "-")[]>;
2694
2762
  inputDisabled: _angular_core.InputSignal<boolean>;
2695
2763
  inputClass: _angular_core.InputSignal<string>;
@@ -2723,7 +2791,7 @@ interface ToolbarContext {
2723
2791
  mode: CopilotChatInputMode;
2724
2792
  value: string;
2725
2793
  }
2726
- declare class CopilotChatInput implements AfterViewInit, OnDestroy {
2794
+ declare class CopilotChatInput implements OnDestroy {
2727
2795
  readonly textAreaRef: _angular_core.Signal<CopilotChatTextarea>;
2728
2796
  readonly audioRecorderRef: _angular_core.Signal<CopilotChatAudioRecorder>;
2729
2797
  readonly sendButtonTemplate: _angular_core.Signal<TemplateRef<SendButtonContext>>;
@@ -2768,7 +2836,7 @@ declare class CopilotChatInput implements AfterViewInit, OnDestroy {
2768
2836
  finishTranscribeWithAudio: _angular_core.OutputEmitterRef<Blob>;
2769
2837
  addFile: _angular_core.OutputEmitterRef<void>;
2770
2838
  valueChange: _angular_core.OutputEmitterRef<string>;
2771
- readonly ArrowUpIcon: lucide_angular.LucideIconData;
2839
+ readonly ArrowUpIcon: CopilotIconData;
2772
2840
  readonly defaultButtonClass: string;
2773
2841
  readonly labels: _copilotkit_angular.CopilotChatLabels;
2774
2842
  readonly chatState: _copilotkit_angular.ChatState;
@@ -2829,7 +2897,6 @@ declare class CopilotChatInput implements AfterViewInit, OnDestroy {
2829
2897
  clicked: () => void;
2830
2898
  click: () => void;
2831
2899
  };
2832
- ngAfterViewInit(): void;
2833
2900
  ngOnDestroy(): void;
2834
2901
  handleKeyDown(event: KeyboardEvent): void;
2835
2902
  handleValueChange(value: string): void;
@@ -2924,8 +2991,8 @@ declare class CopilotChatUserMessageCopyButton {
2924
2991
  readonly inputClass: _angular_core.InputSignal<string>;
2925
2992
  readonly content: _angular_core.InputSignal<string>;
2926
2993
  readonly clicked: _angular_core.OutputEmitterRef<void>;
2927
- readonly CopyIcon: lucide_angular.LucideIconData;
2928
- readonly CheckIcon: lucide_angular.LucideIconData;
2994
+ readonly CopyIcon: CopilotIconData;
2995
+ readonly CheckIcon: CopilotIconData;
2929
2996
  readonly copied: _angular_core.WritableSignal<boolean>;
2930
2997
  readonly labels: _copilotkit_angular.CopilotChatLabels;
2931
2998
  handleCopy(): void;
@@ -2937,7 +3004,7 @@ declare class CopilotChatUserMessageEditButton {
2937
3004
  disabled: _angular_core.InputSignal<boolean>;
2938
3005
  inputClass: _angular_core.InputSignal<string>;
2939
3006
  clicked: _angular_core.OutputEmitterRef<void>;
2940
- readonly EditIcon: lucide_angular.LucideIconData;
3007
+ readonly EditIcon: CopilotIconData;
2941
3008
  readonly labels: _copilotkit_angular.CopilotChatLabels;
2942
3009
  handleEdit(): void;
2943
3010
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatUserMessageEditButton, never>;
@@ -3021,8 +3088,8 @@ declare class CopilotChatUserMessageBranchNavigation {
3021
3088
  }>;
3022
3089
  inputClass: _angular_core.InputSignal<string>;
3023
3090
  switchToBranch: _angular_core.OutputEmitterRef<CopilotChatUserMessageOnSwitchToBranchProps>;
3024
- readonly ChevronLeftIcon: lucide_angular.LucideIconData;
3025
- readonly ChevronRightIcon: lucide_angular.LucideIconData;
3091
+ readonly ChevronLeftIcon: CopilotIconData;
3092
+ readonly ChevronRightIcon: CopilotIconData;
3026
3093
  readonly buttonClass: string;
3027
3094
  showNavigation: _angular_core.Signal<boolean>;
3028
3095
  canGoPrev: _angular_core.Signal<boolean>;
@@ -3163,13 +3230,14 @@ declare class CopilotChatMessageViewCursor {
3163
3230
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatMessageViewCursor, "copilot-chat-message-view-cursor", never, { "inputClass": { "alias": "inputClass"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
3164
3231
  }
3165
3232
 
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<({
3233
+ declare class CopilotChatReasoningMessage {
3234
+ readonly message: _angular_core.InputSignal<{
3235
+ role: "reasoning";
3236
+ content: string;
3237
+ id: string;
3238
+ encryptedValue?: string | undefined;
3239
+ }>;
3240
+ readonly messages: _angular_core.InputSignal<({
3173
3241
  role: "developer";
3174
3242
  content: string;
3175
3243
  id: string;
@@ -3278,43 +3346,31 @@ declare class CopilotChatMessageView {
3278
3346
  id: string;
3279
3347
  encryptedValue?: string | undefined;
3280
3348
  })[]>;
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<({
3349
+ readonly isRunning: _angular_core.InputSignal<boolean>;
3350
+ readonly inputClass: _angular_core.InputSignal<string>;
3351
+ private readonly userToggled;
3352
+ protected readonly isLatest: _angular_core.Signal<boolean>;
3353
+ protected readonly isStreaming: _angular_core.Signal<boolean>;
3354
+ private readonly startTime;
3355
+ protected readonly open: _angular_core.WritableSignal<boolean>;
3356
+ protected readonly hasContent: _angular_core.Signal<boolean>;
3357
+ protected readonly reasoningContent: _angular_core.Signal<string>;
3358
+ protected readonly label: _angular_core.Signal<string>;
3359
+ protected readonly computedClass: _angular_core.Signal<string>;
3360
+ protected readonly headerClass: _angular_core.Signal<string>;
3361
+ protected readonly chevronClass: _angular_core.Signal<string>;
3362
+ protected toggle(): void;
3363
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatReasoningMessage, never>;
3364
+ 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>;
3365
+ }
3366
+
3367
+ /**
3368
+ * CopilotChatMessageView component - Angular port of the React component.
3369
+ * Renders a list of chat messages with support for custom slots and layouts.
3370
+ * DOM structure and Tailwind classes match the React implementation exactly.
3371
+ */
3372
+ declare class CopilotChatMessageView {
3373
+ messages: _angular_core.InputSignal<({
3318
3374
  role: "developer";
3319
3375
  content: string;
3320
3376
  id: string;
@@ -3423,42 +3479,85 @@ declare class CopilotChatMessageView {
3423
3479
  id: string;
3424
3480
  encryptedValue?: string | undefined;
3425
3481
  })[]>;
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";
3482
+ /** Current agent state exposed to transcript-children slots. */
3483
+ state: _angular_core.InputSignal<unknown>;
3484
+ showCursor: _angular_core.InputSignal<boolean>;
3485
+ isLoading: _angular_core.InputSignal<boolean>;
3486
+ inputClass: _angular_core.InputSignal<string>;
3487
+ agentId: _angular_core.InputSignal<string>;
3488
+ assistantMessageComponent: _angular_core.InputSignal<Type<any>>;
3489
+ assistantMessageTemplate: _angular_core.InputSignal<TemplateRef<any>>;
3490
+ assistantMessageClass: _angular_core.InputSignal<string>;
3491
+ reasoningMessageComponent: _angular_core.InputSignal<Type<any>>;
3492
+ reasoningMessageTemplate: _angular_core.InputSignal<TemplateRef<any>>;
3493
+ reasoningMessageClass: _angular_core.InputSignal<string>;
3494
+ childrenComponent: _angular_core.InputSignal<Type<any>>;
3495
+ childrenTemplate: _angular_core.InputSignal<TemplateRef<any>>;
3496
+ childrenClass: _angular_core.InputSignal<string>;
3497
+ userMessageComponent: _angular_core.InputSignal<Type<any>>;
3498
+ userMessageTemplate: _angular_core.InputSignal<TemplateRef<any>>;
3499
+ userMessageClass: _angular_core.InputSignal<string>;
3500
+ cursorComponent: _angular_core.InputSignal<Type<any>>;
3501
+ cursorTemplate: _angular_core.InputSignal<TemplateRef<any>>;
3502
+ cursorClass: _angular_core.InputSignal<string>;
3503
+ customLayoutTemplate?: TemplateRef<any>;
3504
+ assistantMessageThumbsUp: _angular_core.OutputEmitterRef<{
3505
+ message: Message$1;
3506
+ }>;
3507
+ assistantMessageThumbsDown: _angular_core.OutputEmitterRef<{
3508
+ message: Message$1;
3509
+ }>;
3510
+ assistantMessageReadAloud: _angular_core.OutputEmitterRef<{
3511
+ message: Message$1;
3512
+ }>;
3513
+ assistantMessageRegenerate: _angular_core.OutputEmitterRef<{
3514
+ message: Message$1;
3515
+ }>;
3516
+ userMessageCopy: _angular_core.OutputEmitterRef<{
3517
+ message: Message$1;
3518
+ }>;
3519
+ userMessageEdit: _angular_core.OutputEmitterRef<{
3520
+ message: Message$1;
3521
+ }>;
3522
+ protected readonly defaultAssistantComponent: typeof CopilotChatAssistantMessage;
3523
+ protected readonly defaultUserComponent: typeof CopilotChatUserMessage;
3524
+ protected readonly defaultReasoningComponent: typeof CopilotChatReasoningMessage;
3525
+ protected readonly defaultCursorComponent: typeof CopilotChatMessageViewCursor;
3526
+ protected readonly copilotKit: CopilotKit;
3527
+ protected messagesValue: _angular_core.Signal<({
3528
+ role: "developer";
3529
+ content: string;
3530
+ id: string;
3531
+ name?: string | undefined;
3532
+ encryptedValue?: string | undefined;
3533
+ } | {
3534
+ role: "system";
3535
+ content: string;
3536
+ id: string;
3537
+ name?: string | undefined;
3538
+ encryptedValue?: string | undefined;
3539
+ } | {
3540
+ role: "assistant";
3541
+ id: string;
3542
+ name?: string | undefined;
3543
+ content?: string | undefined;
3544
+ encryptedValue?: string | undefined;
3545
+ toolCalls?: {
3546
+ function: {
3547
+ name: string;
3548
+ arguments: string;
3549
+ };
3550
+ type: "function";
3551
+ id: string;
3552
+ encryptedValue?: string | undefined;
3553
+ }[] | undefined;
3554
+ } | {
3555
+ role: "user";
3556
+ content: string | ({
3557
+ type: "text";
3558
+ text: string;
3559
+ } | {
3560
+ type: "image";
3462
3561
  source: {
3463
3562
  type: "data";
3464
3563
  value: string;
@@ -3513,31 +3612,366 @@ declare class CopilotChatMessageView {
3513
3612
  url?: string | undefined;
3514
3613
  filename?: string | undefined;
3515
3614
  })[];
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;
3615
+ id: string;
3616
+ name?: string | undefined;
3617
+ encryptedValue?: string | undefined;
3618
+ } | {
3619
+ role: "tool";
3620
+ toolCallId: string;
3621
+ content: string;
3622
+ id: string;
3623
+ encryptedValue?: string | undefined;
3624
+ error?: string | undefined;
3625
+ } | {
3626
+ role: "activity";
3627
+ content: Record<string, any>;
3628
+ id: string;
3629
+ activityType: string;
3630
+ } | {
3631
+ role: "reasoning";
3632
+ content: string;
3633
+ id: string;
3634
+ encryptedValue?: string | undefined;
3635
+ })[]>;
3636
+ protected showCursorValue: _angular_core.Signal<boolean>;
3637
+ protected isLoadingValue: _angular_core.Signal<boolean>;
3638
+ protected lastMessage: _angular_core.Signal<{
3639
+ role: "developer";
3640
+ content: string;
3641
+ id: string;
3642
+ name?: string | undefined;
3643
+ encryptedValue?: string | undefined;
3644
+ } | {
3645
+ role: "system";
3646
+ content: string;
3647
+ id: string;
3648
+ name?: string | undefined;
3649
+ encryptedValue?: string | undefined;
3650
+ } | {
3651
+ role: "assistant";
3652
+ id: string;
3653
+ name?: string | undefined;
3654
+ content?: string | undefined;
3655
+ encryptedValue?: string | undefined;
3656
+ toolCalls?: {
3657
+ function: {
3658
+ name: string;
3659
+ arguments: string;
3660
+ };
3661
+ type: "function";
3662
+ id: string;
3663
+ encryptedValue?: string | undefined;
3664
+ }[] | undefined;
3665
+ } | {
3666
+ role: "user";
3667
+ content: string | ({
3668
+ type: "text";
3669
+ text: string;
3670
+ } | {
3671
+ type: "image";
3672
+ source: {
3673
+ type: "data";
3674
+ value: string;
3675
+ mimeType: string;
3676
+ } | {
3677
+ type: "url";
3678
+ value: string;
3679
+ mimeType?: string | undefined;
3680
+ };
3681
+ metadata?: unknown;
3682
+ } | {
3683
+ type: "audio";
3684
+ source: {
3685
+ type: "data";
3686
+ value: string;
3687
+ mimeType: string;
3688
+ } | {
3689
+ type: "url";
3690
+ value: string;
3691
+ mimeType?: string | undefined;
3692
+ };
3693
+ metadata?: unknown;
3694
+ } | {
3695
+ type: "video";
3696
+ source: {
3697
+ type: "data";
3698
+ value: string;
3699
+ mimeType: string;
3700
+ } | {
3701
+ type: "url";
3702
+ value: string;
3703
+ mimeType?: string | undefined;
3704
+ };
3705
+ metadata?: unknown;
3706
+ } | {
3707
+ type: "document";
3708
+ source: {
3709
+ type: "data";
3710
+ value: string;
3711
+ mimeType: string;
3712
+ } | {
3713
+ type: "url";
3714
+ value: string;
3715
+ mimeType?: string | undefined;
3716
+ };
3717
+ metadata?: unknown;
3718
+ } | {
3719
+ type: "binary";
3720
+ mimeType: string;
3721
+ id?: string | undefined;
3722
+ data?: string | undefined;
3723
+ url?: string | undefined;
3724
+ filename?: string | undefined;
3725
+ })[];
3726
+ id: string;
3727
+ name?: string | undefined;
3728
+ encryptedValue?: string | undefined;
3729
+ } | {
3730
+ role: "tool";
3731
+ toolCallId: string;
3732
+ content: string;
3733
+ id: string;
3734
+ encryptedValue?: string | undefined;
3735
+ error?: string | undefined;
3736
+ } | {
3737
+ role: "activity";
3738
+ content: Record<string, any>;
3739
+ id: string;
3740
+ activityType: string;
3741
+ } | {
3742
+ role: "reasoning";
3743
+ content: string;
3744
+ id: string;
3745
+ encryptedValue?: string | undefined;
3746
+ }>;
3747
+ computedClass: _angular_core.Signal<string>;
3748
+ layoutContext: _angular_core.Signal<{
3749
+ isLoading: boolean;
3750
+ messages: ({
3751
+ role: "developer";
3752
+ content: string;
3753
+ id: string;
3754
+ name?: string | undefined;
3755
+ encryptedValue?: string | undefined;
3756
+ } | {
3757
+ role: "system";
3758
+ content: string;
3759
+ id: string;
3760
+ name?: string | undefined;
3761
+ encryptedValue?: string | undefined;
3762
+ } | {
3763
+ role: "assistant";
3764
+ id: string;
3765
+ name?: string | undefined;
3766
+ content?: string | undefined;
3767
+ encryptedValue?: string | undefined;
3768
+ toolCalls?: {
3769
+ function: {
3770
+ name: string;
3771
+ arguments: string;
3772
+ };
3773
+ type: "function";
3774
+ id: string;
3775
+ encryptedValue?: string | undefined;
3776
+ }[] | undefined;
3777
+ } | {
3778
+ role: "user";
3779
+ content: string | ({
3780
+ type: "text";
3781
+ text: string;
3782
+ } | {
3783
+ type: "image";
3784
+ source: {
3785
+ type: "data";
3786
+ value: string;
3787
+ mimeType: string;
3788
+ } | {
3789
+ type: "url";
3790
+ value: string;
3791
+ mimeType?: string | undefined;
3792
+ };
3793
+ metadata?: unknown;
3794
+ } | {
3795
+ type: "audio";
3796
+ source: {
3797
+ type: "data";
3798
+ value: string;
3799
+ mimeType: string;
3800
+ } | {
3801
+ type: "url";
3802
+ value: string;
3803
+ mimeType?: string | undefined;
3804
+ };
3805
+ metadata?: unknown;
3806
+ } | {
3807
+ type: "video";
3808
+ source: {
3809
+ type: "data";
3810
+ value: string;
3811
+ mimeType: string;
3812
+ } | {
3813
+ type: "url";
3814
+ value: string;
3815
+ mimeType?: string | undefined;
3816
+ };
3817
+ metadata?: unknown;
3818
+ } | {
3819
+ type: "document";
3820
+ source: {
3821
+ type: "data";
3822
+ value: string;
3823
+ mimeType: string;
3824
+ } | {
3825
+ type: "url";
3826
+ value: string;
3827
+ mimeType?: string | undefined;
3828
+ };
3829
+ metadata?: unknown;
3830
+ } | {
3831
+ type: "binary";
3832
+ mimeType: string;
3833
+ id?: string | undefined;
3834
+ data?: string | undefined;
3835
+ url?: string | undefined;
3836
+ filename?: string | undefined;
3837
+ })[];
3838
+ id: string;
3839
+ name?: string | undefined;
3840
+ encryptedValue?: string | undefined;
3841
+ } | {
3842
+ role: "tool";
3843
+ toolCallId: string;
3844
+ content: string;
3845
+ id: string;
3846
+ encryptedValue?: string | undefined;
3847
+ error?: string | undefined;
3848
+ } | {
3849
+ role: "activity";
3850
+ content: Record<string, any>;
3851
+ id: string;
3852
+ activityType: string;
3853
+ } | {
3854
+ role: "reasoning";
3855
+ content: string;
3856
+ id: string;
3857
+ encryptedValue?: string | undefined;
3858
+ })[];
3859
+ showCursor: boolean;
3860
+ messageElements: ({
3861
+ role: "developer";
3862
+ content: string;
3863
+ id: string;
3864
+ name?: string | undefined;
3865
+ encryptedValue?: string | undefined;
3866
+ } | {
3867
+ role: "system";
3868
+ content: string;
3869
+ id: string;
3870
+ name?: string | undefined;
3871
+ encryptedValue?: string | undefined;
3872
+ } | {
3873
+ role: "assistant";
3874
+ id: string;
3875
+ name?: string | undefined;
3876
+ content?: string | undefined;
3877
+ encryptedValue?: string | undefined;
3878
+ toolCalls?: {
3879
+ function: {
3880
+ name: string;
3881
+ arguments: string;
3882
+ };
3883
+ type: "function";
3884
+ id: string;
3885
+ encryptedValue?: string | undefined;
3886
+ }[] | undefined;
3887
+ } | {
3888
+ role: "user";
3889
+ content: string | ({
3890
+ type: "text";
3891
+ text: string;
3892
+ } | {
3893
+ type: "image";
3894
+ source: {
3895
+ type: "data";
3896
+ value: string;
3897
+ mimeType: string;
3898
+ } | {
3899
+ type: "url";
3900
+ value: string;
3901
+ mimeType?: string | undefined;
3902
+ };
3903
+ metadata?: unknown;
3904
+ } | {
3905
+ type: "audio";
3906
+ source: {
3907
+ type: "data";
3908
+ value: string;
3909
+ mimeType: string;
3910
+ } | {
3911
+ type: "url";
3912
+ value: string;
3913
+ mimeType?: string | undefined;
3914
+ };
3915
+ metadata?: unknown;
3916
+ } | {
3917
+ type: "video";
3918
+ source: {
3919
+ type: "data";
3920
+ value: string;
3921
+ mimeType: string;
3922
+ } | {
3923
+ type: "url";
3924
+ value: string;
3925
+ mimeType?: string | undefined;
3926
+ };
3927
+ metadata?: unknown;
3928
+ } | {
3929
+ type: "document";
3930
+ source: {
3931
+ type: "data";
3932
+ value: string;
3933
+ mimeType: string;
3934
+ } | {
3935
+ type: "url";
3936
+ value: string;
3937
+ mimeType?: string | undefined;
3938
+ };
3939
+ metadata?: unknown;
3940
+ } | {
3941
+ type: "binary";
3942
+ mimeType: string;
3943
+ id?: string | undefined;
3944
+ data?: string | undefined;
3945
+ url?: string | undefined;
3946
+ filename?: string | undefined;
3947
+ })[];
3948
+ id: string;
3949
+ name?: string | undefined;
3950
+ encryptedValue?: string | undefined;
3951
+ } | {
3952
+ role: "tool";
3953
+ toolCallId: string;
3954
+ content: string;
3955
+ id: string;
3956
+ encryptedValue?: string | undefined;
3957
+ error?: string | undefined;
3958
+ } | {
3959
+ role: "activity";
3960
+ content: Record<string, any>;
3961
+ id: string;
3962
+ activityType: string;
3963
+ } | {
3964
+ role: "reasoning";
3965
+ content: string;
3966
+ id: string;
3967
+ encryptedValue?: string | undefined;
3968
+ })[];
3536
3969
  }>;
3537
- computedClass: _angular_core.Signal<string>;
3538
- layoutContext: _angular_core.Signal<{
3539
- isLoading: boolean;
3540
- messages: ({
3970
+ assistantMessageSlot: _angular_core.Signal<string | Type<any>>;
3971
+ userMessageSlot: _angular_core.Signal<string | Type<any>>;
3972
+ cursorSlot: _angular_core.Signal<string | Type<any>>;
3973
+ mergeAssistantProps(message: Message$1): {
3974
+ message: {
3541
3975
  role: "developer";
3542
3976
  content: string;
3543
3977
  id: string;
@@ -3645,9 +4079,8 @@ declare class CopilotChatMessageView {
3645
4079
  content: string;
3646
4080
  id: string;
3647
4081
  encryptedValue?: string | undefined;
3648
- })[];
3649
- showCursor: boolean;
3650
- messageElements: ({
4082
+ };
4083
+ messages: ({
3651
4084
  role: "developer";
3652
4085
  content: string;
3653
4086
  id: string;
@@ -3756,12 +4189,17 @@ declare class CopilotChatMessageView {
3756
4189
  id: string;
3757
4190
  encryptedValue?: string | undefined;
3758
4191
  })[];
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): {
4192
+ isLoading: boolean;
4193
+ inputClass: string;
4194
+ };
4195
+ mergeReasoningProps(message: ReasoningMessage): {
3764
4196
  message: {
4197
+ role: "reasoning";
4198
+ content: string;
4199
+ id: string;
4200
+ encryptedValue?: string | undefined;
4201
+ };
4202
+ messages: ({
3765
4203
  role: "developer";
3766
4204
  content: string;
3767
4205
  id: string;
@@ -3869,7 +4307,11 @@ declare class CopilotChatMessageView {
3869
4307
  content: string;
3870
4308
  id: string;
3871
4309
  encryptedValue?: string | undefined;
3872
- };
4310
+ })[];
4311
+ isRunning: boolean;
4312
+ inputClass: string;
4313
+ };
4314
+ childrenContext(): {
3873
4315
  messages: ({
3874
4316
  role: "developer";
3875
4317
  content: string;
@@ -3979,10 +4421,12 @@ declare class CopilotChatMessageView {
3979
4421
  id: string;
3980
4422
  encryptedValue?: string | undefined;
3981
4423
  })[];
3982
- isLoading: boolean;
4424
+ state: unknown;
4425
+ agentId: string;
4426
+ isRunning: boolean;
3983
4427
  inputClass: string;
3984
4428
  };
3985
- mergeUserProps(message: Message): {
4429
+ mergeUserProps(message: Message$1): {
3986
4430
  message: {
3987
4431
  role: "developer";
3988
4432
  content: string;
@@ -4094,8 +4538,8 @@ declare class CopilotChatMessageView {
4094
4538
  };
4095
4539
  inputClass: string;
4096
4540
  };
4097
- asReasoningMessage(message: Message): ReasoningMessage;
4098
- trackByMessageId(index: number, message: Message): string;
4541
+ asReasoningMessage(message: Message$1): ReasoningMessage;
4542
+ trackByMessageId(index: number, message: Message$1): string;
4099
4543
  private pickActivityRenderer;
4100
4544
  protected resolveActivityRender(message: ActivityMessage$1): {
4101
4545
  component: Type<_copilotkit_angular.ActivityRenderer<unknown>>;
@@ -4111,37 +4555,41 @@ declare class CopilotChatMessageView {
4111
4555
  agent: _ag_ui_client.AbstractAgent;
4112
4556
  };
4113
4557
  };
4114
- constructor();
4115
4558
  handleAssistantThumbsUp(event: {
4116
- message: Message;
4559
+ message: Message$1;
4117
4560
  }): void;
4118
4561
  handleAssistantThumbsDown(event: {
4119
- message: Message;
4562
+ message: Message$1;
4120
4563
  }): void;
4121
4564
  handleAssistantReadAloud(event: {
4122
- message: Message;
4565
+ message: Message$1;
4123
4566
  }): void;
4124
4567
  handleAssistantRegenerate(event: {
4125
- message: Message;
4568
+ message: Message$1;
4126
4569
  }): void;
4127
4570
  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>;
4571
+ 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
4572
  }
4130
4573
 
4131
4574
  interface MessageViewContext {
4132
4575
  showCursor: boolean;
4133
- messages: Message$1[];
4576
+ messages: Message[];
4577
+ state: unknown;
4134
4578
  messageElements: any[];
4135
4579
  }
4136
4580
  interface CursorContext {
4137
4581
  }
4138
4582
  interface CopilotChatMessageViewProps {
4139
- messages?: Message$1[];
4583
+ messages?: Message[];
4584
+ state?: unknown;
4140
4585
  showCursor?: boolean;
4141
4586
  inputClass?: string;
4142
4587
  assistantMessageComponent?: Type<any>;
4143
4588
  assistantMessageTemplate?: TemplateRef<any>;
4144
4589
  assistantMessageClass?: string;
4590
+ childrenComponent?: Type<any>;
4591
+ childrenTemplate?: TemplateRef<any>;
4592
+ childrenClass?: string;
4145
4593
  userMessageComponent?: Type<any>;
4146
4594
  userMessageTemplate?: TemplateRef<any>;
4147
4595
  userMessageClass?: string;
@@ -4150,140 +4598,6 @@ interface CopilotChatMessageViewProps {
4150
4598
  cursorClass?: string;
4151
4599
  }
4152
4600
 
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
4601
  declare class CopilotChatSuggestionPill {
4288
4602
  readonly title: _angular_core.InputSignal<string>;
4289
4603
  readonly disabled: _angular_core.InputSignal<boolean>;
@@ -4318,7 +4632,7 @@ declare class CopilotChatViewScrollToBottomButton {
4318
4632
  disabled: _angular_core.InputSignal<boolean>;
4319
4633
  onClick: _angular_core.InputSignal<() => void>;
4320
4634
  clicked: _angular_core.OutputEmitterRef<void>;
4321
- protected readonly ChevronDown: lucide_angular.LucideIconData;
4635
+ protected readonly ChevronDown: CopilotIconData;
4322
4636
  get computedClass(): string;
4323
4637
  handleClick(): void;
4324
4638
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatViewScrollToBottomButton, never>;
@@ -4329,7 +4643,7 @@ declare class CopilotChatViewScrollToBottomButton {
4329
4643
  * ScrollView component for CopilotChatView
4330
4644
  * Handles auto-scrolling and scroll position management
4331
4645
  */
4332
- declare class CopilotChatViewScrollView implements OnInit, AfterViewInit, OnDestroy {
4646
+ declare class CopilotChatViewScrollView implements AfterViewInit, OnDestroy {
4333
4647
  private cdr;
4334
4648
  protected readonly chatState: ChatState;
4335
4649
  autoScroll: _angular_core.InputSignal<boolean>;
@@ -4445,29 +4759,40 @@ declare class CopilotChatViewScrollView implements OnInit, AfterViewInit, OnDest
4445
4759
  id: string;
4446
4760
  encryptedValue?: string | undefined;
4447
4761
  })[]>;
4762
+ /** Current agent state forwarded to message-view extension slots. */
4763
+ state: _angular_core.InputSignal<unknown>;
4448
4764
  agentId: _angular_core.InputSignal<string>;
4449
4765
  messageView: _angular_core.InputSignal<any>;
4450
4766
  messageViewClass: _angular_core.InputSignal<string>;
4767
+ assistantMessageComponent: _angular_core.InputSignal<Type<any>>;
4768
+ assistantMessageTemplate: _angular_core.InputSignal<TemplateRef<any>>;
4769
+ assistantMessageClass: _angular_core.InputSignal<string>;
4770
+ reasoningMessageComponent: _angular_core.InputSignal<Type<any>>;
4771
+ reasoningMessageTemplate: _angular_core.InputSignal<TemplateRef<any>>;
4772
+ reasoningMessageClass: _angular_core.InputSignal<string>;
4773
+ messageViewChildrenComponent: _angular_core.InputSignal<Type<any>>;
4774
+ messageViewChildrenTemplate: _angular_core.InputSignal<TemplateRef<any>>;
4775
+ messageViewChildrenClass: _angular_core.InputSignal<string>;
4451
4776
  showCursor: _angular_core.InputSignal<boolean>;
4452
4777
  scrollToBottomButton: _angular_core.InputSignal<any>;
4453
4778
  scrollToBottomButtonClass: _angular_core.InputSignal<string>;
4454
4779
  assistantMessageThumbsUp: _angular_core.OutputEmitterRef<{
4455
- message: Message$1;
4780
+ message: Message;
4456
4781
  }>;
4457
4782
  assistantMessageThumbsDown: _angular_core.OutputEmitterRef<{
4458
- message: Message$1;
4783
+ message: Message;
4459
4784
  }>;
4460
4785
  assistantMessageReadAloud: _angular_core.OutputEmitterRef<{
4461
- message: Message$1;
4786
+ message: Message;
4462
4787
  }>;
4463
4788
  assistantMessageRegenerate: _angular_core.OutputEmitterRef<{
4464
- message: Message$1;
4789
+ message: Message;
4465
4790
  }>;
4466
4791
  userMessageCopy: _angular_core.OutputEmitterRef<{
4467
- message: Message$1;
4792
+ message: Message;
4468
4793
  }>;
4469
4794
  userMessageEdit: _angular_core.OutputEmitterRef<{
4470
- message: Message$1;
4795
+ message: Message;
4471
4796
  }>;
4472
4797
  scrollContainer?: ElementRef<HTMLElement>;
4473
4798
  contentContainer?: ElementRef<HTMLElement>;
@@ -4481,9 +4806,8 @@ declare class CopilotChatViewScrollView implements OnInit, AfterViewInit, OnDest
4481
4806
  protected paddingBottom: _angular_core.Signal<number>;
4482
4807
  protected computedClass: _angular_core.Signal<string>;
4483
4808
  private destroy$;
4484
- private platformId;
4485
4809
  private scrollPositionService;
4486
- ngOnInit(): void;
4810
+ constructor();
4487
4811
  ngAfterViewInit(): void;
4488
4812
  /**
4489
4813
  * Handle isAtBottom change from StickToBottom directive
@@ -4508,7 +4832,7 @@ declare class CopilotChatViewScrollView implements OnInit, AfterViewInit, OnDest
4508
4832
  scrollToBottomContext(): any;
4509
4833
  scrollToBottomFromStickContext(): any;
4510
4834
  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>;
4835
+ 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
4836
  }
4513
4837
 
4514
4838
  /**
@@ -4580,7 +4904,7 @@ declare class CopilotChatView implements OnInit, OnChanges, AfterViewInit, OnDes
4580
4904
  private cdr;
4581
4905
  private handlers;
4582
4906
  protected readonly chatState: ChatState;
4583
- protected readonly UploadIcon: lucide_angular.LucideIconData;
4907
+ protected readonly UploadIcon: CopilotIconData;
4584
4908
  messages: _angular_core.InputSignal<({
4585
4909
  role: "developer";
4586
4910
  content: string;
@@ -4690,6 +5014,8 @@ declare class CopilotChatView implements OnInit, OnChanges, AfterViewInit, OnDes
4690
5014
  id: string;
4691
5015
  encryptedValue?: string | undefined;
4692
5016
  })[]>;
5017
+ /** Current agent state forwarded to message-view extension slots. */
5018
+ state: _angular_core.InputSignal<unknown>;
4693
5019
  agentId: _angular_core.InputSignal<string>;
4694
5020
  autoScroll: _angular_core.InputSignal<boolean>;
4695
5021
  showCursor: _angular_core.InputSignal<boolean>;
@@ -4697,6 +5023,15 @@ declare class CopilotChatView implements OnInit, OnChanges, AfterViewInit, OnDes
4697
5023
  messageViewComponent: _angular_core.InputSignal<Type<any>>;
4698
5024
  messageViewTemplate: _angular_core.InputSignal<TemplateRef<any>>;
4699
5025
  messageViewClass: _angular_core.InputSignal<string>;
5026
+ assistantMessageComponent: _angular_core.InputSignal<Type<any>>;
5027
+ assistantMessageTemplate: _angular_core.InputSignal<TemplateRef<any>>;
5028
+ assistantMessageClass: _angular_core.InputSignal<string>;
5029
+ reasoningMessageComponent: _angular_core.InputSignal<Type<any>>;
5030
+ reasoningMessageTemplate: _angular_core.InputSignal<TemplateRef<any>>;
5031
+ reasoningMessageClass: _angular_core.InputSignal<string>;
5032
+ messageViewChildrenComponent: _angular_core.InputSignal<Type<any>>;
5033
+ messageViewChildrenTemplate: _angular_core.InputSignal<TemplateRef<any>>;
5034
+ messageViewChildrenClass: _angular_core.InputSignal<string>;
4700
5035
  scrollViewComponent: _angular_core.InputSignal<Type<any>>;
4701
5036
  scrollViewTemplate: _angular_core.InputSignal<TemplateRef<any>>;
4702
5037
  scrollViewClass: _angular_core.InputSignal<string>;
@@ -4726,22 +5061,22 @@ declare class CopilotChatView implements OnInit, OnChanges, AfterViewInit, OnDes
4726
5061
  readAloudButtonTemplate?: TemplateRef<any>;
4727
5062
  regenerateButtonTemplate?: TemplateRef<any>;
4728
5063
  assistantMessageThumbsUp: _angular_core.OutputEmitterRef<{
4729
- message: Message$1;
5064
+ message: Message;
4730
5065
  }>;
4731
5066
  assistantMessageThumbsDown: _angular_core.OutputEmitterRef<{
4732
- message: Message$1;
5067
+ message: Message;
4733
5068
  }>;
4734
5069
  assistantMessageReadAloud: _angular_core.OutputEmitterRef<{
4735
- message: Message$1;
5070
+ message: Message;
4736
5071
  }>;
4737
5072
  assistantMessageRegenerate: _angular_core.OutputEmitterRef<{
4738
- message: Message$1;
5073
+ message: Message;
4739
5074
  }>;
4740
5075
  userMessageCopy: _angular_core.OutputEmitterRef<{
4741
- message: Message$1;
5076
+ message: Message;
4742
5077
  }>;
4743
5078
  userMessageEdit: _angular_core.OutputEmitterRef<{
4744
- message: Message$1;
5079
+ message: Message;
4745
5080
  }>;
4746
5081
  inputContainerSlotRef?: ElementRef;
4747
5082
  protected readonly defaultScrollViewComponent: typeof CopilotChatViewScrollView;
@@ -4991,9 +5326,19 @@ declare class CopilotChatView implements OnInit, OnChanges, AfterViewInit, OnDes
4991
5326
  id: string;
4992
5327
  encryptedValue?: string | undefined;
4993
5328
  })[];
5329
+ state: unknown;
4994
5330
  agentId: string;
4995
5331
  messageView: Type<any> | TemplateRef<any>;
4996
5332
  messageViewClass: string;
5333
+ assistantMessageComponent: Type<any>;
5334
+ assistantMessageTemplate: TemplateRef<any>;
5335
+ assistantMessageClass: string;
5336
+ reasoningMessageComponent: Type<any>;
5337
+ reasoningMessageTemplate: TemplateRef<any>;
5338
+ reasoningMessageClass: string;
5339
+ messageViewChildrenComponent: Type<any>;
5340
+ messageViewChildrenTemplate: TemplateRef<any>;
5341
+ messageViewChildrenClass: string;
4997
5342
  }>;
4998
5343
  protected inputContainerContext: _angular_core.Signal<{
4999
5344
  input: Type<any> | TemplateRef<any>;
@@ -5013,24 +5358,32 @@ declare class CopilotChatView implements OnInit, OnChanges, AfterViewInit, OnDes
5013
5358
  }>;
5014
5359
  private destroy$;
5015
5360
  private resizeTimeoutRef?;
5361
+ private measurementRetryTimeoutRef?;
5362
+ private readonly ngZone;
5363
+ private destroyed;
5016
5364
  constructor(resizeObserverService: ResizeObserverService, cdr: ChangeDetectorRef, handlers: CopilotChatViewHandlers);
5017
5365
  ngOnInit(): void;
5018
5366
  ngOnChanges(): void;
5019
5367
  ngAfterViewInit(): void;
5368
+ /** Schedules a cancellable layout retry without triggering zone-wide ticks. */
5369
+ private scheduleMeasurementRetry;
5020
5370
  ngOnDestroy(): void;
5021
5371
  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>;
5372
+ 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
5373
  }
5024
5374
 
5025
5375
  /**
5026
5376
  * Props for CopilotChatView component
5027
5377
  */
5028
5378
  interface CopilotChatViewProps {
5029
- messages?: Message$1[];
5379
+ messages?: Message[];
5030
5380
  autoScroll?: boolean;
5031
5381
  messageViewComponent?: Type<any>;
5032
5382
  messageViewTemplate?: TemplateRef<any>;
5033
5383
  messageViewClass?: string;
5384
+ messageViewChildrenComponent?: Type<any>;
5385
+ messageViewChildrenTemplate?: TemplateRef<any>;
5386
+ messageViewChildrenClass?: string;
5034
5387
  scrollViewComponent?: Type<any>;
5035
5388
  scrollViewTemplate?: TemplateRef<any>;
5036
5389
  scrollViewClass?: string;
@@ -5357,6 +5710,68 @@ declare class CopilotThreadsDrawer {
5357
5710
  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
5711
  }
5359
5712
 
5713
+ /** Accessible, responsive floating chat surface with an explicit open model. */
5714
+ declare class CopilotPopup {
5715
+ readonly open: _angular_core.ModelSignal<boolean>;
5716
+ readonly title: _angular_core.InputSignal<string>;
5717
+ readonly width: _angular_core.InputSignal<string | number>;
5718
+ readonly height: _angular_core.InputSignal<string | number>;
5719
+ readonly clickOutsideToClose: _angular_core.InputSignal<boolean>;
5720
+ readonly chatComponent: _angular_core.InputSignal<Type<unknown>>;
5721
+ readonly headerComponent: _angular_core.InputSignal<Type<unknown>>;
5722
+ protected readonly dialogId: string;
5723
+ protected readonly titleId: string;
5724
+ protected readonly resolvedWidth: _angular_core.Signal<string>;
5725
+ protected readonly resolvedHeight: _angular_core.Signal<string>;
5726
+ private readonly launcher;
5727
+ private readonly initialFocus;
5728
+ constructor();
5729
+ protected toggle(): void;
5730
+ protected closeFromBackdrop(): void;
5731
+ protected close(): void;
5732
+ private focusModal;
5733
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotPopup, never>;
5734
+ 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>;
5735
+ }
5736
+
5737
+ type CopilotSidebarMode = "docked" | "overlay";
5738
+ type CopilotSidebarPosition = "left" | "right";
5739
+ /** Responsive chat sidebar with independent overlay and single-owner docked modes. */
5740
+ declare class CopilotSidebar {
5741
+ readonly open: _angular_core.ModelSignal<boolean>;
5742
+ readonly mode: _angular_core.InputSignal<CopilotSidebarMode>;
5743
+ readonly position: _angular_core.InputSignal<CopilotSidebarPosition>;
5744
+ readonly width: _angular_core.InputSignal<string | number>;
5745
+ readonly title: _angular_core.InputSignal<string>;
5746
+ readonly clickOutsideToClose: _angular_core.InputSignal<boolean>;
5747
+ readonly chatComponent: _angular_core.InputSignal<Type<unknown>>;
5748
+ readonly headerComponent: _angular_core.InputSignal<Type<unknown>>;
5749
+ protected readonly sidebarId: string;
5750
+ protected readonly titleId: string;
5751
+ protected readonly resolvedWidth: _angular_core.Signal<string>;
5752
+ protected readonly isCompact: _angular_core.WritableSignal<boolean>;
5753
+ protected readonly isModal: _angular_core.Signal<boolean>;
5754
+ protected readonly dockAccepted: _angular_core.WritableSignal<boolean>;
5755
+ private readonly owner;
5756
+ private readonly registry;
5757
+ private readonly document;
5758
+ private readonly isBrowser;
5759
+ private readonly destroyRef;
5760
+ private readonly launcher;
5761
+ private readonly initialFocus;
5762
+ private ownsDock;
5763
+ constructor();
5764
+ protected toggle(): void;
5765
+ protected closeFromBackdrop(): void;
5766
+ protected close(): void;
5767
+ private releaseDock;
5768
+ private focusModal;
5769
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotSidebar, never>;
5770
+ 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>;
5771
+ }
5772
+
5773
+ type A2UIOperation = Record<string, unknown>;
5774
+
5360
5775
  declare class CopilotA2UIActivityRenderer implements ActivityRenderer<unknown> {
5361
5776
  readonly activityType: _angular_core.InputSignal<string>;
5362
5777
  readonly content: _angular_core.InputSignal<unknown>;
@@ -5369,7 +5784,14 @@ declare class CopilotA2UIActivityRenderer implements ActivityRenderer<unknown> {
5369
5784
  readonly agent: _angular_core.InputSignal<AbstractAgent>;
5370
5785
  private readonly surfaceRef;
5371
5786
  private readonly copilotKit;
5372
- private readonly config;
5787
+ protected readonly config: _copilotkit_angular.CopilotKitConfig;
5788
+ private readonly platformId;
5789
+ private readonly zone;
5790
+ protected readonly operations: _angular_core.Signal<A2UIOperation[]>;
5791
+ protected readonly hasOperations: _angular_core.Signal<boolean>;
5792
+ protected readonly surfaceReady: _angular_core.WritableSignal<boolean>;
5793
+ protected readonly loaderContent: _angular_core.WritableSignal<unknown>;
5794
+ private readonly markSurfaceReady;
5373
5795
  constructor();
5374
5796
  protected handleAction(event: Event): Promise<void>;
5375
5797
  protected handleError(event: Event): void;
@@ -5385,13 +5807,43 @@ declare class CopilotA2UIActivityRenderer implements ActivityRenderer<unknown> {
5385
5807
  declare class CopilotA2UIProgress {
5386
5808
  readonly phase: _angular_core.InputSignal<number>;
5387
5809
  readonly tokens: _angular_core.InputSignal<number>;
5810
+ readonly label: _angular_core.InputSignal<string>;
5388
5811
  protected topbarBarClass(): string;
5389
5812
  protected rowClass(phase: number, delayClass: string): string;
5390
5813
  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>;
5814
+ 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
5815
  }
5393
5816
 
5394
- type A2UIOperation = Record<string, unknown>;
5817
+ type A2UIDebugExposure = "hidden" | "collapsed" | "verbose";
5818
+ type A2UILifecycleStatus = "building" | "retrying" | "failed";
5819
+ interface A2UILifecycleContent {
5820
+ status: A2UILifecycleStatus;
5821
+ attempt?: number;
5822
+ maxAttempts?: number;
5823
+ progressTokens?: number;
5824
+ error?: string;
5825
+ errors?: unknown[];
5826
+ attempts?: unknown[];
5827
+ debugExposure?: A2UIDebugExposure;
5828
+ }
5829
+ /** Read only the server-owned A2UI lifecycle fields from activity content. */
5830
+ declare function readA2UILifecycleContent(content: unknown): A2UILifecycleContent;
5831
+ /** Pre-paint building, retry, and failure UI for a stable A2UI activity. */
5832
+ declare class CopilotA2UIRecovery {
5833
+ #private;
5834
+ readonly content: _angular_core.InputSignal<unknown>;
5835
+ readonly options: _angular_core.InputSignal<A2UIRecoveryOptions>;
5836
+ readonly lifecycle: _angular_core.Signal<A2UILifecycleContent>;
5837
+ readonly retryRevealed: _angular_core.WritableSignal<boolean>;
5838
+ readonly debugExposure: _angular_core.Signal<A2UIDebugExposure>;
5839
+ readonly label: _angular_core.Signal<string>;
5840
+ readonly phase: _angular_core.Signal<0 | 1 | 2 | 3>;
5841
+ readonly failureDiagnostics: _angular_core.Signal<string>;
5842
+ readonly retryDiagnostics: _angular_core.Signal<string>;
5843
+ constructor();
5844
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotA2UIRecovery, never>;
5845
+ 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>;
5846
+ }
5395
5847
 
5396
5848
  declare const RENDER_A2UI_TOOL_NAME = "render_a2ui";
5397
5849
  declare const AGUI_SEND_STATE_SNAPSHOT_TOOL_NAME = "AGUISendStateSnapshot";
@@ -5422,7 +5874,7 @@ declare class CopilotA2UIToolRenderer implements ToolRenderer<RenderA2UIArgs> {
5422
5874
  type WebsandboxConstructor = typeof Websandbox;
5423
5875
 
5424
5876
  declare const OPEN_GENERATIVE_UI_WEBSANDBOX_LOADER: InjectionToken<() => Promise<WebsandboxConstructor>>;
5425
- declare class CopilotOpenGenerativeUIRenderer {
5877
+ declare class CopilotOpenGenerativeUIRenderer implements OnChanges {
5426
5878
  readonly content: _angular_core.InputSignal<{
5427
5879
  html?: string[];
5428
5880
  initialHeight?: number;
@@ -5464,6 +5916,10 @@ declare class CopilotOpenGenerativeUIRenderer {
5464
5916
  protected readonly isGenerating: _angular_core.Signal<boolean>;
5465
5917
  private readonly renderState;
5466
5918
  constructor();
5919
+ /** Applies input updates synchronously before the matching render pass. */
5920
+ ngOnChanges(): void;
5921
+ /** Commits content and synchronously removes stale sandbox DOM on restart. */
5922
+ private commitContent;
5467
5923
  private clearThrottle;
5468
5924
  private loadWebsandbox;
5469
5925
  private createLocalApi;
@@ -5528,5 +5984,5 @@ declare class CopilotOpenGenerativeUIToolRenderer implements ToolRenderer<Genera
5528
5984
  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
5985
  }
5530
5986
 
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 };
5987
+ 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 };
5988
+ 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 };