@copilotkit/angular 0.5.2 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,15 @@
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, SimpleChanges, AfterViewInit, ChangeDetectorRef, EventEmitter } from '@angular/core';
3
- import { AbstractAgent, ActivityMessage, ToolCall, Interrupt, ResumeEntry, RunAgentResult, Message, Context, AssistantMessage } from '@ag-ui/client';
3
+ import { AbstractAgent, ActivityMessage, AssistantMessage, Message, ToolCall, Interrupt, ResumeEntry, RunAgentResult, Context } from '@ag-ui/client';
4
4
  export { AssistantMessage, Message } from '@ag-ui/client';
5
- import { FrontendTool, FrontendToolHandlerContext, WebMCPToolConfig, SuggestionsConfig, CopilotKitCoreRuntimeConnectionStatus, CopilotRuntimeTransport, ThreadEndpointRuntimeInfo, IntelligenceRuntimeInfo, RuntimeLicenseStatus, CopilotKitCoreGetSuggestionsResult, CopilotKitCore, Suggestion, Memory, MemoryRealtimeStatus, NewMemory, MemoryChanges } from '@copilotkit/core';
5
+ import { FrontendTool, FrontendToolHandlerContext, FrontendToolReconnectBehavior, WebMCPToolConfig, CopilotKitHeadersSource, CopilotKitMessageFilter, SuggestionsConfig, CopilotKitCoreRuntimeConnectionStatus, CopilotRuntimeTransport, ThreadEndpointRuntimeInfo, IntelligenceRuntimeInfo, RuntimeLicenseStatus, CopilotKitCoreGetSuggestionsResult, CopilotKitCore, Suggestion, Memory, MemoryRealtimeStatus, NewMemory, MemoryChanges } from '@copilotkit/core';
6
6
  export { DynamicSuggestionsConfig, Memory, MemoryChanges, MemoryKind, MemoryScope, NewMemory, StaticSuggestionsConfig, Suggestion, SuggestionsConfig } from '@copilotkit/core';
7
7
  import { StandardSchemaV1, RuntimeEntitlementResponse, Attachment, TranscriptionErrorCode, AttachmentsConfig, AttachmentModality, InputContent, ImageInputPart, AudioInputPart, VideoInputPart, DocumentInputPart } from '@copilotkit/shared';
8
- export { Attachment, AttachmentModality, AttachmentUploadError, AttachmentUploadResult, AttachmentsConfig, TranscriptionErrorCode } from '@copilotkit/shared';
8
+ export { Attachment, AttachmentModality, AttachmentUploadError, AttachmentUploadResult, AttachmentsConfig, GENERATE_SANDBOXED_UI_DESCRIPTION, TranscriptionErrorCode } from '@copilotkit/shared';
9
9
  import { z } from 'zod';
10
- import { Theme, Catalog, LitComponentImplementation, LitRenderable } from '@copilotkit/a2ui-renderer/web-components';
11
- import { AgentCapabilities, UserMessage, Message as Message$1, ReasoningMessage, ActivityMessage as ActivityMessage$1 } from '@ag-ui/core';
10
+ import { CatalogInterface, ComponentApi, A2uiClientAction } from '@a2ui/web_core/v0_9';
11
+ import * as _ag_ui_core from '@ag-ui/core';
12
+ import { AgentCapabilities, AssistantMessage as AssistantMessage$1, Message as Message$1, UserMessage, ReasoningMessage, ActivityMessage as ActivityMessage$1 } from '@ag-ui/core';
12
13
  import { ScrollDispatcher, ViewportRuler } from '@angular/cdk/scrolling';
13
14
  import { Observable } from 'rxjs';
14
15
  import { ClassValue } from 'clsx';
@@ -85,6 +86,12 @@ interface FrontendToolConfig<Args extends Record<string, unknown> = Record<strin
85
86
  */
86
87
  handler?: (args: Args, context: FrontendToolHandlerContext) => Promise<unknown>;
87
88
  followUp?: boolean;
89
+ /**
90
+ * Whether to run the handler again for a call that is still unanswered when
91
+ * the thread's history is restored. Defaults to `"passive"`. See
92
+ * `FrontendToolReconnectBehavior` in `@copilotkit/core`.
93
+ */
94
+ reconnectBehavior?: FrontendToolReconnectBehavior;
88
95
  agentId?: string;
89
96
  /**
90
97
  * Also expose this tool to browser agents through the WebMCP API
@@ -184,7 +191,7 @@ declare function registerRenderActivityMessage(config: RenderActivityMessageConf
184
191
  declare const OPEN_GENERATIVE_UI_ACTIVITY_TYPE = "open-generative-ui";
185
192
  declare const GENERATE_SANDBOXED_UI_TOOL_NAME = "generateSandboxedUi";
186
193
  declare const DEFAULT_OPEN_GENERATIVE_UI_DESIGN_SKILL = "When generating UI with generateSandboxedUi, follow these design principles inspired by shadcn/ui:\n\n- Use a minimal, flat aesthetic. Avoid drop shadows and gradients \u2014 rely on subtle borders (1px solid, light gray like #e5e7eb) to define surfaces.\n- Neutral base palette: white backgrounds, zinc/slate gray text (#09090b for headings, #71717a for secondary text). One accent color for interactive elements.\n- Use system font stacks (system-ui, -apple-system, sans-serif) at readable sizes (14px body, 600 weight for headings). Tight line-heights.\n- Small, consistent border-radius (6\u20138px). Cards and containers use border, not shadow, for separation.\n- Buttons: solid fill for primary (dark bg, white text), outline for secondary (border + transparent bg). Subtle hover state (slight opacity or background shift).\n- Use CSS Grid or Flexbox for layout. Ensure the UI looks good at any width.\n- Minimal transitions (150ms) for hover/focus states only. No decorative animations.\n- Keep the UI focused and dense \u2014 avoid excessive padding. Use compact spacing (8\u201312px gaps, 10\u201314px padding in controls).";
187
- declare const GENERATE_SANDBOXED_UI_DESCRIPTION: string;
194
+
188
195
  declare const OpenGenerativeUIContentSchema: z.ZodObject<{
189
196
  initialHeight: z.ZodOptional<z.ZodNumber>;
190
197
  generating: z.ZodOptional<z.ZodBoolean>;
@@ -254,10 +261,36 @@ interface OpenGenerativeUIConfig {
254
261
  designSkill?: string;
255
262
  }
256
263
 
264
+ /**
265
+ * What a surface emits when the user triggers an action. CopilotKit sends it
266
+ * to the agent as the `a2uiAction` run property.
267
+ */
268
+ interface A2UIClientEventMessage {
269
+ userAction: A2uiClientAction;
270
+ }
271
+ interface A2UISurfaceError {
272
+ error: unknown;
273
+ message: string;
274
+ }
275
+ /**
276
+ * What surfaces render with: `basicCatalog`, or one from `createAngularCatalog`,
277
+ * both in `@copilotkit/angular/a2ui`. The main entry point mounts its
278
+ * `surfaceComponent`, so it never imports the `/a2ui` entry point.
279
+ */
280
+ interface A2UICatalog extends CatalogInterface<ComponentApi> {
281
+ readonly surfaceComponent: Type<unknown>;
282
+ }
283
+
257
284
  interface A2UIConfig {
258
- theme?: Theme;
259
- catalog?: Catalog<LitComponentImplementation>;
260
- loadingComponent?: () => LitRenderable;
285
+ theme?: Record<string, unknown>;
286
+ /**
287
+ * The catalog surfaces render with: `basicCatalog`, or one from
288
+ * `createAngularCatalog`, both in `@copilotkit/angular/a2ui`. Without one,
289
+ * A2UI stays off, even when the runtime enables it.
290
+ */
291
+ catalog?: A2UICatalog;
292
+ /** Shown until the first surface renders. */
293
+ loadingComponent?: Type<unknown>;
261
294
  includeSchema?: boolean;
262
295
  recovery?: A2UIRecoveryOptions;
263
296
  }
@@ -271,9 +304,37 @@ interface A2UIRecoveryOptions {
271
304
  }
272
305
  interface CopilotKitConfig {
273
306
  runtimeUrl?: string;
274
- headers?: Record<string, string>;
307
+ /**
308
+ * Headers sent with every runtime request: a record, or a sync or async
309
+ * builder evaluated when each request is sent. See #1937.
310
+ */
311
+ headers?: CopilotKitHeadersSource;
275
312
  /** Fetch credentials mode used for CopilotKit runtime requests. */
276
313
  credentials?: RequestCredentials;
314
+ /**
315
+ * Rewrites the message list sent to runtime agents on every run.
316
+ *
317
+ * CopilotKit sends the whole thread each time. When your agent already
318
+ * stores the conversation, most of that payload is waste, and an agent that
319
+ * merges the inbound list with its own store can show the model every turn
320
+ * twice. Return the messages to send:
321
+ *
322
+ * ```ts
323
+ * provideCopilotKit({
324
+ * runtimeUrl: "/api/copilotkit",
325
+ * messageFilter: (messages) => messages.slice(-1),
326
+ * });
327
+ * ```
328
+ *
329
+ * The filter changes the request body only. The transcript the UI renders is
330
+ * untouched. Broken tool-call pairs are repaired before the request is sent,
331
+ * so a filter this blunt cannot strand a tool result mid-HITL.
332
+ *
333
+ * Agents reached through your CopilotRuntime honor this. An agent your app
334
+ * passes in directly does not, and neither Intelligence runs nor suggestion
335
+ * runs are ever filtered.
336
+ */
337
+ messageFilter?: CopilotKitMessageFilter;
277
338
  licenseKey?: string;
278
339
  properties?: Record<string, unknown>;
279
340
  agents?: Record<string, AbstractAgent>;
@@ -297,6 +358,18 @@ interface CopilotKitConfig {
297
358
  }
298
359
  declare const COPILOT_KIT_CONFIG: InjectionToken<CopilotKitConfig>;
299
360
  declare function injectCopilotKitConfig(): CopilotKitConfig;
361
+ /**
362
+ * The public-key header default `provideCopilotKit` used to merge directly
363
+ * into `config.headers` (main's behavior, record-only). Now that `headers`
364
+ * can be a builder (#1937), the merge can't happen here — a builder is only
365
+ * evaluated at send time — so `copilotkit.ts` applies these defaults itself,
366
+ * via `ɵwithHeaderDefaults`, where `CopilotKitCore` is constructed and
367
+ * wherever `setHeaders` is called. Kept in this file (rather than
368
+ * `copilotkit.ts`) so the license-key condition has one definition, shared
369
+ * with `resolveLicense`'s watermark check below; this function itself stays
370
+ * a plain computation with no `@copilotkit/core` value import.
371
+ */
372
+ declare function ɵresolvePublicKeyHeaderDefaults(config: CopilotKitConfig): Record<string, string>;
300
373
  declare function provideCopilotKit(config?: CopilotKitConfig): Provider;
301
374
 
302
375
  declare class CopilotKit {
@@ -307,7 +380,26 @@ declare class CopilotKit {
307
380
  readonly runtimeConnectionStatus: Signal<CopilotKitCoreRuntimeConnectionStatus>;
308
381
  readonly runtimeUrl: Signal<string | undefined>;
309
382
  readonly runtimeTransport: Signal<CopilotRuntimeTransport>;
383
+ /**
384
+ * Snapshot as of the last header SOURCE change (a `setHeaders()`/
385
+ * `updateRuntime({ headers })` call) — not necessarily current for a
386
+ * builder. It updates from `onHeadersChanged`, which fires only on a real
387
+ * source change, never on a builder merely resolving a fresh token during a
388
+ * run. With a builder this can read `{}` (or a stale record) between
389
+ * source changes even though requests are already carrying the current
390
+ * token (#1937). For the value a builder would resolve right now, call
391
+ * `copilotkit.core.resolveHeaders()` instead.
392
+ */
310
393
  readonly headers: Signal<Record<string, string>>;
394
+ /**
395
+ * Bumped only when `setHeaders` accepts a real source change (a new
396
+ * builder identity, or a record whose normalized values actually differ) —
397
+ * never when a builder merely resolves a new token. Set from
398
+ * `onHeadersChanged`, which fires only from a real `setHeaders()` call, so
399
+ * subscribers can key thread-context dispatch and agent header refresh on
400
+ * this signal instead of on header VALUES (see #1937).
401
+ */
402
+ readonly ɵheadersGeneration: Signal<number>;
311
403
  readonly credentials: Signal<RequestCredentials | undefined>;
312
404
  /**
313
405
  * Thread-endpoint capability advertised by the connected runtime's `/info`
@@ -316,6 +408,12 @@ declare class CopilotKit {
316
408
  * consumers re-run when `/info` lands.
317
409
  */
318
410
  readonly threadEndpoints: Signal<ThreadEndpointRuntimeInfo | undefined>;
411
+ /**
412
+ * Voice transcription capability advertised by the connected runtime's
413
+ * `/info` response. The value remains false until the runtime explicitly
414
+ * reports support.
415
+ */
416
+ readonly audioFileTranscriptionEnabled: Signal<boolean>;
319
417
  /**
320
418
  * Intelligence runtime info advertised by the connected runtime's `/info`
321
419
  * response, or `undefined` before the runtime reports `Connected`. Carries
@@ -366,8 +464,9 @@ declare class CopilotKit {
366
464
  updateRuntime(options: {
367
465
  runtimeUrl?: string;
368
466
  runtimeTransport?: CopilotRuntimeTransport;
369
- headers?: Record<string, string>;
467
+ headers?: CopilotKitHeadersSource;
370
468
  credentials?: RequestCredentials;
469
+ messageFilter?: CopilotKitMessageFilter;
371
470
  properties?: Record<string, unknown>;
372
471
  agents?: Record<string, AbstractAgent>;
373
472
  selfManagedAgents?: Record<string, AbstractAgent>;
@@ -424,149 +523,8 @@ interface PickToolCallHandlerOptions {
424
523
  declare function pickToolCallHandler(options: PickToolCallHandlerOptions): ToolCallHandler | undefined;
425
524
  declare class RenderToolCalls {
426
525
  #private;
427
- readonly message: _angular_core.InputSignal<{
428
- id: string;
429
- role: "assistant";
430
- name?: string | undefined;
431
- encryptedValue?: string | undefined;
432
- metadata?: Record<string, any> | undefined;
433
- content?: string | undefined;
434
- subagentRunId?: string | undefined;
435
- toolCalls?: {
436
- function: {
437
- name: string;
438
- arguments: string;
439
- };
440
- type: "function";
441
- id: string;
442
- encryptedValue?: string | undefined;
443
- metadata?: Record<string, any> | undefined;
444
- }[] | undefined;
445
- }>;
446
- readonly messages: _angular_core.InputSignal<({
447
- id: string;
448
- role: "developer";
449
- content: string;
450
- name?: string | undefined;
451
- encryptedValue?: string | undefined;
452
- metadata?: Record<string, any> | undefined;
453
- subagentRunId?: string | undefined;
454
- } | {
455
- id: string;
456
- role: "system";
457
- content: string;
458
- name?: string | undefined;
459
- encryptedValue?: string | undefined;
460
- metadata?: Record<string, any> | undefined;
461
- subagentRunId?: string | undefined;
462
- } | {
463
- id: string;
464
- role: "assistant";
465
- name?: string | undefined;
466
- encryptedValue?: string | undefined;
467
- metadata?: Record<string, any> | undefined;
468
- content?: string | undefined;
469
- subagentRunId?: string | undefined;
470
- toolCalls?: {
471
- function: {
472
- name: string;
473
- arguments: string;
474
- };
475
- type: "function";
476
- id: string;
477
- encryptedValue?: string | undefined;
478
- metadata?: Record<string, any> | undefined;
479
- }[] | undefined;
480
- } | {
481
- id: string;
482
- role: "user";
483
- content: string | ({
484
- type: "text";
485
- text: string;
486
- } | {
487
- type: "image";
488
- source: {
489
- value: string;
490
- type: "data";
491
- mimeType: string;
492
- } | {
493
- value: string;
494
- type: "url";
495
- mimeType?: string | undefined;
496
- };
497
- metadata?: unknown;
498
- } | {
499
- type: "audio";
500
- source: {
501
- value: string;
502
- type: "data";
503
- mimeType: string;
504
- } | {
505
- value: string;
506
- type: "url";
507
- mimeType?: string | undefined;
508
- };
509
- metadata?: unknown;
510
- } | {
511
- type: "video";
512
- source: {
513
- value: string;
514
- type: "data";
515
- mimeType: string;
516
- } | {
517
- value: string;
518
- type: "url";
519
- mimeType?: string | undefined;
520
- };
521
- metadata?: unknown;
522
- } | {
523
- type: "document";
524
- source: {
525
- value: string;
526
- type: "data";
527
- mimeType: string;
528
- } | {
529
- value: string;
530
- type: "url";
531
- mimeType?: string | undefined;
532
- };
533
- metadata?: unknown;
534
- } | {
535
- type: "binary";
536
- mimeType: string;
537
- id?: string | undefined;
538
- data?: string | undefined;
539
- url?: string | undefined;
540
- filename?: string | undefined;
541
- })[];
542
- name?: string | undefined;
543
- encryptedValue?: string | undefined;
544
- metadata?: Record<string, any> | undefined;
545
- subagentRunId?: string | undefined;
546
- } | {
547
- id: string;
548
- role: "tool";
549
- content: string;
550
- toolCallId: string;
551
- encryptedValue?: string | undefined;
552
- metadata?: Record<string, any> | undefined;
553
- subagentRunId?: string | undefined;
554
- error?: string | undefined;
555
- } | {
556
- id: string;
557
- role: "activity";
558
- content: Record<string, any>;
559
- activityType: string;
560
- metadata?: Record<string, any> | undefined;
561
- subagentRunId?: string | undefined;
562
- } | {
563
- id: string;
564
- role: "reasoning";
565
- content: string;
566
- encryptedValue?: string | undefined;
567
- metadata?: Record<string, any> | undefined;
568
- subagentRunId?: string | undefined;
569
- })[]>;
526
+ readonly message: _angular_core.InputSignal<AssistantMessage>;
527
+ readonly messages: _angular_core.InputSignal<Message[]>;
570
528
  readonly isLoading: _angular_core.InputSignal<boolean>;
571
529
  readonly agentId: _angular_core.InputSignal<string | undefined>;
572
530
  protected pickRenderer(name: string): ToolCallHandler | undefined;
@@ -635,26 +593,8 @@ declare class InterruptExpiredError extends Error {
635
593
  declare class InterruptController<TValue = unknown, TResult = never> {
636
594
  #private;
637
595
  readonly event: Signal<InterruptEvent<TValue> | null>;
638
- readonly interrupt: Signal<{
639
- id: string;
640
- reason: string;
641
- message?: string | undefined;
642
- metadata?: Record<string, any> | undefined;
643
- subagentRunId?: string | undefined;
644
- toolCallId?: string | undefined;
645
- responseSchema?: Record<string, any> | undefined;
646
- expiresAt?: string | undefined;
647
- } | null>;
648
- readonly interrupts: Signal<readonly {
649
- id: string;
650
- reason: string;
651
- message?: string | undefined;
652
- metadata?: Record<string, any> | undefined;
653
- subagentRunId?: string | undefined;
654
- toolCallId?: string | undefined;
655
- responseSchema?: Record<string, any> | undefined;
656
- expiresAt?: string | undefined;
657
- }[]>;
596
+ readonly interrupt: Signal<Interrupt | null>;
597
+ readonly interrupts: Signal<readonly Interrupt[]>;
658
598
  readonly result: Signal<TResult | null>;
659
599
  readonly error: Signal<unknown>;
660
600
  readonly hasInterrupt: Signal<boolean>;
@@ -1573,7 +1513,7 @@ declare function createSlotRenderer<T>(defaultComponent: Type<T>, slotName?: str
1573
1513
  * - A component slot (or `defaultComponent`) is created with `context` keys
1574
1514
  * bound to its matching inputs and `outputs` handlers bound to its matching
1575
1515
  * outputs. Bound values stay live; the component is only recreated when the
1576
- * resolved type or set of bound input names changes.
1516
+ * resolved type, the set of bound input names, or the `injector` changes.
1577
1517
  * - With neither a slot nor a default component, the projected content shows.
1578
1518
  *
1579
1519
  * @example
@@ -1588,13 +1528,15 @@ declare class CopilotSlot {
1588
1528
  readonly context: _angular_core.InputSignal<object | undefined>;
1589
1529
  readonly defaultComponent: _angular_core.InputSignal<Type<unknown> | undefined>;
1590
1530
  readonly outputs: _angular_core.InputSignal<SlotOutputs | undefined>;
1531
+ /** Element injector for the created component. */
1532
+ readonly injector: _angular_core.InputSignal<Injector | undefined>;
1591
1533
  private readonly host;
1592
1534
  protected readonly template: _angular_core.Signal<TemplateRef<unknown> | undefined>;
1593
1535
  private readonly componentType;
1594
1536
  private readonly inputNames;
1595
1537
  constructor();
1596
1538
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotSlot, never>;
1597
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotSlot, "copilot-slot", never, { "slot": { "alias": "slot"; "required": false; "isSignal": true; }; "context": { "alias": "context"; "required": false; "isSignal": true; }; "defaultComponent": { "alias": "defaultComponent"; "required": false; "isSignal": true; }; "outputs": { "alias": "outputs"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
1539
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotSlot, "copilot-slot", never, { "slot": { "alias": "slot"; "required": false; "isSignal": true; }; "context": { "alias": "context"; "required": false; "isSignal": true; }; "defaultComponent": { "alias": "defaultComponent"; "required": false; "isSignal": true; }; "outputs": { "alias": "outputs"; "required": false; "isSignal": true; }; "injector": { "alias": "injector"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
1598
1540
  }
1599
1541
 
1600
1542
  /**
@@ -1803,141 +1745,20 @@ declare class CopilotChat extends ChatState {
1803
1745
  readonly cdr: ChangeDetectorRef;
1804
1746
  readonly injector: Injector;
1805
1747
  private readonly destroyRef;
1806
- protected messages: _angular_core.Signal<({
1807
- id: string;
1808
- role: "developer";
1809
- content: string;
1810
- name?: string | undefined;
1811
- encryptedValue?: string | undefined;
1812
- metadata?: Record<string, any> | undefined;
1813
- subagentRunId?: string | undefined;
1814
- } | {
1815
- id: string;
1816
- role: "system";
1817
- content: string;
1818
- name?: string | undefined;
1819
- encryptedValue?: string | undefined;
1820
- metadata?: Record<string, any> | undefined;
1821
- subagentRunId?: string | undefined;
1822
- } | {
1823
- id: string;
1824
- role: "assistant";
1825
- name?: string | undefined;
1826
- encryptedValue?: string | undefined;
1827
- metadata?: Record<string, any> | undefined;
1828
- content?: string | undefined;
1829
- subagentRunId?: string | undefined;
1830
- toolCalls?: {
1831
- function: {
1832
- name: string;
1833
- arguments: string;
1834
- };
1835
- type: "function";
1836
- id: string;
1837
- encryptedValue?: string | undefined;
1838
- metadata?: Record<string, any> | undefined;
1839
- }[] | undefined;
1840
- } | {
1841
- id: string;
1842
- role: "user";
1843
- content: string | ({
1844
- type: "text";
1845
- text: string;
1846
- } | {
1847
- type: "image";
1848
- source: {
1849
- value: string;
1850
- type: "data";
1851
- mimeType: string;
1852
- } | {
1853
- value: string;
1854
- type: "url";
1855
- mimeType?: string | undefined;
1856
- };
1857
- metadata?: unknown;
1858
- } | {
1859
- type: "audio";
1860
- source: {
1861
- value: string;
1862
- type: "data";
1863
- mimeType: string;
1864
- } | {
1865
- value: string;
1866
- type: "url";
1867
- mimeType?: string | undefined;
1868
- };
1869
- metadata?: unknown;
1870
- } | {
1871
- type: "video";
1872
- source: {
1873
- value: string;
1874
- type: "data";
1875
- mimeType: string;
1876
- } | {
1877
- value: string;
1878
- type: "url";
1879
- mimeType?: string | undefined;
1880
- };
1881
- metadata?: unknown;
1882
- } | {
1883
- type: "document";
1884
- source: {
1885
- value: string;
1886
- type: "data";
1887
- mimeType: string;
1888
- } | {
1889
- value: string;
1890
- type: "url";
1891
- mimeType?: string | undefined;
1892
- };
1893
- metadata?: unknown;
1894
- } | {
1895
- type: "binary";
1896
- mimeType: string;
1897
- id?: string | undefined;
1898
- data?: string | undefined;
1899
- url?: string | undefined;
1900
- filename?: string | undefined;
1901
- })[];
1902
- name?: string | undefined;
1903
- encryptedValue?: string | undefined;
1904
- metadata?: Record<string, any> | undefined;
1905
- subagentRunId?: string | undefined;
1906
- } | {
1907
- id: string;
1908
- role: "tool";
1909
- content: string;
1910
- toolCallId: string;
1911
- encryptedValue?: string | undefined;
1912
- metadata?: Record<string, any> | undefined;
1913
- subagentRunId?: string | undefined;
1914
- error?: string | undefined;
1915
- } | {
1916
- id: string;
1917
- role: "activity";
1918
- content: Record<string, any>;
1919
- activityType: string;
1920
- metadata?: Record<string, any> | undefined;
1921
- subagentRunId?: string | undefined;
1922
- } | {
1923
- id: string;
1924
- role: "reasoning";
1925
- content: string;
1926
- encryptedValue?: string | undefined;
1927
- metadata?: Record<string, any> | undefined;
1928
- subagentRunId?: string | undefined;
1929
- })[]>;
1748
+ private readonly connecting;
1749
+ private activeConnection?;
1750
+ protected readonly showCursor: _angular_core.Signal<boolean>;
1751
+ protected messages: _angular_core.Signal<Message[]>;
1930
1752
  protected agentState: _angular_core.Signal<unknown>;
1931
- protected isRunning: _angular_core.Signal<boolean>;
1932
1753
  protected readonly hasExplicitThreadId: _angular_core.Signal<boolean>;
1933
1754
  protected readonly agentRef: _angular_core.Signal<AbstractAgent>;
1934
1755
  protected readonly resolvedThreadId: _angular_core.Signal<string>;
1935
1756
  readonly attachmentsEnabled: _angular_core.Signal<boolean>;
1936
1757
  readonly attachmentsUploading: _angular_core.Signal<boolean>;
1937
- protected showCursor: _angular_core.WritableSignal<boolean>;
1938
1758
  private generatedThreadId;
1939
1759
  constructor();
1940
1760
  private connectToAgent;
1761
+ private waitForActiveRunToSettle;
1941
1762
  submitInput(value: string): Promise<void>;
1942
1763
  selectSuggestion(suggestion: Suggestion, _index: number): Promise<void>;
1943
1764
  changeInput(value: string): void;
@@ -1953,149 +1774,8 @@ declare class CopilotChat extends ChatState {
1953
1774
  }
1954
1775
 
1955
1776
  declare class CopilotChatToolCallsView {
1956
- readonly message: _angular_core.InputSignal<{
1957
- id: string;
1958
- role: "assistant";
1959
- name?: string | undefined;
1960
- encryptedValue?: string | undefined;
1961
- metadata?: Record<string, any> | undefined;
1962
- content?: string | undefined;
1963
- subagentRunId?: string | undefined;
1964
- toolCalls?: {
1965
- function: {
1966
- name: string;
1967
- arguments: string;
1968
- };
1969
- type: "function";
1970
- id: string;
1971
- encryptedValue?: string | undefined;
1972
- metadata?: Record<string, any> | undefined;
1973
- }[] | undefined;
1974
- }>;
1975
- readonly messages: _angular_core.InputSignal<({
1976
- id: string;
1977
- role: "developer";
1978
- content: string;
1979
- name?: string | undefined;
1980
- encryptedValue?: string | undefined;
1981
- metadata?: Record<string, any> | undefined;
1982
- subagentRunId?: string | undefined;
1983
- } | {
1984
- id: string;
1985
- role: "system";
1986
- content: string;
1987
- name?: string | undefined;
1988
- encryptedValue?: string | undefined;
1989
- metadata?: Record<string, any> | undefined;
1990
- subagentRunId?: string | undefined;
1991
- } | {
1992
- id: string;
1993
- role: "assistant";
1994
- name?: string | undefined;
1995
- encryptedValue?: string | undefined;
1996
- metadata?: Record<string, any> | undefined;
1997
- content?: string | undefined;
1998
- subagentRunId?: string | undefined;
1999
- toolCalls?: {
2000
- function: {
2001
- name: string;
2002
- arguments: string;
2003
- };
2004
- type: "function";
2005
- id: string;
2006
- encryptedValue?: string | undefined;
2007
- metadata?: Record<string, any> | undefined;
2008
- }[] | undefined;
2009
- } | {
2010
- id: string;
2011
- role: "user";
2012
- content: string | ({
2013
- type: "text";
2014
- text: string;
2015
- } | {
2016
- type: "image";
2017
- source: {
2018
- value: string;
2019
- type: "data";
2020
- mimeType: string;
2021
- } | {
2022
- value: string;
2023
- type: "url";
2024
- mimeType?: string | undefined;
2025
- };
2026
- metadata?: unknown;
2027
- } | {
2028
- type: "audio";
2029
- source: {
2030
- value: string;
2031
- type: "data";
2032
- mimeType: string;
2033
- } | {
2034
- value: string;
2035
- type: "url";
2036
- mimeType?: string | undefined;
2037
- };
2038
- metadata?: unknown;
2039
- } | {
2040
- type: "video";
2041
- source: {
2042
- value: string;
2043
- type: "data";
2044
- mimeType: string;
2045
- } | {
2046
- value: string;
2047
- type: "url";
2048
- mimeType?: string | undefined;
2049
- };
2050
- metadata?: unknown;
2051
- } | {
2052
- type: "document";
2053
- source: {
2054
- value: string;
2055
- type: "data";
2056
- mimeType: string;
2057
- } | {
2058
- value: string;
2059
- type: "url";
2060
- mimeType?: string | undefined;
2061
- };
2062
- metadata?: unknown;
2063
- } | {
2064
- type: "binary";
2065
- mimeType: string;
2066
- id?: string | undefined;
2067
- data?: string | undefined;
2068
- url?: string | undefined;
2069
- filename?: string | undefined;
2070
- })[];
2071
- name?: string | undefined;
2072
- encryptedValue?: string | undefined;
2073
- metadata?: Record<string, any> | undefined;
2074
- subagentRunId?: string | undefined;
2075
- } | {
2076
- id: string;
2077
- role: "tool";
2078
- content: string;
2079
- toolCallId: string;
2080
- encryptedValue?: string | undefined;
2081
- metadata?: Record<string, any> | undefined;
2082
- subagentRunId?: string | undefined;
2083
- error?: string | undefined;
2084
- } | {
2085
- id: string;
2086
- role: "activity";
2087
- content: Record<string, any>;
2088
- activityType: string;
2089
- metadata?: Record<string, any> | undefined;
2090
- subagentRunId?: string | undefined;
2091
- } | {
2092
- id: string;
2093
- role: "reasoning";
2094
- content: string;
2095
- encryptedValue?: string | undefined;
2096
- metadata?: Record<string, any> | undefined;
2097
- subagentRunId?: string | undefined;
2098
- })[]>;
1777
+ readonly message: _angular_core.InputSignal<AssistantMessage$1>;
1778
+ readonly messages: _angular_core.InputSignal<Message$1[]>;
2099
1779
  readonly agentId: _angular_core.InputSignal<string | undefined>;
2100
1780
  readonly isLoading: _angular_core.InputSignal<boolean>;
2101
1781
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatToolCallsView, never>;
@@ -2132,26 +1812,19 @@ interface CopilotChatAssistantMessageOnRegenerateProps {
2132
1812
  message: AssistantMessage;
2133
1813
  }
2134
1814
 
2135
- declare class CopilotChatAssistantMessageRenderer implements AfterViewInit {
1815
+ declare class CopilotChatAssistantMessageRenderer {
2136
1816
  readonly content: _angular_core.InputSignal<string>;
2137
1817
  readonly inputClass: _angular_core.InputSignal<string | undefined>;
2138
1818
  readonly labels: _copilotkit_angular.CopilotChatLabels;
2139
- markdownContainer?: ElementRef<HTMLDivElement>;
2140
- private elementRef;
2141
- private copyStates;
2142
- readonly renderedHtml: _angular_core.Signal<string>;
1819
+ private readonly markdownContainer;
1820
+ private readonly appRef;
1821
+ private readonly environmentInjector;
1822
+ private readonly injector;
1823
+ private codeBlockHeaders;
2143
1824
  constructor();
2144
- ngAfterViewInit(): void;
2145
- private updateContent;
2146
- private codeBlocksMap;
2147
- private markedInstance;
2148
- private initializeMarked;
2149
- private renderMarkdown;
2150
- private renderMathEquations;
2151
- handleClick(event: MouseEvent): void;
2152
- private copyCodeBlock;
2153
- private generateBlockId;
2154
- private escapeHtml;
1825
+ /** Wraps a rendered code block and mounts its header component above it. */
1826
+ private addCodeBlockHeader;
1827
+ private destroyCodeBlockHeaders;
2155
1828
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatAssistantMessageRenderer, never>;
2156
1829
  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>;
2157
1830
  }
@@ -2272,149 +1945,8 @@ declare class CopilotChatAssistantMessage {
2272
1945
  readonly readAloudButtonComponent: _angular_core.InputSignal<Type<any> | undefined>;
2273
1946
  readonly regenerateButtonComponent: _angular_core.InputSignal<Type<any> | undefined>;
2274
1947
  readonly toolCallsViewComponent: _angular_core.InputSignal<Type<any> | undefined>;
2275
- readonly message: _angular_core.InputSignal<{
2276
- id: string;
2277
- role: "assistant";
2278
- name?: string | undefined;
2279
- encryptedValue?: string | undefined;
2280
- metadata?: Record<string, any> | undefined;
2281
- content?: string | undefined;
2282
- subagentRunId?: string | undefined;
2283
- toolCalls?: {
2284
- function: {
2285
- name: string;
2286
- arguments: string;
2287
- };
2288
- type: "function";
2289
- id: string;
2290
- encryptedValue?: string | undefined;
2291
- metadata?: Record<string, any> | undefined;
2292
- }[] | undefined;
2293
- }>;
2294
- readonly messages: _angular_core.InputSignal<({
2295
- id: string;
2296
- role: "developer";
2297
- content: string;
2298
- name?: string | undefined;
2299
- encryptedValue?: string | undefined;
2300
- metadata?: Record<string, any> | undefined;
2301
- subagentRunId?: string | undefined;
2302
- } | {
2303
- id: string;
2304
- role: "system";
2305
- content: string;
2306
- name?: string | undefined;
2307
- encryptedValue?: string | undefined;
2308
- metadata?: Record<string, any> | undefined;
2309
- subagentRunId?: string | undefined;
2310
- } | {
2311
- id: string;
2312
- role: "assistant";
2313
- name?: string | undefined;
2314
- encryptedValue?: string | undefined;
2315
- metadata?: Record<string, any> | undefined;
2316
- content?: string | undefined;
2317
- subagentRunId?: string | undefined;
2318
- toolCalls?: {
2319
- function: {
2320
- name: string;
2321
- arguments: string;
2322
- };
2323
- type: "function";
2324
- id: string;
2325
- encryptedValue?: string | undefined;
2326
- metadata?: Record<string, any> | undefined;
2327
- }[] | undefined;
2328
- } | {
2329
- id: string;
2330
- role: "user";
2331
- content: string | ({
2332
- type: "text";
2333
- text: string;
2334
- } | {
2335
- type: "image";
2336
- source: {
2337
- value: string;
2338
- type: "data";
2339
- mimeType: string;
2340
- } | {
2341
- value: string;
2342
- type: "url";
2343
- mimeType?: string | undefined;
2344
- };
2345
- metadata?: unknown;
2346
- } | {
2347
- type: "audio";
2348
- source: {
2349
- value: string;
2350
- type: "data";
2351
- mimeType: string;
2352
- } | {
2353
- value: string;
2354
- type: "url";
2355
- mimeType?: string | undefined;
2356
- };
2357
- metadata?: unknown;
2358
- } | {
2359
- type: "video";
2360
- source: {
2361
- value: string;
2362
- type: "data";
2363
- mimeType: string;
2364
- } | {
2365
- value: string;
2366
- type: "url";
2367
- mimeType?: string | undefined;
2368
- };
2369
- metadata?: unknown;
2370
- } | {
2371
- type: "document";
2372
- source: {
2373
- value: string;
2374
- type: "data";
2375
- mimeType: string;
2376
- } | {
2377
- value: string;
2378
- type: "url";
2379
- mimeType?: string | undefined;
2380
- };
2381
- metadata?: unknown;
2382
- } | {
2383
- type: "binary";
2384
- mimeType: string;
2385
- id?: string | undefined;
2386
- data?: string | undefined;
2387
- url?: string | undefined;
2388
- filename?: string | undefined;
2389
- })[];
2390
- name?: string | undefined;
2391
- encryptedValue?: string | undefined;
2392
- metadata?: Record<string, any> | undefined;
2393
- subagentRunId?: string | undefined;
2394
- } | {
2395
- id: string;
2396
- role: "tool";
2397
- content: string;
2398
- toolCallId: string;
2399
- encryptedValue?: string | undefined;
2400
- metadata?: Record<string, any> | undefined;
2401
- subagentRunId?: string | undefined;
2402
- error?: string | undefined;
2403
- } | {
2404
- id: string;
2405
- role: "activity";
2406
- content: Record<string, any>;
2407
- activityType: string;
2408
- metadata?: Record<string, any> | undefined;
2409
- subagentRunId?: string | undefined;
2410
- } | {
2411
- id: string;
2412
- role: "reasoning";
2413
- content: string;
2414
- encryptedValue?: string | undefined;
2415
- metadata?: Record<string, any> | undefined;
2416
- subagentRunId?: string | undefined;
2417
- })[]>;
1948
+ readonly message: _angular_core.InputSignal<AssistantMessage>;
1949
+ readonly messages: _angular_core.InputSignal<Message$1[]>;
2418
1950
  readonly agentId: _angular_core.InputSignal<string | undefined>;
2419
1951
  readonly isLoading: _angular_core.InputSignal<boolean>;
2420
1952
  readonly additionalToolbarItems: _angular_core.InputSignal<TemplateRef<any> | undefined>;
@@ -2453,149 +1985,8 @@ declare class CopilotChatAssistantMessage {
2453
1985
  toolbarContext: _angular_core.Signal<AssistantMessageToolbarContext>;
2454
1986
  hasMessageContent(): boolean;
2455
1987
  toolCallsViewContext: _angular_core.Signal<{
2456
- message: {
2457
- id: string;
2458
- role: "assistant";
2459
- name?: string | undefined;
2460
- encryptedValue?: string | undefined;
2461
- metadata?: Record<string, any> | undefined;
2462
- content?: string | undefined;
2463
- subagentRunId?: string | undefined;
2464
- toolCalls?: {
2465
- function: {
2466
- name: string;
2467
- arguments: string;
2468
- };
2469
- type: "function";
2470
- id: string;
2471
- encryptedValue?: string | undefined;
2472
- metadata?: Record<string, any> | undefined;
2473
- }[] | undefined;
2474
- };
2475
- messages: ({
2476
- id: string;
2477
- role: "developer";
2478
- content: string;
2479
- name?: string | undefined;
2480
- encryptedValue?: string | undefined;
2481
- metadata?: Record<string, any> | undefined;
2482
- subagentRunId?: string | undefined;
2483
- } | {
2484
- id: string;
2485
- role: "system";
2486
- content: string;
2487
- name?: string | undefined;
2488
- encryptedValue?: string | undefined;
2489
- metadata?: Record<string, any> | undefined;
2490
- subagentRunId?: string | undefined;
2491
- } | {
2492
- id: string;
2493
- role: "assistant";
2494
- name?: string | undefined;
2495
- encryptedValue?: string | undefined;
2496
- metadata?: Record<string, any> | undefined;
2497
- content?: string | undefined;
2498
- subagentRunId?: string | undefined;
2499
- toolCalls?: {
2500
- function: {
2501
- name: string;
2502
- arguments: string;
2503
- };
2504
- type: "function";
2505
- id: string;
2506
- encryptedValue?: string | undefined;
2507
- metadata?: Record<string, any> | undefined;
2508
- }[] | undefined;
2509
- } | {
2510
- id: string;
2511
- role: "user";
2512
- content: string | ({
2513
- type: "text";
2514
- text: string;
2515
- } | {
2516
- type: "image";
2517
- source: {
2518
- value: string;
2519
- type: "data";
2520
- mimeType: string;
2521
- } | {
2522
- value: string;
2523
- type: "url";
2524
- mimeType?: string | undefined;
2525
- };
2526
- metadata?: unknown;
2527
- } | {
2528
- type: "audio";
2529
- source: {
2530
- value: string;
2531
- type: "data";
2532
- mimeType: string;
2533
- } | {
2534
- value: string;
2535
- type: "url";
2536
- mimeType?: string | undefined;
2537
- };
2538
- metadata?: unknown;
2539
- } | {
2540
- type: "video";
2541
- source: {
2542
- value: string;
2543
- type: "data";
2544
- mimeType: string;
2545
- } | {
2546
- value: string;
2547
- type: "url";
2548
- mimeType?: string | undefined;
2549
- };
2550
- metadata?: unknown;
2551
- } | {
2552
- type: "document";
2553
- source: {
2554
- value: string;
2555
- type: "data";
2556
- mimeType: string;
2557
- } | {
2558
- value: string;
2559
- type: "url";
2560
- mimeType?: string | undefined;
2561
- };
2562
- metadata?: unknown;
2563
- } | {
2564
- type: "binary";
2565
- mimeType: string;
2566
- id?: string | undefined;
2567
- data?: string | undefined;
2568
- url?: string | undefined;
2569
- filename?: string | undefined;
2570
- })[];
2571
- name?: string | undefined;
2572
- encryptedValue?: string | undefined;
2573
- metadata?: Record<string, any> | undefined;
2574
- subagentRunId?: string | undefined;
2575
- } | {
2576
- id: string;
2577
- role: "tool";
2578
- content: string;
2579
- toolCallId: string;
2580
- encryptedValue?: string | undefined;
2581
- metadata?: Record<string, any> | undefined;
2582
- subagentRunId?: string | undefined;
2583
- error?: string | undefined;
2584
- } | {
2585
- id: string;
2586
- role: "activity";
2587
- content: Record<string, any>;
2588
- activityType: string;
2589
- metadata?: Record<string, any> | undefined;
2590
- subagentRunId?: string | undefined;
2591
- } | {
2592
- id: string;
2593
- role: "reasoning";
2594
- content: string;
2595
- encryptedValue?: string | undefined;
2596
- metadata?: Record<string, any> | undefined;
2597
- subagentRunId?: string | undefined;
2598
- })[];
1988
+ message: AssistantMessage;
1989
+ messages: Message$1[];
2599
1990
  isLoading: boolean;
2600
1991
  }>;
2601
1992
  handleCopy(): void;
@@ -2622,15 +2013,7 @@ declare class CopilotChatAttachmentQueue {
2622
2013
 
2623
2014
  declare class CopilotChatAttachmentRenderer {
2624
2015
  readonly type: _angular_core.InputSignal<AttachmentModality>;
2625
- readonly source: _angular_core.InputSignal<{
2626
- type: "data";
2627
- value: string;
2628
- mimeType: string;
2629
- } | {
2630
- type: "url";
2631
- value: string;
2632
- mimeType?: string | undefined;
2633
- }>;
2016
+ readonly source: _angular_core.InputSignal<_ag_ui_core.PartSource>;
2634
2017
  readonly filename: _angular_core.InputSignal<string | undefined>;
2635
2018
  readonly inputClass: _angular_core.InputSignal<string | undefined>;
2636
2019
  readonly imageFailed: _angular_core.WritableSignal<boolean>;
@@ -3039,6 +2422,7 @@ declare class CopilotChatInput implements OnDestroy {
3039
2422
  readonly defaultButtonClass: string;
3040
2423
  readonly labels: _copilotkit_angular.CopilotChatLabels;
3041
2424
  readonly chatState: _copilotkit_angular.ChatState;
2425
+ readonly copilotKit: CopilotKit;
3042
2426
  modeSignal: _angular_core.WritableSignal<CopilotChatInputMode>;
3043
2427
  toolsMenuSignal: _angular_core.WritableSignal<(ToolsMenuItem | "-")[]>;
3044
2428
  autoFocusSignal: _angular_core.WritableSignal<boolean>;
@@ -3054,6 +2438,7 @@ declare class CopilotChatInput implements OnDestroy {
3054
2438
  computedMode: _angular_core.Signal<CopilotChatInputMode>;
3055
2439
  computedToolsMenu: _angular_core.Signal<(ToolsMenuItem | "-")[]>;
3056
2440
  computedAutoFocus: _angular_core.Signal<boolean>;
2441
+ audioTranscriptionEnabled: _angular_core.Signal<boolean>;
3057
2442
  computedValue: _angular_core.Signal<string>;
3058
2443
  addFileButtonDisabled: _angular_core.Signal<boolean>;
3059
2444
  addFileMenuAction: _angular_core.Signal<(() => void) | undefined>;
@@ -3220,73 +2605,7 @@ declare class CopilotChatUserMessageToolbar {
3220
2605
  declare class CopilotChatUserMessageBranchNavigation {
3221
2606
  currentBranch: _angular_core.InputSignal<number>;
3222
2607
  numberOfBranches: _angular_core.InputSignal<number>;
3223
- message: _angular_core.InputSignal<{
3224
- id: string;
3225
- role: "user";
3226
- content: string | ({
3227
- type: "text";
3228
- text: string;
3229
- } | {
3230
- type: "image";
3231
- source: {
3232
- value: string;
3233
- type: "data";
3234
- mimeType: string;
3235
- } | {
3236
- value: string;
3237
- type: "url";
3238
- mimeType?: string | undefined;
3239
- };
3240
- metadata?: unknown;
3241
- } | {
3242
- type: "audio";
3243
- source: {
3244
- value: string;
3245
- type: "data";
3246
- mimeType: string;
3247
- } | {
3248
- value: string;
3249
- type: "url";
3250
- mimeType?: string | undefined;
3251
- };
3252
- metadata?: unknown;
3253
- } | {
3254
- type: "video";
3255
- source: {
3256
- value: string;
3257
- type: "data";
3258
- mimeType: string;
3259
- } | {
3260
- value: string;
3261
- type: "url";
3262
- mimeType?: string | undefined;
3263
- };
3264
- metadata?: unknown;
3265
- } | {
3266
- type: "document";
3267
- source: {
3268
- value: string;
3269
- type: "data";
3270
- mimeType: string;
3271
- } | {
3272
- value: string;
3273
- type: "url";
3274
- mimeType?: string | undefined;
3275
- };
3276
- metadata?: unknown;
3277
- } | {
3278
- type: "binary";
3279
- mimeType: string;
3280
- id?: string | undefined;
3281
- data?: string | undefined;
3282
- url?: string | undefined;
3283
- filename?: string | undefined;
3284
- })[];
3285
- name?: string | undefined;
3286
- encryptedValue?: string | undefined;
3287
- metadata?: Record<string, any> | undefined;
3288
- subagentRunId?: string | undefined;
3289
- } | undefined>;
2608
+ message: _angular_core.InputSignal<UserMessage | undefined>;
3290
2609
  inputClass: _angular_core.InputSignal<string | undefined>;
3291
2610
  switchToBranch: _angular_core.OutputEmitterRef<CopilotChatUserMessageOnSwitchToBranchProps>;
3292
2611
  readonly ChevronLeftIcon: CopilotIconData;
@@ -3320,73 +2639,7 @@ declare class CopilotChatUserMessage {
3320
2639
  copyButtonComponent: _angular_core.InputSignal<Type<any> | undefined>;
3321
2640
  editButtonComponent: _angular_core.InputSignal<Type<any> | undefined>;
3322
2641
  branchNavigationComponent: _angular_core.InputSignal<Type<any> | undefined>;
3323
- message: _angular_core.InputSignal<{
3324
- id: string;
3325
- role: "user";
3326
- content: string | ({
3327
- type: "text";
3328
- text: string;
3329
- } | {
3330
- type: "image";
3331
- source: {
3332
- value: string;
3333
- type: "data";
3334
- mimeType: string;
3335
- } | {
3336
- value: string;
3337
- type: "url";
3338
- mimeType?: string | undefined;
3339
- };
3340
- metadata?: unknown;
3341
- } | {
3342
- type: "audio";
3343
- source: {
3344
- value: string;
3345
- type: "data";
3346
- mimeType: string;
3347
- } | {
3348
- value: string;
3349
- type: "url";
3350
- mimeType?: string | undefined;
3351
- };
3352
- metadata?: unknown;
3353
- } | {
3354
- type: "video";
3355
- source: {
3356
- value: string;
3357
- type: "data";
3358
- mimeType: string;
3359
- } | {
3360
- value: string;
3361
- type: "url";
3362
- mimeType?: string | undefined;
3363
- };
3364
- metadata?: unknown;
3365
- } | {
3366
- type: "document";
3367
- source: {
3368
- value: string;
3369
- type: "data";
3370
- mimeType: string;
3371
- } | {
3372
- value: string;
3373
- type: "url";
3374
- mimeType?: string | undefined;
3375
- };
3376
- metadata?: unknown;
3377
- } | {
3378
- type: "binary";
3379
- mimeType: string;
3380
- id?: string | undefined;
3381
- data?: string | undefined;
3382
- url?: string | undefined;
3383
- filename?: string | undefined;
3384
- })[];
3385
- name?: string | undefined;
3386
- encryptedValue?: string | undefined;
3387
- metadata?: Record<string, any> | undefined;
3388
- subagentRunId?: string | undefined;
3389
- } | undefined>;
2642
+ message: _angular_core.InputSignal<UserMessage | undefined>;
3390
2643
  branchIndex: _angular_core.InputSignal<number | undefined>;
3391
2644
  numberOfBranches: _angular_core.InputSignal<number | undefined>;
3392
2645
  additionalToolbarItems: _angular_core.InputSignal<TemplateRef<any> | undefined>;
@@ -3434,138 +2687,8 @@ declare class CopilotChatMessageViewCursor {
3434
2687
  }
3435
2688
 
3436
2689
  declare class CopilotChatReasoningMessage {
3437
- readonly message: _angular_core.InputSignal<{
3438
- id: string;
3439
- role: "reasoning";
3440
- content: string;
3441
- encryptedValue?: string | undefined;
3442
- metadata?: Record<string, any> | undefined;
3443
- subagentRunId?: string | undefined;
3444
- }>;
3445
- readonly messages: _angular_core.InputSignal<({
3446
- id: string;
3447
- role: "developer";
3448
- content: string;
3449
- name?: string | undefined;
3450
- encryptedValue?: string | undefined;
3451
- metadata?: Record<string, any> | undefined;
3452
- subagentRunId?: string | undefined;
3453
- } | {
3454
- id: string;
3455
- role: "system";
3456
- content: string;
3457
- name?: string | undefined;
3458
- encryptedValue?: string | undefined;
3459
- metadata?: Record<string, any> | undefined;
3460
- subagentRunId?: string | undefined;
3461
- } | {
3462
- id: string;
3463
- role: "assistant";
3464
- name?: string | undefined;
3465
- encryptedValue?: string | undefined;
3466
- metadata?: Record<string, any> | undefined;
3467
- content?: string | undefined;
3468
- subagentRunId?: string | undefined;
3469
- toolCalls?: {
3470
- function: {
3471
- name: string;
3472
- arguments: string;
3473
- };
3474
- type: "function";
3475
- id: string;
3476
- encryptedValue?: string | undefined;
3477
- metadata?: Record<string, any> | undefined;
3478
- }[] | undefined;
3479
- } | {
3480
- id: string;
3481
- role: "user";
3482
- content: string | ({
3483
- type: "text";
3484
- text: string;
3485
- } | {
3486
- type: "image";
3487
- source: {
3488
- value: string;
3489
- type: "data";
3490
- mimeType: string;
3491
- } | {
3492
- value: string;
3493
- type: "url";
3494
- mimeType?: string | undefined;
3495
- };
3496
- metadata?: unknown;
3497
- } | {
3498
- type: "audio";
3499
- source: {
3500
- value: string;
3501
- type: "data";
3502
- mimeType: string;
3503
- } | {
3504
- value: string;
3505
- type: "url";
3506
- mimeType?: string | undefined;
3507
- };
3508
- metadata?: unknown;
3509
- } | {
3510
- type: "video";
3511
- source: {
3512
- value: string;
3513
- type: "data";
3514
- mimeType: string;
3515
- } | {
3516
- value: string;
3517
- type: "url";
3518
- mimeType?: string | undefined;
3519
- };
3520
- metadata?: unknown;
3521
- } | {
3522
- type: "document";
3523
- source: {
3524
- value: string;
3525
- type: "data";
3526
- mimeType: string;
3527
- } | {
3528
- value: string;
3529
- type: "url";
3530
- mimeType?: string | undefined;
3531
- };
3532
- metadata?: unknown;
3533
- } | {
3534
- type: "binary";
3535
- mimeType: string;
3536
- id?: string | undefined;
3537
- data?: string | undefined;
3538
- url?: string | undefined;
3539
- filename?: string | undefined;
3540
- })[];
3541
- name?: string | undefined;
3542
- encryptedValue?: string | undefined;
3543
- metadata?: Record<string, any> | undefined;
3544
- subagentRunId?: string | undefined;
3545
- } | {
3546
- id: string;
3547
- role: "tool";
3548
- content: string;
3549
- toolCallId: string;
3550
- encryptedValue?: string | undefined;
3551
- metadata?: Record<string, any> | undefined;
3552
- subagentRunId?: string | undefined;
3553
- error?: string | undefined;
3554
- } | {
3555
- id: string;
3556
- role: "activity";
3557
- content: Record<string, any>;
3558
- activityType: string;
3559
- metadata?: Record<string, any> | undefined;
3560
- subagentRunId?: string | undefined;
3561
- } | {
3562
- id: string;
3563
- role: "reasoning";
3564
- content: string;
3565
- encryptedValue?: string | undefined;
3566
- metadata?: Record<string, any> | undefined;
3567
- subagentRunId?: string | undefined;
3568
- })[]>;
2690
+ readonly message: _angular_core.InputSignal<ReasoningMessage>;
2691
+ readonly messages: _angular_core.InputSignal<Message$1[]>;
3569
2692
  readonly isRunning: _angular_core.InputSignal<boolean>;
3570
2693
  readonly inputClass: _angular_core.InputSignal<string | undefined>;
3571
2694
  private readonly userToggled;
@@ -3590,130 +2713,7 @@ declare class CopilotChatReasoningMessage {
3590
2713
  * DOM structure and Tailwind classes match the React implementation exactly.
3591
2714
  */
3592
2715
  declare class CopilotChatMessageView {
3593
- messages: _angular_core.InputSignal<({
3594
- id: string;
3595
- role: "developer";
3596
- content: string;
3597
- name?: string | undefined;
3598
- encryptedValue?: string | undefined;
3599
- metadata?: Record<string, any> | undefined;
3600
- subagentRunId?: string | undefined;
3601
- } | {
3602
- id: string;
3603
- role: "system";
3604
- content: string;
3605
- name?: string | undefined;
3606
- encryptedValue?: string | undefined;
3607
- metadata?: Record<string, any> | undefined;
3608
- subagentRunId?: string | undefined;
3609
- } | {
3610
- id: string;
3611
- role: "assistant";
3612
- name?: string | undefined;
3613
- encryptedValue?: string | undefined;
3614
- metadata?: Record<string, any> | undefined;
3615
- content?: string | undefined;
3616
- subagentRunId?: string | undefined;
3617
- toolCalls?: {
3618
- function: {
3619
- name: string;
3620
- arguments: string;
3621
- };
3622
- type: "function";
3623
- id: string;
3624
- encryptedValue?: string | undefined;
3625
- metadata?: Record<string, any> | undefined;
3626
- }[] | undefined;
3627
- } | {
3628
- id: string;
3629
- role: "user";
3630
- content: string | ({
3631
- type: "text";
3632
- text: string;
3633
- } | {
3634
- type: "image";
3635
- source: {
3636
- value: string;
3637
- type: "data";
3638
- mimeType: string;
3639
- } | {
3640
- value: string;
3641
- type: "url";
3642
- mimeType?: string | undefined;
3643
- };
3644
- metadata?: unknown;
3645
- } | {
3646
- type: "audio";
3647
- source: {
3648
- value: string;
3649
- type: "data";
3650
- mimeType: string;
3651
- } | {
3652
- value: string;
3653
- type: "url";
3654
- mimeType?: string | undefined;
3655
- };
3656
- metadata?: unknown;
3657
- } | {
3658
- type: "video";
3659
- source: {
3660
- value: string;
3661
- type: "data";
3662
- mimeType: string;
3663
- } | {
3664
- value: string;
3665
- type: "url";
3666
- mimeType?: string | undefined;
3667
- };
3668
- metadata?: unknown;
3669
- } | {
3670
- type: "document";
3671
- source: {
3672
- value: string;
3673
- type: "data";
3674
- mimeType: string;
3675
- } | {
3676
- value: string;
3677
- type: "url";
3678
- mimeType?: string | undefined;
3679
- };
3680
- metadata?: unknown;
3681
- } | {
3682
- type: "binary";
3683
- mimeType: string;
3684
- id?: string | undefined;
3685
- data?: string | undefined;
3686
- url?: string | undefined;
3687
- filename?: string | undefined;
3688
- })[];
3689
- name?: string | undefined;
3690
- encryptedValue?: string | undefined;
3691
- metadata?: Record<string, any> | undefined;
3692
- subagentRunId?: string | undefined;
3693
- } | {
3694
- id: string;
3695
- role: "tool";
3696
- content: string;
3697
- toolCallId: string;
3698
- encryptedValue?: string | undefined;
3699
- metadata?: Record<string, any> | undefined;
3700
- subagentRunId?: string | undefined;
3701
- error?: string | undefined;
3702
- } | {
3703
- id: string;
3704
- role: "activity";
3705
- content: Record<string, any>;
3706
- activityType: string;
3707
- metadata?: Record<string, any> | undefined;
3708
- subagentRunId?: string | undefined;
3709
- } | {
3710
- id: string;
3711
- role: "reasoning";
3712
- content: string;
3713
- encryptedValue?: string | undefined;
3714
- metadata?: Record<string, any> | undefined;
3715
- subagentRunId?: string | undefined;
3716
- })[]>;
2716
+ messages: _angular_core.InputSignal<Message$1[]>;
3717
2717
  /** Current agent state exposed to transcript-children slots. */
3718
2718
  state: _angular_core.InputSignal<unknown>;
3719
2719
  showCursor: _angular_core.InputSignal<boolean>;
@@ -3758,1134 +2758,57 @@ declare class CopilotChatMessageView {
3758
2758
  protected readonly defaultUserComponent: typeof CopilotChatUserMessage;
3759
2759
  protected readonly defaultReasoningComponent: typeof CopilotChatReasoningMessage;
3760
2760
  protected readonly defaultCursorComponent: typeof CopilotChatMessageViewCursor;
3761
- protected messagesValue: _angular_core.Signal<({
3762
- id: string;
3763
- role: "developer";
3764
- content: string;
3765
- name?: string | undefined;
3766
- encryptedValue?: string | undefined;
3767
- metadata?: Record<string, any> | undefined;
3768
- subagentRunId?: string | undefined;
3769
- } | {
3770
- id: string;
3771
- role: "system";
3772
- content: string;
3773
- name?: string | undefined;
3774
- encryptedValue?: string | undefined;
3775
- metadata?: Record<string, any> | undefined;
3776
- subagentRunId?: string | undefined;
3777
- } | {
3778
- id: string;
3779
- role: "assistant";
3780
- name?: string | undefined;
3781
- encryptedValue?: string | undefined;
3782
- metadata?: Record<string, any> | undefined;
3783
- content?: string | undefined;
3784
- subagentRunId?: string | undefined;
3785
- toolCalls?: {
3786
- function: {
3787
- name: string;
3788
- arguments: string;
3789
- };
3790
- type: "function";
3791
- id: string;
3792
- encryptedValue?: string | undefined;
3793
- metadata?: Record<string, any> | undefined;
3794
- }[] | undefined;
3795
- } | {
3796
- id: string;
3797
- role: "user";
3798
- content: string | ({
3799
- type: "text";
3800
- text: string;
3801
- } | {
3802
- type: "image";
3803
- source: {
3804
- value: string;
3805
- type: "data";
3806
- mimeType: string;
3807
- } | {
3808
- value: string;
3809
- type: "url";
3810
- mimeType?: string | undefined;
3811
- };
3812
- metadata?: unknown;
3813
- } | {
3814
- type: "audio";
3815
- source: {
3816
- value: string;
3817
- type: "data";
3818
- mimeType: string;
3819
- } | {
3820
- value: string;
3821
- type: "url";
3822
- mimeType?: string | undefined;
3823
- };
3824
- metadata?: unknown;
3825
- } | {
3826
- type: "video";
3827
- source: {
3828
- value: string;
3829
- type: "data";
3830
- mimeType: string;
3831
- } | {
3832
- value: string;
3833
- type: "url";
3834
- mimeType?: string | undefined;
3835
- };
3836
- metadata?: unknown;
3837
- } | {
3838
- type: "document";
3839
- source: {
3840
- value: string;
3841
- type: "data";
3842
- mimeType: string;
3843
- } | {
3844
- value: string;
3845
- type: "url";
3846
- mimeType?: string | undefined;
3847
- };
3848
- metadata?: unknown;
3849
- } | {
3850
- type: "binary";
3851
- mimeType: string;
3852
- id?: string | undefined;
3853
- data?: string | undefined;
3854
- url?: string | undefined;
3855
- filename?: string | undefined;
3856
- })[];
3857
- name?: string | undefined;
3858
- encryptedValue?: string | undefined;
3859
- metadata?: Record<string, any> | undefined;
3860
- subagentRunId?: string | undefined;
3861
- } | {
3862
- id: string;
3863
- role: "tool";
3864
- content: string;
3865
- toolCallId: string;
3866
- encryptedValue?: string | undefined;
3867
- metadata?: Record<string, any> | undefined;
3868
- subagentRunId?: string | undefined;
3869
- error?: string | undefined;
3870
- } | {
3871
- id: string;
3872
- role: "activity";
3873
- content: Record<string, any>;
3874
- activityType: string;
3875
- metadata?: Record<string, any> | undefined;
3876
- subagentRunId?: string | undefined;
3877
- } | {
3878
- id: string;
3879
- role: "reasoning";
3880
- content: string;
3881
- encryptedValue?: string | undefined;
3882
- metadata?: Record<string, any> | undefined;
3883
- subagentRunId?: string | undefined;
3884
- })[]>;
2761
+ protected messagesValue: _angular_core.Signal<Message$1[]>;
2762
+ /**
2763
+ * Override table backing `rowRenderKey`. Per component instance, so its
2764
+ * lifetime matches the rendered list.
2765
+ */
2766
+ private readonly rowKeyStore;
2767
+ protected rowRenderKeys: _angular_core.Signal<string[]>;
2768
+ private readonly rowKeyStoreCommit;
3885
2769
  protected showCursorValue: _angular_core.Signal<boolean>;
3886
2770
  protected isLoadingValue: _angular_core.Signal<boolean>;
3887
- protected lastMessage: _angular_core.Signal<{
3888
- id: string;
3889
- role: "developer";
3890
- content: string;
3891
- name?: string | undefined;
3892
- encryptedValue?: string | undefined;
3893
- metadata?: Record<string, any> | undefined;
3894
- subagentRunId?: string | undefined;
3895
- } | {
3896
- id: string;
3897
- role: "system";
3898
- content: string;
3899
- name?: string | undefined;
3900
- encryptedValue?: string | undefined;
3901
- metadata?: Record<string, any> | undefined;
3902
- subagentRunId?: string | undefined;
3903
- } | {
3904
- id: string;
3905
- role: "assistant";
3906
- name?: string | undefined;
3907
- encryptedValue?: string | undefined;
3908
- metadata?: Record<string, any> | undefined;
3909
- content?: string | undefined;
3910
- subagentRunId?: string | undefined;
3911
- toolCalls?: {
3912
- function: {
3913
- name: string;
3914
- arguments: string;
3915
- };
3916
- type: "function";
3917
- id: string;
3918
- encryptedValue?: string | undefined;
3919
- metadata?: Record<string, any> | undefined;
3920
- }[] | undefined;
3921
- } | {
3922
- id: string;
3923
- role: "user";
3924
- content: string | ({
3925
- type: "text";
3926
- text: string;
3927
- } | {
3928
- type: "image";
3929
- source: {
3930
- value: string;
3931
- type: "data";
3932
- mimeType: string;
3933
- } | {
3934
- value: string;
3935
- type: "url";
3936
- mimeType?: string | undefined;
3937
- };
3938
- metadata?: unknown;
3939
- } | {
3940
- type: "audio";
3941
- source: {
3942
- value: string;
3943
- type: "data";
3944
- mimeType: string;
3945
- } | {
3946
- value: string;
3947
- type: "url";
3948
- mimeType?: string | undefined;
3949
- };
3950
- metadata?: unknown;
3951
- } | {
3952
- type: "video";
3953
- source: {
3954
- value: string;
3955
- type: "data";
3956
- mimeType: string;
3957
- } | {
3958
- value: string;
3959
- type: "url";
3960
- mimeType?: string | undefined;
3961
- };
3962
- metadata?: unknown;
3963
- } | {
3964
- type: "document";
3965
- source: {
3966
- value: string;
3967
- type: "data";
3968
- mimeType: string;
3969
- } | {
3970
- value: string;
3971
- type: "url";
3972
- mimeType?: string | undefined;
3973
- };
3974
- metadata?: unknown;
3975
- } | {
3976
- type: "binary";
3977
- mimeType: string;
3978
- id?: string | undefined;
3979
- data?: string | undefined;
3980
- url?: string | undefined;
3981
- filename?: string | undefined;
3982
- })[];
3983
- name?: string | undefined;
3984
- encryptedValue?: string | undefined;
3985
- metadata?: Record<string, any> | undefined;
3986
- subagentRunId?: string | undefined;
3987
- } | {
3988
- id: string;
3989
- role: "tool";
3990
- content: string;
3991
- toolCallId: string;
3992
- encryptedValue?: string | undefined;
3993
- metadata?: Record<string, any> | undefined;
3994
- subagentRunId?: string | undefined;
3995
- error?: string | undefined;
3996
- } | {
3997
- id: string;
3998
- role: "activity";
3999
- content: Record<string, any>;
4000
- activityType: string;
4001
- metadata?: Record<string, any> | undefined;
4002
- subagentRunId?: string | undefined;
4003
- } | {
4004
- id: string;
4005
- role: "reasoning";
4006
- content: string;
4007
- encryptedValue?: string | undefined;
4008
- metadata?: Record<string, any> | undefined;
4009
- subagentRunId?: string | undefined;
4010
- } | undefined>;
2771
+ protected lastMessage: _angular_core.Signal<Message$1 | undefined>;
4011
2772
  computedClass: _angular_core.Signal<string>;
4012
2773
  layoutContext: _angular_core.Signal<{
4013
2774
  isLoading: boolean;
4014
- messages: ({
4015
- id: string;
4016
- role: "developer";
4017
- content: string;
4018
- name?: string | undefined;
4019
- encryptedValue?: string | undefined;
4020
- metadata?: Record<string, any> | undefined;
4021
- subagentRunId?: string | undefined;
4022
- } | {
4023
- id: string;
4024
- role: "system";
4025
- content: string;
4026
- name?: string | undefined;
4027
- encryptedValue?: string | undefined;
4028
- metadata?: Record<string, any> | undefined;
4029
- subagentRunId?: string | undefined;
4030
- } | {
4031
- id: string;
4032
- role: "assistant";
4033
- name?: string | undefined;
4034
- encryptedValue?: string | undefined;
4035
- metadata?: Record<string, any> | undefined;
4036
- content?: string | undefined;
4037
- subagentRunId?: string | undefined;
4038
- toolCalls?: {
4039
- function: {
4040
- name: string;
4041
- arguments: string;
4042
- };
4043
- type: "function";
4044
- id: string;
4045
- encryptedValue?: string | undefined;
4046
- metadata?: Record<string, any> | undefined;
4047
- }[] | undefined;
4048
- } | {
4049
- id: string;
4050
- role: "user";
4051
- content: string | ({
4052
- type: "text";
4053
- text: string;
4054
- } | {
4055
- type: "image";
4056
- source: {
4057
- value: string;
4058
- type: "data";
4059
- mimeType: string;
4060
- } | {
4061
- value: string;
4062
- type: "url";
4063
- mimeType?: string | undefined;
4064
- };
4065
- metadata?: unknown;
4066
- } | {
4067
- type: "audio";
4068
- source: {
4069
- value: string;
4070
- type: "data";
4071
- mimeType: string;
4072
- } | {
4073
- value: string;
4074
- type: "url";
4075
- mimeType?: string | undefined;
4076
- };
4077
- metadata?: unknown;
4078
- } | {
4079
- type: "video";
4080
- source: {
4081
- value: string;
4082
- type: "data";
4083
- mimeType: string;
4084
- } | {
4085
- value: string;
4086
- type: "url";
4087
- mimeType?: string | undefined;
4088
- };
4089
- metadata?: unknown;
4090
- } | {
4091
- type: "document";
4092
- source: {
4093
- value: string;
4094
- type: "data";
4095
- mimeType: string;
4096
- } | {
4097
- value: string;
4098
- type: "url";
4099
- mimeType?: string | undefined;
4100
- };
4101
- metadata?: unknown;
4102
- } | {
4103
- type: "binary";
4104
- mimeType: string;
4105
- id?: string | undefined;
4106
- data?: string | undefined;
4107
- url?: string | undefined;
4108
- filename?: string | undefined;
4109
- })[];
4110
- name?: string | undefined;
4111
- encryptedValue?: string | undefined;
4112
- metadata?: Record<string, any> | undefined;
4113
- subagentRunId?: string | undefined;
4114
- } | {
4115
- id: string;
4116
- role: "tool";
4117
- content: string;
4118
- toolCallId: string;
4119
- encryptedValue?: string | undefined;
4120
- metadata?: Record<string, any> | undefined;
4121
- subagentRunId?: string | undefined;
4122
- error?: string | undefined;
4123
- } | {
4124
- id: string;
4125
- role: "activity";
4126
- content: Record<string, any>;
4127
- activityType: string;
4128
- metadata?: Record<string, any> | undefined;
4129
- subagentRunId?: string | undefined;
4130
- } | {
4131
- id: string;
4132
- role: "reasoning";
4133
- content: string;
4134
- encryptedValue?: string | undefined;
4135
- metadata?: Record<string, any> | undefined;
4136
- subagentRunId?: string | undefined;
4137
- })[];
2775
+ messages: Message$1[];
4138
2776
  showCursor: boolean;
4139
- messageElements: ({
4140
- id: string;
4141
- role: "assistant";
4142
- name?: string | undefined;
4143
- encryptedValue?: string | undefined;
4144
- metadata?: Record<string, any> | undefined;
4145
- content?: string | undefined;
4146
- subagentRunId?: string | undefined;
4147
- toolCalls?: {
4148
- function: {
4149
- name: string;
4150
- arguments: string;
4151
- };
4152
- type: "function";
4153
- id: string;
4154
- encryptedValue?: string | undefined;
4155
- metadata?: Record<string, any> | undefined;
4156
- }[] | undefined;
4157
- } | {
4158
- id: string;
4159
- role: "user";
4160
- content: string | ({
4161
- type: "text";
4162
- text: string;
4163
- } | {
4164
- type: "image";
4165
- source: {
4166
- value: string;
4167
- type: "data";
4168
- mimeType: string;
4169
- } | {
4170
- value: string;
4171
- type: "url";
4172
- mimeType?: string | undefined;
4173
- };
4174
- metadata?: unknown;
4175
- } | {
4176
- type: "audio";
4177
- source: {
4178
- value: string;
4179
- type: "data";
4180
- mimeType: string;
4181
- } | {
4182
- value: string;
4183
- type: "url";
4184
- mimeType?: string | undefined;
4185
- };
4186
- metadata?: unknown;
4187
- } | {
4188
- type: "video";
4189
- source: {
4190
- value: string;
4191
- type: "data";
4192
- mimeType: string;
4193
- } | {
4194
- value: string;
4195
- type: "url";
4196
- mimeType?: string | undefined;
4197
- };
4198
- metadata?: unknown;
4199
- } | {
4200
- type: "document";
4201
- source: {
4202
- value: string;
4203
- type: "data";
4204
- mimeType: string;
4205
- } | {
4206
- value: string;
4207
- type: "url";
4208
- mimeType?: string | undefined;
4209
- };
4210
- metadata?: unknown;
4211
- } | {
4212
- type: "binary";
4213
- mimeType: string;
4214
- id?: string | undefined;
4215
- data?: string | undefined;
4216
- url?: string | undefined;
4217
- filename?: string | undefined;
4218
- })[];
4219
- name?: string | undefined;
4220
- encryptedValue?: string | undefined;
4221
- metadata?: Record<string, any> | undefined;
4222
- subagentRunId?: string | undefined;
4223
- } | {
4224
- id: string;
4225
- role: "activity";
4226
- content: Record<string, any>;
4227
- activityType: string;
4228
- metadata?: Record<string, any> | undefined;
4229
- subagentRunId?: string | undefined;
4230
- } | {
4231
- id: string;
4232
- role: "reasoning";
4233
- content: string;
4234
- encryptedValue?: string | undefined;
4235
- metadata?: Record<string, any> | undefined;
4236
- subagentRunId?: string | undefined;
4237
- })[];
2777
+ messageElements: (_ag_ui_core.ActivityMessage | _ag_ui_core.AssistantMessage | _ag_ui_core.UserMessage | ReasoningMessage)[];
4238
2778
  }>;
4239
2779
  assistantMessageSlot: _angular_core.Signal<string | Type<any> | undefined>;
4240
2780
  userMessageSlot: _angular_core.Signal<string | Type<any> | undefined>;
4241
2781
  cursorSlot: _angular_core.Signal<string | Type<any> | undefined>;
4242
2782
  mergeAssistantProps(message: Message$1): {
4243
- message: {
4244
- id: string;
4245
- role: "developer";
4246
- content: string;
4247
- name?: string | undefined;
4248
- encryptedValue?: string | undefined;
4249
- metadata?: Record<string, any> | undefined;
4250
- subagentRunId?: string | undefined;
4251
- } | {
4252
- id: string;
4253
- role: "system";
4254
- content: string;
4255
- name?: string | undefined;
4256
- encryptedValue?: string | undefined;
4257
- metadata?: Record<string, any> | undefined;
4258
- subagentRunId?: string | undefined;
4259
- } | {
4260
- id: string;
4261
- role: "assistant";
4262
- name?: string | undefined;
4263
- encryptedValue?: string | undefined;
4264
- metadata?: Record<string, any> | undefined;
4265
- content?: string | undefined;
4266
- subagentRunId?: string | undefined;
4267
- toolCalls?: {
4268
- function: {
4269
- name: string;
4270
- arguments: string;
4271
- };
4272
- type: "function";
4273
- id: string;
4274
- encryptedValue?: string | undefined;
4275
- metadata?: Record<string, any> | undefined;
4276
- }[] | undefined;
4277
- } | {
4278
- id: string;
4279
- role: "user";
4280
- content: string | ({
4281
- type: "text";
4282
- text: string;
4283
- } | {
4284
- type: "image";
4285
- source: {
4286
- value: string;
4287
- type: "data";
4288
- mimeType: string;
4289
- } | {
4290
- value: string;
4291
- type: "url";
4292
- mimeType?: string | undefined;
4293
- };
4294
- metadata?: unknown;
4295
- } | {
4296
- type: "audio";
4297
- source: {
4298
- value: string;
4299
- type: "data";
4300
- mimeType: string;
4301
- } | {
4302
- value: string;
4303
- type: "url";
4304
- mimeType?: string | undefined;
4305
- };
4306
- metadata?: unknown;
4307
- } | {
4308
- type: "video";
4309
- source: {
4310
- value: string;
4311
- type: "data";
4312
- mimeType: string;
4313
- } | {
4314
- value: string;
4315
- type: "url";
4316
- mimeType?: string | undefined;
4317
- };
4318
- metadata?: unknown;
4319
- } | {
4320
- type: "document";
4321
- source: {
4322
- value: string;
4323
- type: "data";
4324
- mimeType: string;
4325
- } | {
4326
- value: string;
4327
- type: "url";
4328
- mimeType?: string | undefined;
4329
- };
4330
- metadata?: unknown;
4331
- } | {
4332
- type: "binary";
4333
- mimeType: string;
4334
- id?: string | undefined;
4335
- data?: string | undefined;
4336
- url?: string | undefined;
4337
- filename?: string | undefined;
4338
- })[];
4339
- name?: string | undefined;
4340
- encryptedValue?: string | undefined;
4341
- metadata?: Record<string, any> | undefined;
4342
- subagentRunId?: string | undefined;
4343
- } | {
4344
- id: string;
4345
- role: "tool";
4346
- content: string;
4347
- toolCallId: string;
4348
- encryptedValue?: string | undefined;
4349
- metadata?: Record<string, any> | undefined;
4350
- subagentRunId?: string | undefined;
4351
- error?: string | undefined;
4352
- } | {
4353
- id: string;
4354
- role: "activity";
4355
- content: Record<string, any>;
4356
- activityType: string;
4357
- metadata?: Record<string, any> | undefined;
4358
- subagentRunId?: string | undefined;
4359
- } | {
4360
- id: string;
4361
- role: "reasoning";
4362
- content: string;
4363
- encryptedValue?: string | undefined;
4364
- metadata?: Record<string, any> | undefined;
4365
- subagentRunId?: string | undefined;
4366
- };
4367
- messages: ({
4368
- id: string;
4369
- role: "developer";
4370
- content: string;
4371
- name?: string | undefined;
4372
- encryptedValue?: string | undefined;
4373
- metadata?: Record<string, any> | undefined;
4374
- subagentRunId?: string | undefined;
4375
- } | {
4376
- id: string;
4377
- role: "system";
4378
- content: string;
4379
- name?: string | undefined;
4380
- encryptedValue?: string | undefined;
4381
- metadata?: Record<string, any> | undefined;
4382
- subagentRunId?: string | undefined;
4383
- } | {
4384
- id: string;
4385
- role: "assistant";
4386
- name?: string | undefined;
4387
- encryptedValue?: string | undefined;
4388
- metadata?: Record<string, any> | undefined;
4389
- content?: string | undefined;
4390
- subagentRunId?: string | undefined;
4391
- toolCalls?: {
4392
- function: {
4393
- name: string;
4394
- arguments: string;
4395
- };
4396
- type: "function";
4397
- id: string;
4398
- encryptedValue?: string | undefined;
4399
- metadata?: Record<string, any> | undefined;
4400
- }[] | undefined;
4401
- } | {
4402
- id: string;
4403
- role: "user";
4404
- content: string | ({
4405
- type: "text";
4406
- text: string;
4407
- } | {
4408
- type: "image";
4409
- source: {
4410
- value: string;
4411
- type: "data";
4412
- mimeType: string;
4413
- } | {
4414
- value: string;
4415
- type: "url";
4416
- mimeType?: string | undefined;
4417
- };
4418
- metadata?: unknown;
4419
- } | {
4420
- type: "audio";
4421
- source: {
4422
- value: string;
4423
- type: "data";
4424
- mimeType: string;
4425
- } | {
4426
- value: string;
4427
- type: "url";
4428
- mimeType?: string | undefined;
4429
- };
4430
- metadata?: unknown;
4431
- } | {
4432
- type: "video";
4433
- source: {
4434
- value: string;
4435
- type: "data";
4436
- mimeType: string;
4437
- } | {
4438
- value: string;
4439
- type: "url";
4440
- mimeType?: string | undefined;
4441
- };
4442
- metadata?: unknown;
4443
- } | {
4444
- type: "document";
4445
- source: {
4446
- value: string;
4447
- type: "data";
4448
- mimeType: string;
4449
- } | {
4450
- value: string;
4451
- type: "url";
4452
- mimeType?: string | undefined;
4453
- };
4454
- metadata?: unknown;
4455
- } | {
4456
- type: "binary";
4457
- mimeType: string;
4458
- id?: string | undefined;
4459
- data?: string | undefined;
4460
- url?: string | undefined;
4461
- filename?: string | undefined;
4462
- })[];
4463
- name?: string | undefined;
4464
- encryptedValue?: string | undefined;
4465
- metadata?: Record<string, any> | undefined;
4466
- subagentRunId?: string | undefined;
4467
- } | {
4468
- id: string;
4469
- role: "tool";
4470
- content: string;
4471
- toolCallId: string;
4472
- encryptedValue?: string | undefined;
4473
- metadata?: Record<string, any> | undefined;
4474
- subagentRunId?: string | undefined;
4475
- error?: string | undefined;
4476
- } | {
4477
- id: string;
4478
- role: "activity";
4479
- content: Record<string, any>;
4480
- activityType: string;
4481
- metadata?: Record<string, any> | undefined;
4482
- subagentRunId?: string | undefined;
4483
- } | {
4484
- id: string;
4485
- role: "reasoning";
4486
- content: string;
4487
- encryptedValue?: string | undefined;
4488
- metadata?: Record<string, any> | undefined;
4489
- subagentRunId?: string | undefined;
4490
- })[];
2783
+ message: Message$1;
2784
+ messages: Message$1[];
4491
2785
  isLoading: boolean;
4492
2786
  inputClass: string | undefined;
4493
2787
  };
4494
2788
  mergeReasoningProps(message: ReasoningMessage): {
4495
- message: {
4496
- id: string;
4497
- role: "reasoning";
4498
- content: string;
4499
- encryptedValue?: string | undefined;
4500
- metadata?: Record<string, any> | undefined;
4501
- subagentRunId?: string | undefined;
4502
- };
4503
- messages: ({
4504
- id: string;
4505
- role: "developer";
4506
- content: string;
4507
- name?: string | undefined;
4508
- encryptedValue?: string | undefined;
4509
- metadata?: Record<string, any> | undefined;
4510
- subagentRunId?: string | undefined;
4511
- } | {
4512
- id: string;
4513
- role: "system";
4514
- content: string;
4515
- name?: string | undefined;
4516
- encryptedValue?: string | undefined;
4517
- metadata?: Record<string, any> | undefined;
4518
- subagentRunId?: string | undefined;
4519
- } | {
4520
- id: string;
4521
- role: "assistant";
4522
- name?: string | undefined;
4523
- encryptedValue?: string | undefined;
4524
- metadata?: Record<string, any> | undefined;
4525
- content?: string | undefined;
4526
- subagentRunId?: string | undefined;
4527
- toolCalls?: {
4528
- function: {
4529
- name: string;
4530
- arguments: string;
4531
- };
4532
- type: "function";
4533
- id: string;
4534
- encryptedValue?: string | undefined;
4535
- metadata?: Record<string, any> | undefined;
4536
- }[] | undefined;
4537
- } | {
4538
- id: string;
4539
- role: "user";
4540
- content: string | ({
4541
- type: "text";
4542
- text: string;
4543
- } | {
4544
- type: "image";
4545
- source: {
4546
- value: string;
4547
- type: "data";
4548
- mimeType: string;
4549
- } | {
4550
- value: string;
4551
- type: "url";
4552
- mimeType?: string | undefined;
4553
- };
4554
- metadata?: unknown;
4555
- } | {
4556
- type: "audio";
4557
- source: {
4558
- value: string;
4559
- type: "data";
4560
- mimeType: string;
4561
- } | {
4562
- value: string;
4563
- type: "url";
4564
- mimeType?: string | undefined;
4565
- };
4566
- metadata?: unknown;
4567
- } | {
4568
- type: "video";
4569
- source: {
4570
- value: string;
4571
- type: "data";
4572
- mimeType: string;
4573
- } | {
4574
- value: string;
4575
- type: "url";
4576
- mimeType?: string | undefined;
4577
- };
4578
- metadata?: unknown;
4579
- } | {
4580
- type: "document";
4581
- source: {
4582
- value: string;
4583
- type: "data";
4584
- mimeType: string;
4585
- } | {
4586
- value: string;
4587
- type: "url";
4588
- mimeType?: string | undefined;
4589
- };
4590
- metadata?: unknown;
4591
- } | {
4592
- type: "binary";
4593
- mimeType: string;
4594
- id?: string | undefined;
4595
- data?: string | undefined;
4596
- url?: string | undefined;
4597
- filename?: string | undefined;
4598
- })[];
4599
- name?: string | undefined;
4600
- encryptedValue?: string | undefined;
4601
- metadata?: Record<string, any> | undefined;
4602
- subagentRunId?: string | undefined;
4603
- } | {
4604
- id: string;
4605
- role: "tool";
4606
- content: string;
4607
- toolCallId: string;
4608
- encryptedValue?: string | undefined;
4609
- metadata?: Record<string, any> | undefined;
4610
- subagentRunId?: string | undefined;
4611
- error?: string | undefined;
4612
- } | {
4613
- id: string;
4614
- role: "activity";
4615
- content: Record<string, any>;
4616
- activityType: string;
4617
- metadata?: Record<string, any> | undefined;
4618
- subagentRunId?: string | undefined;
4619
- } | {
4620
- id: string;
4621
- role: "reasoning";
4622
- content: string;
4623
- encryptedValue?: string | undefined;
4624
- metadata?: Record<string, any> | undefined;
4625
- subagentRunId?: string | undefined;
4626
- })[];
2789
+ message: ReasoningMessage;
2790
+ messages: Message$1[];
4627
2791
  isRunning: boolean;
4628
2792
  inputClass: string | undefined;
4629
2793
  };
4630
2794
  childrenContext(): {
4631
- messages: ({
4632
- id: string;
4633
- role: "developer";
4634
- content: string;
4635
- name?: string | undefined;
4636
- encryptedValue?: string | undefined;
4637
- metadata?: Record<string, any> | undefined;
4638
- subagentRunId?: string | undefined;
4639
- } | {
4640
- id: string;
4641
- role: "system";
4642
- content: string;
4643
- name?: string | undefined;
4644
- encryptedValue?: string | undefined;
4645
- metadata?: Record<string, any> | undefined;
4646
- subagentRunId?: string | undefined;
4647
- } | {
4648
- id: string;
4649
- role: "assistant";
4650
- name?: string | undefined;
4651
- encryptedValue?: string | undefined;
4652
- metadata?: Record<string, any> | undefined;
4653
- content?: string | undefined;
4654
- subagentRunId?: string | undefined;
4655
- toolCalls?: {
4656
- function: {
4657
- name: string;
4658
- arguments: string;
4659
- };
4660
- type: "function";
4661
- id: string;
4662
- encryptedValue?: string | undefined;
4663
- metadata?: Record<string, any> | undefined;
4664
- }[] | undefined;
4665
- } | {
4666
- id: string;
4667
- role: "user";
4668
- content: string | ({
4669
- type: "text";
4670
- text: string;
4671
- } | {
4672
- type: "image";
4673
- source: {
4674
- value: string;
4675
- type: "data";
4676
- mimeType: string;
4677
- } | {
4678
- value: string;
4679
- type: "url";
4680
- mimeType?: string | undefined;
4681
- };
4682
- metadata?: unknown;
4683
- } | {
4684
- type: "audio";
4685
- source: {
4686
- value: string;
4687
- type: "data";
4688
- mimeType: string;
4689
- } | {
4690
- value: string;
4691
- type: "url";
4692
- mimeType?: string | undefined;
4693
- };
4694
- metadata?: unknown;
4695
- } | {
4696
- type: "video";
4697
- source: {
4698
- value: string;
4699
- type: "data";
4700
- mimeType: string;
4701
- } | {
4702
- value: string;
4703
- type: "url";
4704
- mimeType?: string | undefined;
4705
- };
4706
- metadata?: unknown;
4707
- } | {
4708
- type: "document";
4709
- source: {
4710
- value: string;
4711
- type: "data";
4712
- mimeType: string;
4713
- } | {
4714
- value: string;
4715
- type: "url";
4716
- mimeType?: string | undefined;
4717
- };
4718
- metadata?: unknown;
4719
- } | {
4720
- type: "binary";
4721
- mimeType: string;
4722
- id?: string | undefined;
4723
- data?: string | undefined;
4724
- url?: string | undefined;
4725
- filename?: string | undefined;
4726
- })[];
4727
- name?: string | undefined;
4728
- encryptedValue?: string | undefined;
4729
- metadata?: Record<string, any> | undefined;
4730
- subagentRunId?: string | undefined;
4731
- } | {
4732
- id: string;
4733
- role: "tool";
4734
- content: string;
4735
- toolCallId: string;
4736
- encryptedValue?: string | undefined;
4737
- metadata?: Record<string, any> | undefined;
4738
- subagentRunId?: string | undefined;
4739
- error?: string | undefined;
4740
- } | {
4741
- id: string;
4742
- role: "activity";
4743
- content: Record<string, any>;
4744
- activityType: string;
4745
- metadata?: Record<string, any> | undefined;
4746
- subagentRunId?: string | undefined;
4747
- } | {
4748
- id: string;
4749
- role: "reasoning";
4750
- content: string;
4751
- encryptedValue?: string | undefined;
4752
- metadata?: Record<string, any> | undefined;
4753
- subagentRunId?: string | undefined;
4754
- })[];
2795
+ messages: Message$1[];
4755
2796
  state: unknown;
4756
2797
  agentId: string | undefined;
4757
2798
  isRunning: boolean;
4758
2799
  inputClass: string | undefined;
4759
2800
  };
4760
2801
  mergeUserProps(message: Message$1): {
4761
- message: {
4762
- id: string;
4763
- role: "developer";
4764
- content: string;
4765
- name?: string | undefined;
4766
- encryptedValue?: string | undefined;
4767
- metadata?: Record<string, any> | undefined;
4768
- subagentRunId?: string | undefined;
4769
- } | {
4770
- id: string;
4771
- role: "system";
4772
- content: string;
4773
- name?: string | undefined;
4774
- encryptedValue?: string | undefined;
4775
- metadata?: Record<string, any> | undefined;
4776
- subagentRunId?: string | undefined;
4777
- } | {
4778
- id: string;
4779
- role: "assistant";
4780
- name?: string | undefined;
4781
- encryptedValue?: string | undefined;
4782
- metadata?: Record<string, any> | undefined;
4783
- content?: string | undefined;
4784
- subagentRunId?: string | undefined;
4785
- toolCalls?: {
4786
- function: {
4787
- name: string;
4788
- arguments: string;
4789
- };
4790
- type: "function";
4791
- id: string;
4792
- encryptedValue?: string | undefined;
4793
- metadata?: Record<string, any> | undefined;
4794
- }[] | undefined;
4795
- } | {
4796
- id: string;
4797
- role: "user";
4798
- content: string | ({
4799
- type: "text";
4800
- text: string;
4801
- } | {
4802
- type: "image";
4803
- source: {
4804
- value: string;
4805
- type: "data";
4806
- mimeType: string;
4807
- } | {
4808
- value: string;
4809
- type: "url";
4810
- mimeType?: string | undefined;
4811
- };
4812
- metadata?: unknown;
4813
- } | {
4814
- type: "audio";
4815
- source: {
4816
- value: string;
4817
- type: "data";
4818
- mimeType: string;
4819
- } | {
4820
- value: string;
4821
- type: "url";
4822
- mimeType?: string | undefined;
4823
- };
4824
- metadata?: unknown;
4825
- } | {
4826
- type: "video";
4827
- source: {
4828
- value: string;
4829
- type: "data";
4830
- mimeType: string;
4831
- } | {
4832
- value: string;
4833
- type: "url";
4834
- mimeType?: string | undefined;
4835
- };
4836
- metadata?: unknown;
4837
- } | {
4838
- type: "document";
4839
- source: {
4840
- value: string;
4841
- type: "data";
4842
- mimeType: string;
4843
- } | {
4844
- value: string;
4845
- type: "url";
4846
- mimeType?: string | undefined;
4847
- };
4848
- metadata?: unknown;
4849
- } | {
4850
- type: "binary";
4851
- mimeType: string;
4852
- id?: string | undefined;
4853
- data?: string | undefined;
4854
- url?: string | undefined;
4855
- filename?: string | undefined;
4856
- })[];
4857
- name?: string | undefined;
4858
- encryptedValue?: string | undefined;
4859
- metadata?: Record<string, any> | undefined;
4860
- subagentRunId?: string | undefined;
4861
- } | {
4862
- id: string;
4863
- role: "tool";
4864
- content: string;
4865
- toolCallId: string;
4866
- encryptedValue?: string | undefined;
4867
- metadata?: Record<string, any> | undefined;
4868
- subagentRunId?: string | undefined;
4869
- error?: string | undefined;
4870
- } | {
4871
- id: string;
4872
- role: "activity";
4873
- content: Record<string, any>;
4874
- activityType: string;
4875
- metadata?: Record<string, any> | undefined;
4876
- subagentRunId?: string | undefined;
4877
- } | {
4878
- id: string;
4879
- role: "reasoning";
4880
- content: string;
4881
- encryptedValue?: string | undefined;
4882
- metadata?: Record<string, any> | undefined;
4883
- subagentRunId?: string | undefined;
4884
- };
2802
+ message: Message$1;
4885
2803
  inputClass: string | undefined;
4886
2804
  };
4887
2805
  asReasoningMessage(message: Message$1): ReasoningMessage;
4888
- trackByMessageId(index: number, message: Message$1): string;
2806
+ /**
2807
+ * Stable `@for` track key. A message's canonical id can change mid-stream, and
2808
+ * tracking by it destroys and recreates the row on that swap (the HITL chat
2809
+ * flash). See ./row-render-keys for the mechanism and its limits.
2810
+ */
2811
+ rowRenderKey(index: number, message: Message$1): string;
4889
2812
  handleAssistantThumbsUp(event: {
4890
2813
  message: Message$1;
4891
2814
  }): void;
@@ -4981,130 +2904,7 @@ declare class CopilotChatViewScrollView implements AfterViewInit, OnDestroy {
4981
2904
  inputContainerHeight: _angular_core.InputSignal<number>;
4982
2905
  isResizing: _angular_core.InputSignal<boolean>;
4983
2906
  inputClass: _angular_core.InputSignal<string | undefined>;
4984
- messages: _angular_core.InputSignal<({
4985
- id: string;
4986
- role: "developer";
4987
- content: string;
4988
- name?: string | undefined;
4989
- encryptedValue?: string | undefined;
4990
- metadata?: Record<string, any> | undefined;
4991
- subagentRunId?: string | undefined;
4992
- } | {
4993
- id: string;
4994
- role: "system";
4995
- content: string;
4996
- name?: string | undefined;
4997
- encryptedValue?: string | undefined;
4998
- metadata?: Record<string, any> | undefined;
4999
- subagentRunId?: string | undefined;
5000
- } | {
5001
- id: string;
5002
- role: "assistant";
5003
- name?: string | undefined;
5004
- encryptedValue?: string | undefined;
5005
- metadata?: Record<string, any> | undefined;
5006
- content?: string | undefined;
5007
- subagentRunId?: string | undefined;
5008
- toolCalls?: {
5009
- function: {
5010
- name: string;
5011
- arguments: string;
5012
- };
5013
- type: "function";
5014
- id: string;
5015
- encryptedValue?: string | undefined;
5016
- metadata?: Record<string, any> | undefined;
5017
- }[] | undefined;
5018
- } | {
5019
- id: string;
5020
- role: "user";
5021
- content: string | ({
5022
- type: "text";
5023
- text: string;
5024
- } | {
5025
- type: "image";
5026
- source: {
5027
- value: string;
5028
- type: "data";
5029
- mimeType: string;
5030
- } | {
5031
- value: string;
5032
- type: "url";
5033
- mimeType?: string | undefined;
5034
- };
5035
- metadata?: unknown;
5036
- } | {
5037
- type: "audio";
5038
- source: {
5039
- value: string;
5040
- type: "data";
5041
- mimeType: string;
5042
- } | {
5043
- value: string;
5044
- type: "url";
5045
- mimeType?: string | undefined;
5046
- };
5047
- metadata?: unknown;
5048
- } | {
5049
- type: "video";
5050
- source: {
5051
- value: string;
5052
- type: "data";
5053
- mimeType: string;
5054
- } | {
5055
- value: string;
5056
- type: "url";
5057
- mimeType?: string | undefined;
5058
- };
5059
- metadata?: unknown;
5060
- } | {
5061
- type: "document";
5062
- source: {
5063
- value: string;
5064
- type: "data";
5065
- mimeType: string;
5066
- } | {
5067
- value: string;
5068
- type: "url";
5069
- mimeType?: string | undefined;
5070
- };
5071
- metadata?: unknown;
5072
- } | {
5073
- type: "binary";
5074
- mimeType: string;
5075
- id?: string | undefined;
5076
- data?: string | undefined;
5077
- url?: string | undefined;
5078
- filename?: string | undefined;
5079
- })[];
5080
- name?: string | undefined;
5081
- encryptedValue?: string | undefined;
5082
- metadata?: Record<string, any> | undefined;
5083
- subagentRunId?: string | undefined;
5084
- } | {
5085
- id: string;
5086
- role: "tool";
5087
- content: string;
5088
- toolCallId: string;
5089
- encryptedValue?: string | undefined;
5090
- metadata?: Record<string, any> | undefined;
5091
- subagentRunId?: string | undefined;
5092
- error?: string | undefined;
5093
- } | {
5094
- id: string;
5095
- role: "activity";
5096
- content: Record<string, any>;
5097
- activityType: string;
5098
- metadata?: Record<string, any> | undefined;
5099
- subagentRunId?: string | undefined;
5100
- } | {
5101
- id: string;
5102
- role: "reasoning";
5103
- content: string;
5104
- encryptedValue?: string | undefined;
5105
- metadata?: Record<string, any> | undefined;
5106
- subagentRunId?: string | undefined;
5107
- })[]>;
2907
+ messages: _angular_core.InputSignal<Message[]>;
5108
2908
  /** Current agent state forwarded to message-view extension slots. */
5109
2909
  state: _angular_core.InputSignal<unknown>;
5110
2910
  agentId: _angular_core.InputSignal<string | undefined>;
@@ -5249,130 +3049,7 @@ declare class CopilotChatView implements OnInit, OnChanges {
5249
3049
  private handlers;
5250
3050
  protected readonly chatState: ChatState | null;
5251
3051
  protected readonly UploadIcon: CopilotIconData;
5252
- messages: _angular_core.InputSignal<({
5253
- id: string;
5254
- role: "developer";
5255
- content: string;
5256
- name?: string | undefined;
5257
- encryptedValue?: string | undefined;
5258
- metadata?: Record<string, any> | undefined;
5259
- subagentRunId?: string | undefined;
5260
- } | {
5261
- id: string;
5262
- role: "system";
5263
- content: string;
5264
- name?: string | undefined;
5265
- encryptedValue?: string | undefined;
5266
- metadata?: Record<string, any> | undefined;
5267
- subagentRunId?: string | undefined;
5268
- } | {
5269
- id: string;
5270
- role: "assistant";
5271
- name?: string | undefined;
5272
- encryptedValue?: string | undefined;
5273
- metadata?: Record<string, any> | undefined;
5274
- content?: string | undefined;
5275
- subagentRunId?: string | undefined;
5276
- toolCalls?: {
5277
- function: {
5278
- name: string;
5279
- arguments: string;
5280
- };
5281
- type: "function";
5282
- id: string;
5283
- encryptedValue?: string | undefined;
5284
- metadata?: Record<string, any> | undefined;
5285
- }[] | undefined;
5286
- } | {
5287
- id: string;
5288
- role: "user";
5289
- content: string | ({
5290
- type: "text";
5291
- text: string;
5292
- } | {
5293
- type: "image";
5294
- source: {
5295
- value: string;
5296
- type: "data";
5297
- mimeType: string;
5298
- } | {
5299
- value: string;
5300
- type: "url";
5301
- mimeType?: string | undefined;
5302
- };
5303
- metadata?: unknown;
5304
- } | {
5305
- type: "audio";
5306
- source: {
5307
- value: string;
5308
- type: "data";
5309
- mimeType: string;
5310
- } | {
5311
- value: string;
5312
- type: "url";
5313
- mimeType?: string | undefined;
5314
- };
5315
- metadata?: unknown;
5316
- } | {
5317
- type: "video";
5318
- source: {
5319
- value: string;
5320
- type: "data";
5321
- mimeType: string;
5322
- } | {
5323
- value: string;
5324
- type: "url";
5325
- mimeType?: string | undefined;
5326
- };
5327
- metadata?: unknown;
5328
- } | {
5329
- type: "document";
5330
- source: {
5331
- value: string;
5332
- type: "data";
5333
- mimeType: string;
5334
- } | {
5335
- value: string;
5336
- type: "url";
5337
- mimeType?: string | undefined;
5338
- };
5339
- metadata?: unknown;
5340
- } | {
5341
- type: "binary";
5342
- mimeType: string;
5343
- id?: string | undefined;
5344
- data?: string | undefined;
5345
- url?: string | undefined;
5346
- filename?: string | undefined;
5347
- })[];
5348
- name?: string | undefined;
5349
- encryptedValue?: string | undefined;
5350
- metadata?: Record<string, any> | undefined;
5351
- subagentRunId?: string | undefined;
5352
- } | {
5353
- id: string;
5354
- role: "tool";
5355
- content: string;
5356
- toolCallId: string;
5357
- encryptedValue?: string | undefined;
5358
- metadata?: Record<string, any> | undefined;
5359
- subagentRunId?: string | undefined;
5360
- error?: string | undefined;
5361
- } | {
5362
- id: string;
5363
- role: "activity";
5364
- content: Record<string, any>;
5365
- activityType: string;
5366
- metadata?: Record<string, any> | undefined;
5367
- subagentRunId?: string | undefined;
5368
- } | {
5369
- id: string;
5370
- role: "reasoning";
5371
- content: string;
5372
- encryptedValue?: string | undefined;
5373
- metadata?: Record<string, any> | undefined;
5374
- subagentRunId?: string | undefined;
5375
- })[]>;
3052
+ messages: _angular_core.InputSignal<Message[]>;
5376
3053
  /** Current agent state forwarded to message-view extension slots. */
5377
3054
  state: _angular_core.InputSignal<unknown>;
5378
3055
  agentId: _angular_core.InputSignal<string | undefined>;
@@ -5444,130 +3121,7 @@ declare class CopilotChatView implements OnInit, OnChanges {
5444
3121
  protected readonly defaultFeatherComponent: typeof CopilotChatViewFeather;
5445
3122
  protected readonly defaultDisclaimerComponent: typeof CopilotChatViewDisclaimer;
5446
3123
  protected readonly labels: _copilotkit_angular.CopilotChatLabels;
5447
- protected messagesValue: _angular_core.Signal<({
5448
- id: string;
5449
- role: "developer";
5450
- content: string;
5451
- name?: string | undefined;
5452
- encryptedValue?: string | undefined;
5453
- metadata?: Record<string, any> | undefined;
5454
- subagentRunId?: string | undefined;
5455
- } | {
5456
- id: string;
5457
- role: "system";
5458
- content: string;
5459
- name?: string | undefined;
5460
- encryptedValue?: string | undefined;
5461
- metadata?: Record<string, any> | undefined;
5462
- subagentRunId?: string | undefined;
5463
- } | {
5464
- id: string;
5465
- role: "assistant";
5466
- name?: string | undefined;
5467
- encryptedValue?: string | undefined;
5468
- metadata?: Record<string, any> | undefined;
5469
- content?: string | undefined;
5470
- subagentRunId?: string | undefined;
5471
- toolCalls?: {
5472
- function: {
5473
- name: string;
5474
- arguments: string;
5475
- };
5476
- type: "function";
5477
- id: string;
5478
- encryptedValue?: string | undefined;
5479
- metadata?: Record<string, any> | undefined;
5480
- }[] | undefined;
5481
- } | {
5482
- id: string;
5483
- role: "user";
5484
- content: string | ({
5485
- type: "text";
5486
- text: string;
5487
- } | {
5488
- type: "image";
5489
- source: {
5490
- value: string;
5491
- type: "data";
5492
- mimeType: string;
5493
- } | {
5494
- value: string;
5495
- type: "url";
5496
- mimeType?: string | undefined;
5497
- };
5498
- metadata?: unknown;
5499
- } | {
5500
- type: "audio";
5501
- source: {
5502
- value: string;
5503
- type: "data";
5504
- mimeType: string;
5505
- } | {
5506
- value: string;
5507
- type: "url";
5508
- mimeType?: string | undefined;
5509
- };
5510
- metadata?: unknown;
5511
- } | {
5512
- type: "video";
5513
- source: {
5514
- value: string;
5515
- type: "data";
5516
- mimeType: string;
5517
- } | {
5518
- value: string;
5519
- type: "url";
5520
- mimeType?: string | undefined;
5521
- };
5522
- metadata?: unknown;
5523
- } | {
5524
- type: "document";
5525
- source: {
5526
- value: string;
5527
- type: "data";
5528
- mimeType: string;
5529
- } | {
5530
- value: string;
5531
- type: "url";
5532
- mimeType?: string | undefined;
5533
- };
5534
- metadata?: unknown;
5535
- } | {
5536
- type: "binary";
5537
- mimeType: string;
5538
- id?: string | undefined;
5539
- data?: string | undefined;
5540
- url?: string | undefined;
5541
- filename?: string | undefined;
5542
- })[];
5543
- name?: string | undefined;
5544
- encryptedValue?: string | undefined;
5545
- metadata?: Record<string, any> | undefined;
5546
- subagentRunId?: string | undefined;
5547
- } | {
5548
- id: string;
5549
- role: "tool";
5550
- content: string;
5551
- toolCallId: string;
5552
- encryptedValue?: string | undefined;
5553
- metadata?: Record<string, any> | undefined;
5554
- subagentRunId?: string | undefined;
5555
- error?: string | undefined;
5556
- } | {
5557
- id: string;
5558
- role: "activity";
5559
- content: Record<string, any>;
5560
- activityType: string;
5561
- metadata?: Record<string, any> | undefined;
5562
- subagentRunId?: string | undefined;
5563
- } | {
5564
- id: string;
5565
- role: "reasoning";
5566
- content: string;
5567
- encryptedValue?: string | undefined;
5568
- metadata?: Record<string, any> | undefined;
5569
- subagentRunId?: string | undefined;
5570
- })[]>;
3124
+ protected messagesValue: _angular_core.Signal<Message[]>;
5571
3125
  protected autoScrollSignal: _angular_core.Signal<boolean>;
5572
3126
  protected showCursorSignal: _angular_core.Signal<boolean>;
5573
3127
  protected disclaimerTextSignal: _angular_core.Signal<string | undefined>;
@@ -5591,130 +3145,7 @@ declare class CopilotChatView implements OnInit, OnChanges {
5591
3145
  scrollToBottomButtonClass: string | undefined;
5592
3146
  inputContainerHeight: number;
5593
3147
  isResizing: boolean;
5594
- messages: ({
5595
- id: string;
5596
- role: "developer";
5597
- content: string;
5598
- name?: string | undefined;
5599
- encryptedValue?: string | undefined;
5600
- metadata?: Record<string, any> | undefined;
5601
- subagentRunId?: string | undefined;
5602
- } | {
5603
- id: string;
5604
- role: "system";
5605
- content: string;
5606
- name?: string | undefined;
5607
- encryptedValue?: string | undefined;
5608
- metadata?: Record<string, any> | undefined;
5609
- subagentRunId?: string | undefined;
5610
- } | {
5611
- id: string;
5612
- role: "assistant";
5613
- name?: string | undefined;
5614
- encryptedValue?: string | undefined;
5615
- metadata?: Record<string, any> | undefined;
5616
- content?: string | undefined;
5617
- subagentRunId?: string | undefined;
5618
- toolCalls?: {
5619
- function: {
5620
- name: string;
5621
- arguments: string;
5622
- };
5623
- type: "function";
5624
- id: string;
5625
- encryptedValue?: string | undefined;
5626
- metadata?: Record<string, any> | undefined;
5627
- }[] | undefined;
5628
- } | {
5629
- id: string;
5630
- role: "user";
5631
- content: string | ({
5632
- type: "text";
5633
- text: string;
5634
- } | {
5635
- type: "image";
5636
- source: {
5637
- value: string;
5638
- type: "data";
5639
- mimeType: string;
5640
- } | {
5641
- value: string;
5642
- type: "url";
5643
- mimeType?: string | undefined;
5644
- };
5645
- metadata?: unknown;
5646
- } | {
5647
- type: "audio";
5648
- source: {
5649
- value: string;
5650
- type: "data";
5651
- mimeType: string;
5652
- } | {
5653
- value: string;
5654
- type: "url";
5655
- mimeType?: string | undefined;
5656
- };
5657
- metadata?: unknown;
5658
- } | {
5659
- type: "video";
5660
- source: {
5661
- value: string;
5662
- type: "data";
5663
- mimeType: string;
5664
- } | {
5665
- value: string;
5666
- type: "url";
5667
- mimeType?: string | undefined;
5668
- };
5669
- metadata?: unknown;
5670
- } | {
5671
- type: "document";
5672
- source: {
5673
- value: string;
5674
- type: "data";
5675
- mimeType: string;
5676
- } | {
5677
- value: string;
5678
- type: "url";
5679
- mimeType?: string | undefined;
5680
- };
5681
- metadata?: unknown;
5682
- } | {
5683
- type: "binary";
5684
- mimeType: string;
5685
- id?: string | undefined;
5686
- data?: string | undefined;
5687
- url?: string | undefined;
5688
- filename?: string | undefined;
5689
- })[];
5690
- name?: string | undefined;
5691
- encryptedValue?: string | undefined;
5692
- metadata?: Record<string, any> | undefined;
5693
- subagentRunId?: string | undefined;
5694
- } | {
5695
- id: string;
5696
- role: "tool";
5697
- content: string;
5698
- toolCallId: string;
5699
- encryptedValue?: string | undefined;
5700
- metadata?: Record<string, any> | undefined;
5701
- subagentRunId?: string | undefined;
5702
- error?: string | undefined;
5703
- } | {
5704
- id: string;
5705
- role: "activity";
5706
- content: Record<string, any>;
5707
- activityType: string;
5708
- metadata?: Record<string, any> | undefined;
5709
- subagentRunId?: string | undefined;
5710
- } | {
5711
- id: string;
5712
- role: "reasoning";
5713
- content: string;
5714
- encryptedValue?: string | undefined;
5715
- metadata?: Record<string, any> | undefined;
5716
- subagentRunId?: string | undefined;
5717
- })[];
3148
+ messages: Message[];
5718
3149
  state: unknown;
5719
3150
  agentId: string | undefined;
5720
3151
  messageView: Type<any> | TemplateRef<any> | undefined;
@@ -5975,7 +3406,8 @@ declare class CopilotThreadsDrawer {
5975
3406
  * detect the no-license case; we therefore also require a positive
5976
3407
  * license-present signal. Only a resolved `valid`/`expiring` status counts as
5977
3408
  * present — a resolved `none`/`expired`/`invalid` gates the drawer to the
5978
- * locked view.
3409
+ * locked view. `unknown` is an unrecovered retryable entitlement lookup, not
3410
+ * a settled negative: fetch the list and let the threads endpoint decide.
5979
3411
  */
5980
3412
  protected readonly licensed: _angular_core.Signal<boolean>;
5981
3413
  /**
@@ -6215,14 +3647,7 @@ interface ActivityRender {
6215
3647
  declare class CopilotActivity {
6216
3648
  #private;
6217
3649
  /** The activity message to render. */
6218
- readonly message: _angular_core.InputSignal<{
6219
- id: string;
6220
- role: "activity";
6221
- content: Record<string, any>;
6222
- activityType: string;
6223
- metadata?: Record<string, any> | undefined;
6224
- subagentRunId?: string | undefined;
6225
- }>;
3650
+ readonly message: _angular_core.InputSignal<ActivityMessage$1>;
6226
3651
  /** Agent scope used for renderer resolution and passed to the renderer. */
6227
3652
  readonly agentId: _angular_core.InputSignal<string | undefined>;
6228
3653
  protected resolveRender(message: ActivityMessage$1): ActivityRender | undefined;
@@ -6235,17 +3660,8 @@ type A2UIOperation = Record<string, unknown>;
6235
3660
  declare class CopilotA2UIActivityRenderer implements ActivityRenderer<unknown> {
6236
3661
  readonly activityType: _angular_core.InputSignal<string>;
6237
3662
  readonly content: _angular_core.InputSignal<unknown>;
6238
- readonly message: _angular_core.InputSignal<{
6239
- id: string;
6240
- role: "activity";
6241
- content: Record<string, any>;
6242
- activityType: string;
6243
- metadata?: Record<string, any> | undefined;
6244
- subagentRunId?: string | undefined;
6245
- }>;
3663
+ readonly message: _angular_core.InputSignal<ActivityMessage>;
6246
3664
  readonly agent: _angular_core.InputSignal<AbstractAgent | undefined>;
6247
- private readonly surfaceRef;
6248
- private readonly copilotKit;
6249
3665
  protected readonly config: _copilotkit_angular.CopilotKitConfig;
6250
3666
  private readonly platformId;
6251
3667
  private readonly zone;
@@ -6253,10 +3669,8 @@ declare class CopilotA2UIActivityRenderer implements ActivityRenderer<unknown> {
6253
3669
  protected readonly hasOperations: _angular_core.Signal<boolean>;
6254
3670
  protected readonly surfaceReady: _angular_core.WritableSignal<boolean>;
6255
3671
  protected readonly loaderContent: _angular_core.WritableSignal<unknown>;
6256
- private readonly markSurfaceReady;
6257
3672
  constructor();
6258
- protected handleAction(event: Event): Promise<void>;
6259
- protected handleError(event: Event): void;
3673
+ protected handleRendered(): void;
6260
3674
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotA2UIActivityRenderer, never>;
6261
3675
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotA2UIActivityRenderer, "copilot-a2ui-activity-renderer", never, { "activityType": { "alias": "activityType"; "required": true; "isSignal": true; }; "content": { "alias": "content"; "required": true; "isSignal": true; }; "message": { "alias": "message"; "required": true; "isSignal": true; }; "agent": { "alias": "agent"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
6262
3676
  }
@@ -6319,16 +3733,10 @@ interface RenderA2UIArgs extends Record<string, unknown> {
6319
3733
  declare class CopilotA2UIToolRenderer implements ToolRenderer<RenderA2UIArgs> {
6320
3734
  readonly toolCall: _angular_core.InputSignal<AngularToolCall<RenderA2UIArgs>>;
6321
3735
  readonly agent: _angular_core.InputSignal<AbstractAgent | undefined>;
6322
- private readonly surfaceRef;
6323
- private readonly config;
6324
- private readonly copilotKit;
6325
3736
  protected readonly renderedOperations: _angular_core.Signal<A2UIOperation[]>;
6326
3737
  protected readonly tokens: _angular_core.Signal<number>;
6327
3738
  protected readonly phase: _angular_core.Signal<0 | 1 | 2 | 3>;
6328
3739
  protected readonly isHidden: _angular_core.Signal<boolean>;
6329
- constructor();
6330
- protected handleError(event: Event): void;
6331
- protected handleAction(event: Event): Promise<void>;
6332
3740
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotA2UIToolRenderer, never>;
6333
3741
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotA2UIToolRenderer, "copilot-a2ui-tool-renderer", never, { "toolCall": { "alias": "toolCall"; "required": true; "isSignal": true; }; "agent": { "alias": "agent"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
6334
3742
  }
@@ -6413,14 +3821,7 @@ declare class CopilotOpenGenerativeUIActivityRenderer implements ActivityRendere
6413
3821
  jsExpressions?: string[] | undefined;
6414
3822
  jsExpressionsComplete?: boolean | undefined;
6415
3823
  }>;
6416
- readonly message: _angular_core.InputSignal<{
6417
- id: string;
6418
- role: "activity";
6419
- content: Record<string, any>;
6420
- activityType: string;
6421
- metadata?: Record<string, any> | undefined;
6422
- subagentRunId?: string | undefined;
6423
- }>;
3824
+ readonly message: _angular_core.InputSignal<ActivityMessage>;
6424
3825
  readonly agent: _angular_core.InputSignal<AbstractAgent | undefined>;
6425
3826
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotOpenGenerativeUIActivityRenderer, never>;
6426
3827
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotOpenGenerativeUIActivityRenderer, "copilot-open-generative-ui-activity-renderer", never, { "activityType": { "alias": "activityType"; "required": true; "isSignal": true; }; "content": { "alias": "content"; "required": true; "isSignal": true; }; "message": { "alias": "message"; "required": true; "isSignal": true; }; "agent": { "alias": "agent"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
@@ -6446,6 +3847,6 @@ declare class CopilotOpenGenerativeUIToolRenderer implements ToolRenderer<Genera
6446
3847
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotOpenGenerativeUIToolRenderer, "copilot-open-generative-ui-tool-renderer", never, { "toolCall": { "alias": "toolCall"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
6447
3848
  }
6448
3849
 
6449
- 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, CopilotActivity, 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, CopilotChatViewInputMeasure, 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, injectCapabilities, injectChatConfiguration, injectChatLabels, injectChatState, injectCopilotKitConfig, injectInterrupt, injectMemories, injectThreads, isComponentType, isSlotValue, normalizeSlotValue, parseToolCallArguments, pickToolCallHandler, provideCopilotChatConfiguration, provideCopilotChatLabels, provideCopilotKit, provideSlots, readA2UILifecycleContent, registerComponent, registerFrontendTool, registerHumanInTheLoop, registerRenderActivityMessage, registerRenderToolCall, renderSlot, safeToolValue, transcribeAudio, ɵCOPILOTKIT_BUILT_IN_ACTIVITY_RENDERERS, ɵCOPILOTKIT_INSPECTOR_DEVELOPMENT_MODE };
6450
- 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, RegisterComponentConfig, RenderA2UIArgs, RenderActivityMessageConfig, RenderSlotOptions, RenderToolCallConfig, ResizeState, SandboxFunction, ScrollBehavior, ScrollState, SendButtonContext, SlotConfig, SlotContext, SlotOutputs, SlotRegistryEntry, SlotValue, Thread, ThumbsDownButtonContext, ThumbsUpButtonContext, ToolCallHandler, ToolRenderer, ToolbarContext, ToolsMenuItem, TranscriptionErrorInfo, TranscriptionResult, UserMessageToolbarContext, WithSlots };
3850
+ 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, CopilotActivity, 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, CopilotChatViewInputMeasure, 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_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, injectCapabilities, injectChatConfiguration, injectChatLabels, injectChatState, injectCopilotKitConfig, injectInterrupt, injectMemories, injectThreads, isComponentType, isSlotValue, normalizeSlotValue, parseToolCallArguments, pickToolCallHandler, provideCopilotChatConfiguration, provideCopilotChatLabels, provideCopilotKit, provideSlots, readA2UILifecycleContent, registerComponent, registerFrontendTool, registerHumanInTheLoop, registerRenderActivityMessage, registerRenderToolCall, renderSlot, safeToolValue, transcribeAudio, ɵCOPILOTKIT_BUILT_IN_ACTIVITY_RENDERERS, ɵCOPILOTKIT_INSPECTOR_DEVELOPMENT_MODE, ɵresolvePublicKeyHeaderDefaults };
3851
+ export type { A2UICatalog, A2UIClientEventMessage, A2UIConfig, A2UIDebugExposure, A2UILifecycleContent, A2UILifecycleStatus, A2UIRecoveryOptions, A2UISurfaceError, 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, RegisterComponentConfig, RenderA2UIArgs, RenderActivityMessageConfig, RenderSlotOptions, RenderToolCallConfig, ResizeState, SandboxFunction, ScrollBehavior, ScrollState, SendButtonContext, SlotConfig, SlotContext, SlotOutputs, SlotRegistryEntry, SlotValue, Thread, ThumbsDownButtonContext, ThumbsUpButtonContext, ToolCallHandler, ToolRenderer, ToolbarContext, ToolsMenuItem, TranscriptionErrorInfo, TranscriptionResult, UserMessageToolbarContext, WithSlots };
6451
3852
  //# sourceMappingURL=copilotkit-angular.d.ts.map