@copilotkit/angular 0.5.1 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,15 @@
1
1
  import * as _angular_core from '@angular/core';
2
- import { Type, Signal, InjectionToken, Provider, Injector, DestroyRef, WritableSignal, OnDestroy, NgZone, ElementRef, TemplateRef, ViewContainerRef, ComponentRef, EmbeddedViewRef, OnInit, OnChanges, ChangeDetectorRef, SimpleChanges, AfterViewInit, EventEmitter } from '@angular/core';
3
- import * as _ag_ui_client from '@ag-ui/client';
4
- import { AbstractAgent, ActivityMessage, ToolCall, Interrupt, ResumeEntry, RunAgentResult, Message, Context, AssistantMessage } from '@ag-ui/client';
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, AssistantMessage, Message, ToolCall, Interrupt, ResumeEntry, RunAgentResult, Context } from '@ag-ui/client';
5
4
  export { AssistantMessage, Message } from '@ag-ui/client';
6
- 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, CopilotKitMessageFilter, SuggestionsConfig, CopilotKitCoreRuntimeConnectionStatus, CopilotRuntimeTransport, ThreadEndpointRuntimeInfo, IntelligenceRuntimeInfo, RuntimeLicenseStatus, CopilotKitCoreGetSuggestionsResult, CopilotKitCore, Suggestion, Memory, MemoryRealtimeStatus, NewMemory, MemoryChanges } from '@copilotkit/core';
7
6
  export { DynamicSuggestionsConfig, Memory, MemoryChanges, MemoryKind, MemoryScope, NewMemory, StaticSuggestionsConfig, Suggestion, SuggestionsConfig } from '@copilotkit/core';
8
7
  import { StandardSchemaV1, RuntimeEntitlementResponse, Attachment, TranscriptionErrorCode, AttachmentsConfig, AttachmentModality, InputContent, ImageInputPart, AudioInputPart, VideoInputPart, DocumentInputPart } from '@copilotkit/shared';
9
- 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';
10
9
  import { z } from 'zod';
11
- import { Theme, Catalog, LitComponentImplementation, LitRenderable } from '@copilotkit/a2ui-renderer/web-components';
12
- 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';
13
13
  import { ScrollDispatcher, ViewportRuler } from '@angular/cdk/scrolling';
14
14
  import { Observable } from 'rxjs';
15
15
  import { ClassValue } from 'clsx';
@@ -86,6 +86,12 @@ interface FrontendToolConfig<Args extends Record<string, unknown> = Record<strin
86
86
  */
87
87
  handler?: (args: Args, context: FrontendToolHandlerContext) => Promise<unknown>;
88
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;
89
95
  agentId?: string;
90
96
  /**
91
97
  * Also expose this tool to browser agents through the WebMCP API
@@ -185,7 +191,7 @@ declare function registerRenderActivityMessage(config: RenderActivityMessageConf
185
191
  declare const OPEN_GENERATIVE_UI_ACTIVITY_TYPE = "open-generative-ui";
186
192
  declare const GENERATE_SANDBOXED_UI_TOOL_NAME = "generateSandboxedUi";
187
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).";
188
- declare const GENERATE_SANDBOXED_UI_DESCRIPTION: string;
194
+
189
195
  declare const OpenGenerativeUIContentSchema: z.ZodObject<{
190
196
  initialHeight: z.ZodOptional<z.ZodNumber>;
191
197
  generating: z.ZodOptional<z.ZodBoolean>;
@@ -255,10 +261,36 @@ interface OpenGenerativeUIConfig {
255
261
  designSkill?: string;
256
262
  }
257
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
+
258
284
  interface A2UIConfig {
259
- theme?: Theme;
260
- catalog?: Catalog<LitComponentImplementation>;
261
- 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>;
262
294
  includeSchema?: boolean;
263
295
  recovery?: A2UIRecoveryOptions;
264
296
  }
@@ -275,6 +307,30 @@ interface CopilotKitConfig {
275
307
  headers?: Record<string, string>;
276
308
  /** Fetch credentials mode used for CopilotKit runtime requests. */
277
309
  credentials?: RequestCredentials;
310
+ /**
311
+ * Rewrites the message list sent to runtime agents on every run.
312
+ *
313
+ * CopilotKit sends the whole thread each time. When your agent already
314
+ * stores the conversation, most of that payload is waste, and an agent that
315
+ * merges the inbound list with its own store can show the model every turn
316
+ * twice. Return the messages to send:
317
+ *
318
+ * ```ts
319
+ * provideCopilotKit({
320
+ * runtimeUrl: "/api/copilotkit",
321
+ * messageFilter: (messages) => messages.slice(-1),
322
+ * });
323
+ * ```
324
+ *
325
+ * The filter changes the request body only. The transcript the UI renders is
326
+ * untouched. Broken tool-call pairs are repaired before the request is sent,
327
+ * so a filter this blunt cannot strand a tool result mid-HITL.
328
+ *
329
+ * Agents reached through your CopilotRuntime honor this. An agent your app
330
+ * passes in directly does not, and neither Intelligence runs nor suggestion
331
+ * runs are ever filtered.
332
+ */
333
+ messageFilter?: CopilotKitMessageFilter;
278
334
  licenseKey?: string;
279
335
  properties?: Record<string, unknown>;
280
336
  agents?: Record<string, AbstractAgent>;
@@ -298,7 +354,7 @@ interface CopilotKitConfig {
298
354
  }
299
355
  declare const COPILOT_KIT_CONFIG: InjectionToken<CopilotKitConfig>;
300
356
  declare function injectCopilotKitConfig(): CopilotKitConfig;
301
- declare function provideCopilotKit(config: CopilotKitConfig): Provider;
357
+ declare function provideCopilotKit(config?: CopilotKitConfig): Provider;
302
358
 
303
359
  declare class CopilotKit {
304
360
  #private;
@@ -317,6 +373,12 @@ declare class CopilotKit {
317
373
  * consumers re-run when `/info` lands.
318
374
  */
319
375
  readonly threadEndpoints: Signal<ThreadEndpointRuntimeInfo | undefined>;
376
+ /**
377
+ * Voice transcription capability advertised by the connected runtime's
378
+ * `/info` response. The value remains false until the runtime explicitly
379
+ * reports support.
380
+ */
381
+ readonly audioFileTranscriptionEnabled: Signal<boolean>;
320
382
  /**
321
383
  * Intelligence runtime info advertised by the connected runtime's `/info`
322
384
  * response, or `undefined` before the runtime reports `Connected`. Carries
@@ -369,6 +431,7 @@ declare class CopilotKit {
369
431
  runtimeTransport?: CopilotRuntimeTransport;
370
432
  headers?: Record<string, string>;
371
433
  credentials?: RequestCredentials;
434
+ messageFilter?: CopilotKitMessageFilter;
372
435
  properties?: Record<string, unknown>;
373
436
  agents?: Record<string, AbstractAgent>;
374
437
  selfManagedAgents?: Record<string, AbstractAgent>;
@@ -425,149 +488,8 @@ interface PickToolCallHandlerOptions {
425
488
  declare function pickToolCallHandler(options: PickToolCallHandlerOptions): ToolCallHandler | undefined;
426
489
  declare class RenderToolCalls {
427
490
  #private;
428
- readonly message: _angular_core.InputSignal<{
429
- id: string;
430
- role: "assistant";
431
- name?: string | undefined;
432
- encryptedValue?: string | undefined;
433
- metadata?: Record<string, any> | undefined;
434
- content?: string | undefined;
435
- subagentRunId?: string | undefined;
436
- toolCalls?: {
437
- function: {
438
- name: string;
439
- arguments: string;
440
- };
441
- type: "function";
442
- id: string;
443
- encryptedValue?: string | undefined;
444
- metadata?: Record<string, any> | undefined;
445
- }[] | undefined;
446
- }>;
447
- readonly messages: _angular_core.InputSignal<({
448
- id: string;
449
- role: "developer";
450
- content: string;
451
- name?: string | undefined;
452
- encryptedValue?: string | undefined;
453
- metadata?: Record<string, any> | undefined;
454
- subagentRunId?: string | undefined;
455
- } | {
456
- id: string;
457
- role: "system";
458
- content: string;
459
- name?: string | undefined;
460
- encryptedValue?: string | undefined;
461
- metadata?: Record<string, any> | undefined;
462
- subagentRunId?: string | undefined;
463
- } | {
464
- id: string;
465
- role: "assistant";
466
- name?: string | undefined;
467
- encryptedValue?: string | undefined;
468
- metadata?: Record<string, any> | undefined;
469
- content?: string | undefined;
470
- subagentRunId?: string | undefined;
471
- toolCalls?: {
472
- function: {
473
- name: string;
474
- arguments: string;
475
- };
476
- type: "function";
477
- id: string;
478
- encryptedValue?: string | undefined;
479
- metadata?: Record<string, any> | undefined;
480
- }[] | undefined;
481
- } | {
482
- id: string;
483
- role: "user";
484
- content: string | ({
485
- type: "text";
486
- text: string;
487
- } | {
488
- type: "image";
489
- source: {
490
- value: string;
491
- type: "data";
492
- mimeType: string;
493
- } | {
494
- value: string;
495
- type: "url";
496
- mimeType?: string | undefined;
497
- };
498
- metadata?: unknown;
499
- } | {
500
- type: "audio";
501
- source: {
502
- value: string;
503
- type: "data";
504
- mimeType: string;
505
- } | {
506
- value: string;
507
- type: "url";
508
- mimeType?: string | undefined;
509
- };
510
- metadata?: unknown;
511
- } | {
512
- type: "video";
513
- source: {
514
- value: string;
515
- type: "data";
516
- mimeType: string;
517
- } | {
518
- value: string;
519
- type: "url";
520
- mimeType?: string | undefined;
521
- };
522
- metadata?: unknown;
523
- } | {
524
- type: "document";
525
- source: {
526
- value: string;
527
- type: "data";
528
- mimeType: string;
529
- } | {
530
- value: string;
531
- type: "url";
532
- mimeType?: string | undefined;
533
- };
534
- metadata?: unknown;
535
- } | {
536
- type: "binary";
537
- mimeType: string;
538
- id?: string | undefined;
539
- data?: string | undefined;
540
- url?: string | undefined;
541
- filename?: string | undefined;
542
- })[];
543
- name?: string | undefined;
544
- encryptedValue?: string | undefined;
545
- metadata?: Record<string, any> | undefined;
546
- subagentRunId?: string | undefined;
547
- } | {
548
- id: string;
549
- role: "tool";
550
- content: string;
551
- toolCallId: string;
552
- encryptedValue?: string | undefined;
553
- metadata?: Record<string, any> | undefined;
554
- subagentRunId?: string | undefined;
555
- error?: string | undefined;
556
- } | {
557
- id: string;
558
- role: "activity";
559
- content: Record<string, any>;
560
- activityType: string;
561
- metadata?: Record<string, any> | undefined;
562
- subagentRunId?: string | undefined;
563
- } | {
564
- id: string;
565
- role: "reasoning";
566
- content: string;
567
- encryptedValue?: string | undefined;
568
- metadata?: Record<string, any> | undefined;
569
- subagentRunId?: string | undefined;
570
- })[]>;
491
+ readonly message: _angular_core.InputSignal<AssistantMessage>;
492
+ readonly messages: _angular_core.InputSignal<Message[]>;
571
493
  readonly isLoading: _angular_core.InputSignal<boolean>;
572
494
  readonly agentId: _angular_core.InputSignal<string | undefined>;
573
495
  protected pickRenderer(name: string): ToolCallHandler | undefined;
@@ -636,26 +558,8 @@ declare class InterruptExpiredError extends Error {
636
558
  declare class InterruptController<TValue = unknown, TResult = never> {
637
559
  #private;
638
560
  readonly event: Signal<InterruptEvent<TValue> | null>;
639
- readonly interrupt: Signal<{
640
- id: string;
641
- reason: string;
642
- message?: string | undefined;
643
- metadata?: Record<string, any> | undefined;
644
- subagentRunId?: string | undefined;
645
- toolCallId?: string | undefined;
646
- responseSchema?: Record<string, any> | undefined;
647
- expiresAt?: string | undefined;
648
- } | null>;
649
- readonly interrupts: Signal<readonly {
650
- id: string;
651
- reason: string;
652
- message?: string | undefined;
653
- metadata?: Record<string, any> | undefined;
654
- subagentRunId?: string | undefined;
655
- toolCallId?: string | undefined;
656
- responseSchema?: Record<string, any> | undefined;
657
- expiresAt?: string | undefined;
658
- }[]>;
561
+ readonly interrupt: Signal<Interrupt | null>;
562
+ readonly interrupts: Signal<readonly Interrupt[]>;
659
563
  readonly result: Signal<TResult | null>;
660
564
  readonly error: Signal<unknown>;
661
565
  readonly hasInterrupt: Signal<boolean>;
@@ -1400,6 +1304,11 @@ declare function injectMemories(): MemoriesController;
1400
1304
  * @internal - This type is for internal use only
1401
1305
  */
1402
1306
  type SlotValue<T = any> = Type<T> | TemplateRef<T>;
1307
+ /**
1308
+ * Handlers for a slot component's outputs, keyed by the output's public
1309
+ * (template) name. Keys that do not match a declared output are ignored.
1310
+ */
1311
+ type SlotOutputs = Record<string, (event: any) => void>;
1403
1312
  /**
1404
1313
  * Configuration for a slot
1405
1314
  * @internal - This interface is for internal use only
@@ -1431,8 +1340,8 @@ interface RenderSlotOptions<T = any> {
1431
1340
  slot?: SlotValue<T>;
1432
1341
  defaultComponent: Type<T>;
1433
1342
  props?: Partial<T>;
1434
- injector?: any;
1435
- outputs?: Record<string, (event: any) => void>;
1343
+ injector?: Injector;
1344
+ outputs?: SlotOutputs;
1436
1345
  }
1437
1346
  /**
1438
1347
  * Injection token for slot configuration
@@ -1451,7 +1360,12 @@ type WithSlots<S extends Record<string, Type<any>>, Rest = object> = {
1451
1360
 
1452
1361
  /**
1453
1362
  * Renders a slot value into a ViewContainerRef.
1454
- * This is the core utility for slot rendering.
1363
+ *
1364
+ * Templates receive `{ $implicit: props, props }` as their context. Components
1365
+ * get individual `props` keys bound to matching inputs, or the entire object
1366
+ * when the component declares a `props` input. `outputs` are matched by public
1367
+ * name via {@link slotBindings}; bindings are applied on the next change
1368
+ * detection pass.
1455
1369
  *
1456
1370
  * @param viewContainer - The ViewContainerRef to render into
1457
1371
  * @param options - Options for rendering the slot
@@ -1473,16 +1387,15 @@ type WithSlots<S extends Record<string, Type<any>>, Rest = object> = {
1473
1387
  * }
1474
1388
  * ```
1475
1389
  */
1476
- declare function renderSlot<T = any>(viewContainer: ViewContainerRef, options: RenderSlotOptions<T>): ComponentRef<T> | EmbeddedViewRef<T> | null;
1390
+ declare function renderSlot<T = any>(viewContainer: ViewContainerRef, options: RenderSlotOptions<T>): ComponentRef<T> | EmbeddedViewRef<T>;
1477
1391
  /**
1478
- * Checks if a value is a component type.
1479
- * Simplified check - rely on try/catch for actual validation.
1392
+ * Checks if a value is an Angular component type.
1480
1393
  */
1481
- declare function isComponentType(value: any): boolean;
1394
+ declare function isComponentType(value: unknown): value is Type<unknown>;
1482
1395
  /**
1483
1396
  * Checks if a value is a valid slot value.
1484
1397
  */
1485
- declare function isSlotValue(value: any): value is SlotValue;
1398
+ declare function isSlotValue(value: unknown): value is SlotValue;
1486
1399
  /**
1487
1400
  * Normalizes a slot value to a consistent format.
1488
1401
  */
@@ -1493,8 +1406,7 @@ declare function normalizeSlotValue<T = any>(value: SlotValue<T> | undefined, de
1493
1406
  * @example
1494
1407
  * ```typescript
1495
1408
  * const slots = createSlotConfig({
1496
- standalone: true,
1497
- * sendButton: CustomSendButton,
1409
+ * sendButton: CustomSendButton,
1498
1410
  * toolbar: 'custom-toolbar-class',
1499
1411
  * footer: footerTemplate
1500
1412
  * }, {
@@ -1511,8 +1423,7 @@ declare function createSlotConfig<T extends Record<string, Type<any>>>(overrides
1511
1423
  * @example
1512
1424
  * ```typescript
1513
1425
  * @Component({
1514
- standalone: true,
1515
- * providers: [
1426
+ * providers: [
1516
1427
  * provideSlots({
1517
1428
  * sendButton: CustomSendButton,
1518
1429
  * toolbar: CustomToolbar
@@ -1556,38 +1467,41 @@ declare function getSlotConfig(): ReadonlyMap<string, SlotRegistryEntry> | null;
1556
1467
  * renderSendButton(this.viewContainer, this.sendButtonOverride);
1557
1468
  * ```
1558
1469
  */
1559
- declare function createSlotRenderer<T>(defaultComponent: Type<T>, slotName?: string): (viewContainer: ViewContainerRef, slot?: SlotValue<T>, props?: Partial<T>, outputs?: Record<string, (event: any) => void>) => ComponentRef<T> | EmbeddedViewRef<T> | null;
1470
+ declare function createSlotRenderer<T>(defaultComponent: Type<T>, slotName?: string): (viewContainer: ViewContainerRef, slot?: SlotValue<T>, props?: Partial<T>, outputs?: SlotOutputs) => ComponentRef<T> | EmbeddedViewRef<T>;
1560
1471
 
1561
1472
  /**
1562
1473
  * @internal - This component is for internal use only.
1563
- * Simple slot component for rendering custom content or defaults.
1564
- * Supports templates and components only.
1474
+ * Renders a slot override, a default component, or the projected fallback.
1475
+ *
1476
+ * - A `TemplateRef` slot is rendered with `context` as its template context,
1477
+ * so context keys are available as `let-` variables.
1478
+ * - A component slot (or `defaultComponent`) is created with `context` keys
1479
+ * bound to its matching inputs and `outputs` handlers bound to its matching
1480
+ * outputs. Bound values stay live; the component is only recreated when the
1481
+ * resolved type, the set of bound input names, or the `injector` changes.
1482
+ * - With neither a slot nor a default component, the projected content shows.
1565
1483
  *
1566
1484
  * @example
1567
1485
  * ```html
1568
- * <!-- With template -->
1569
1486
  * <copilot-slot [slot]="sendButtonTemplate" [context]="buttonContext">
1570
1487
  * <button class="default-btn">Default</button>
1571
1488
  * </copilot-slot>
1572
1489
  * ```
1573
1490
  */
1574
- declare class CopilotSlot implements OnInit, OnChanges {
1575
- private viewContainer;
1576
- private cdr;
1577
- slot: _angular_core.InputSignal<Type<any> | TemplateRef<any> | undefined>;
1578
- context: _angular_core.InputSignal<any>;
1579
- defaultComponent: _angular_core.InputSignal<Type<any> | undefined>;
1580
- outputs: _angular_core.InputSignal<Record<string, (event: any) => void> | undefined>;
1581
- private slotContainer;
1582
- private componentRef?;
1583
- constructor(viewContainer: ViewContainerRef, cdr: ChangeDetectorRef);
1584
- ngOnInit(): void;
1585
- ngOnChanges(changes: SimpleChanges): void;
1586
- isTemplate(value: any): value is TemplateRef<any>;
1587
- private renderSlot;
1588
- private updateComponentProps;
1491
+ declare class CopilotSlot {
1492
+ readonly slot: _angular_core.InputSignal<Type<unknown> | TemplateRef<unknown> | undefined>;
1493
+ readonly context: _angular_core.InputSignal<object | undefined>;
1494
+ readonly defaultComponent: _angular_core.InputSignal<Type<unknown> | undefined>;
1495
+ readonly outputs: _angular_core.InputSignal<SlotOutputs | undefined>;
1496
+ /** Element injector for the created component. */
1497
+ readonly injector: _angular_core.InputSignal<Injector | undefined>;
1498
+ private readonly host;
1499
+ protected readonly template: _angular_core.Signal<TemplateRef<unknown> | undefined>;
1500
+ private readonly componentType;
1501
+ private readonly inputNames;
1502
+ constructor();
1589
1503
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotSlot, never>;
1590
- 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>;
1504
+ 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>;
1591
1505
  }
1592
1506
 
1593
1507
  /**
@@ -1796,141 +1710,20 @@ declare class CopilotChat extends ChatState {
1796
1710
  readonly cdr: ChangeDetectorRef;
1797
1711
  readonly injector: Injector;
1798
1712
  private readonly destroyRef;
1799
- protected messages: _angular_core.Signal<({
1800
- id: string;
1801
- role: "developer";
1802
- content: string;
1803
- name?: string | undefined;
1804
- encryptedValue?: string | undefined;
1805
- metadata?: Record<string, any> | undefined;
1806
- subagentRunId?: string | undefined;
1807
- } | {
1808
- id: string;
1809
- role: "system";
1810
- content: string;
1811
- name?: string | undefined;
1812
- encryptedValue?: string | undefined;
1813
- metadata?: Record<string, any> | undefined;
1814
- subagentRunId?: string | undefined;
1815
- } | {
1816
- id: string;
1817
- role: "assistant";
1818
- name?: string | undefined;
1819
- encryptedValue?: string | undefined;
1820
- metadata?: Record<string, any> | undefined;
1821
- content?: string | undefined;
1822
- subagentRunId?: string | undefined;
1823
- toolCalls?: {
1824
- function: {
1825
- name: string;
1826
- arguments: string;
1827
- };
1828
- type: "function";
1829
- id: string;
1830
- encryptedValue?: string | undefined;
1831
- metadata?: Record<string, any> | undefined;
1832
- }[] | undefined;
1833
- } | {
1834
- id: string;
1835
- role: "user";
1836
- content: string | ({
1837
- type: "text";
1838
- text: string;
1839
- } | {
1840
- type: "image";
1841
- source: {
1842
- value: string;
1843
- type: "data";
1844
- mimeType: string;
1845
- } | {
1846
- value: string;
1847
- type: "url";
1848
- mimeType?: string | undefined;
1849
- };
1850
- metadata?: unknown;
1851
- } | {
1852
- type: "audio";
1853
- source: {
1854
- value: string;
1855
- type: "data";
1856
- mimeType: string;
1857
- } | {
1858
- value: string;
1859
- type: "url";
1860
- mimeType?: string | undefined;
1861
- };
1862
- metadata?: unknown;
1863
- } | {
1864
- type: "video";
1865
- source: {
1866
- value: string;
1867
- type: "data";
1868
- mimeType: string;
1869
- } | {
1870
- value: string;
1871
- type: "url";
1872
- mimeType?: string | undefined;
1873
- };
1874
- metadata?: unknown;
1875
- } | {
1876
- type: "document";
1877
- source: {
1878
- value: string;
1879
- type: "data";
1880
- mimeType: string;
1881
- } | {
1882
- value: string;
1883
- type: "url";
1884
- mimeType?: string | undefined;
1885
- };
1886
- metadata?: unknown;
1887
- } | {
1888
- type: "binary";
1889
- mimeType: string;
1890
- id?: string | undefined;
1891
- data?: string | undefined;
1892
- url?: string | undefined;
1893
- filename?: string | undefined;
1894
- })[];
1895
- name?: string | undefined;
1896
- encryptedValue?: string | undefined;
1897
- metadata?: Record<string, any> | undefined;
1898
- subagentRunId?: string | undefined;
1899
- } | {
1900
- id: string;
1901
- role: "tool";
1902
- content: string;
1903
- toolCallId: string;
1904
- encryptedValue?: string | undefined;
1905
- metadata?: Record<string, any> | undefined;
1906
- subagentRunId?: string | undefined;
1907
- error?: string | undefined;
1908
- } | {
1909
- id: string;
1910
- role: "activity";
1911
- content: Record<string, any>;
1912
- activityType: string;
1913
- metadata?: Record<string, any> | undefined;
1914
- subagentRunId?: string | undefined;
1915
- } | {
1916
- id: string;
1917
- role: "reasoning";
1918
- content: string;
1919
- encryptedValue?: string | undefined;
1920
- metadata?: Record<string, any> | undefined;
1921
- subagentRunId?: string | undefined;
1922
- })[]>;
1713
+ private readonly connecting;
1714
+ private activeConnection?;
1715
+ protected readonly showCursor: _angular_core.Signal<boolean>;
1716
+ protected messages: _angular_core.Signal<Message[]>;
1923
1717
  protected agentState: _angular_core.Signal<unknown>;
1924
- protected isRunning: _angular_core.Signal<boolean>;
1925
1718
  protected readonly hasExplicitThreadId: _angular_core.Signal<boolean>;
1926
1719
  protected readonly agentRef: _angular_core.Signal<AbstractAgent>;
1927
1720
  protected readonly resolvedThreadId: _angular_core.Signal<string>;
1928
1721
  readonly attachmentsEnabled: _angular_core.Signal<boolean>;
1929
1722
  readonly attachmentsUploading: _angular_core.Signal<boolean>;
1930
- protected showCursor: _angular_core.WritableSignal<boolean>;
1931
1723
  private generatedThreadId;
1932
1724
  constructor();
1933
1725
  private connectToAgent;
1726
+ private waitForActiveRunToSettle;
1934
1727
  submitInput(value: string): Promise<void>;
1935
1728
  selectSuggestion(suggestion: Suggestion, _index: number): Promise<void>;
1936
1729
  changeInput(value: string): void;
@@ -1946,149 +1739,8 @@ declare class CopilotChat extends ChatState {
1946
1739
  }
1947
1740
 
1948
1741
  declare class CopilotChatToolCallsView {
1949
- readonly message: _angular_core.InputSignal<{
1950
- id: string;
1951
- role: "assistant";
1952
- name?: string | undefined;
1953
- encryptedValue?: string | undefined;
1954
- metadata?: Record<string, any> | undefined;
1955
- content?: string | undefined;
1956
- subagentRunId?: string | undefined;
1957
- toolCalls?: {
1958
- function: {
1959
- name: string;
1960
- arguments: string;
1961
- };
1962
- type: "function";
1963
- id: string;
1964
- encryptedValue?: string | undefined;
1965
- metadata?: Record<string, any> | undefined;
1966
- }[] | undefined;
1967
- }>;
1968
- readonly messages: _angular_core.InputSignal<({
1969
- id: string;
1970
- role: "developer";
1971
- content: string;
1972
- name?: string | undefined;
1973
- encryptedValue?: string | undefined;
1974
- metadata?: Record<string, any> | undefined;
1975
- subagentRunId?: string | undefined;
1976
- } | {
1977
- id: string;
1978
- role: "system";
1979
- content: string;
1980
- name?: string | undefined;
1981
- encryptedValue?: string | undefined;
1982
- metadata?: Record<string, any> | undefined;
1983
- subagentRunId?: string | undefined;
1984
- } | {
1985
- id: string;
1986
- role: "assistant";
1987
- name?: string | undefined;
1988
- encryptedValue?: string | undefined;
1989
- metadata?: Record<string, any> | undefined;
1990
- content?: string | undefined;
1991
- subagentRunId?: string | undefined;
1992
- toolCalls?: {
1993
- function: {
1994
- name: string;
1995
- arguments: string;
1996
- };
1997
- type: "function";
1998
- id: string;
1999
- encryptedValue?: string | undefined;
2000
- metadata?: Record<string, any> | undefined;
2001
- }[] | undefined;
2002
- } | {
2003
- id: string;
2004
- role: "user";
2005
- content: string | ({
2006
- type: "text";
2007
- text: string;
2008
- } | {
2009
- type: "image";
2010
- source: {
2011
- value: string;
2012
- type: "data";
2013
- mimeType: string;
2014
- } | {
2015
- value: string;
2016
- type: "url";
2017
- mimeType?: string | undefined;
2018
- };
2019
- metadata?: unknown;
2020
- } | {
2021
- type: "audio";
2022
- source: {
2023
- value: string;
2024
- type: "data";
2025
- mimeType: string;
2026
- } | {
2027
- value: string;
2028
- type: "url";
2029
- mimeType?: string | undefined;
2030
- };
2031
- metadata?: unknown;
2032
- } | {
2033
- type: "video";
2034
- source: {
2035
- value: string;
2036
- type: "data";
2037
- mimeType: string;
2038
- } | {
2039
- value: string;
2040
- type: "url";
2041
- mimeType?: string | undefined;
2042
- };
2043
- metadata?: unknown;
2044
- } | {
2045
- type: "document";
2046
- source: {
2047
- value: string;
2048
- type: "data";
2049
- mimeType: string;
2050
- } | {
2051
- value: string;
2052
- type: "url";
2053
- mimeType?: string | undefined;
2054
- };
2055
- metadata?: unknown;
2056
- } | {
2057
- type: "binary";
2058
- mimeType: string;
2059
- id?: string | undefined;
2060
- data?: string | undefined;
2061
- url?: string | undefined;
2062
- filename?: string | undefined;
2063
- })[];
2064
- name?: string | undefined;
2065
- encryptedValue?: string | undefined;
2066
- metadata?: Record<string, any> | undefined;
2067
- subagentRunId?: string | undefined;
2068
- } | {
2069
- id: string;
2070
- role: "tool";
2071
- content: string;
2072
- toolCallId: string;
2073
- encryptedValue?: string | undefined;
2074
- metadata?: Record<string, any> | undefined;
2075
- subagentRunId?: string | undefined;
2076
- error?: string | undefined;
2077
- } | {
2078
- id: string;
2079
- role: "activity";
2080
- content: Record<string, any>;
2081
- activityType: string;
2082
- metadata?: Record<string, any> | undefined;
2083
- subagentRunId?: string | undefined;
2084
- } | {
2085
- id: string;
2086
- role: "reasoning";
2087
- content: string;
2088
- encryptedValue?: string | undefined;
2089
- metadata?: Record<string, any> | undefined;
2090
- subagentRunId?: string | undefined;
2091
- })[]>;
1742
+ readonly message: _angular_core.InputSignal<AssistantMessage$1>;
1743
+ readonly messages: _angular_core.InputSignal<Message$1[]>;
2092
1744
  readonly agentId: _angular_core.InputSignal<string | undefined>;
2093
1745
  readonly isLoading: _angular_core.InputSignal<boolean>;
2094
1746
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatToolCallsView, never>;
@@ -2140,11 +1792,9 @@ declare class CopilotChatAssistantMessageRenderer implements AfterViewInit {
2140
1792
  private markedInstance;
2141
1793
  private initializeMarked;
2142
1794
  private renderMarkdown;
2143
- private renderMathEquations;
2144
1795
  handleClick(event: MouseEvent): void;
2145
1796
  private copyCodeBlock;
2146
1797
  private generateBlockId;
2147
- private escapeHtml;
2148
1798
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatAssistantMessageRenderer, never>;
2149
1799
  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>;
2150
1800
  }
@@ -2265,149 +1915,8 @@ declare class CopilotChatAssistantMessage {
2265
1915
  readonly readAloudButtonComponent: _angular_core.InputSignal<Type<any> | undefined>;
2266
1916
  readonly regenerateButtonComponent: _angular_core.InputSignal<Type<any> | undefined>;
2267
1917
  readonly toolCallsViewComponent: _angular_core.InputSignal<Type<any> | undefined>;
2268
- readonly message: _angular_core.InputSignal<{
2269
- id: string;
2270
- role: "assistant";
2271
- name?: string | undefined;
2272
- encryptedValue?: string | undefined;
2273
- metadata?: Record<string, any> | undefined;
2274
- content?: string | undefined;
2275
- subagentRunId?: string | undefined;
2276
- toolCalls?: {
2277
- function: {
2278
- name: string;
2279
- arguments: string;
2280
- };
2281
- type: "function";
2282
- id: string;
2283
- encryptedValue?: string | undefined;
2284
- metadata?: Record<string, any> | undefined;
2285
- }[] | undefined;
2286
- }>;
2287
- readonly messages: _angular_core.InputSignal<({
2288
- id: string;
2289
- role: "developer";
2290
- content: string;
2291
- name?: string | undefined;
2292
- encryptedValue?: string | undefined;
2293
- metadata?: Record<string, any> | undefined;
2294
- subagentRunId?: string | undefined;
2295
- } | {
2296
- id: string;
2297
- role: "system";
2298
- content: string;
2299
- name?: string | undefined;
2300
- encryptedValue?: string | undefined;
2301
- metadata?: Record<string, any> | undefined;
2302
- subagentRunId?: string | undefined;
2303
- } | {
2304
- id: string;
2305
- role: "assistant";
2306
- name?: string | undefined;
2307
- encryptedValue?: string | undefined;
2308
- metadata?: Record<string, any> | undefined;
2309
- content?: string | undefined;
2310
- subagentRunId?: string | undefined;
2311
- toolCalls?: {
2312
- function: {
2313
- name: string;
2314
- arguments: string;
2315
- };
2316
- type: "function";
2317
- id: string;
2318
- encryptedValue?: string | undefined;
2319
- metadata?: Record<string, any> | undefined;
2320
- }[] | undefined;
2321
- } | {
2322
- id: string;
2323
- role: "user";
2324
- content: string | ({
2325
- type: "text";
2326
- text: string;
2327
- } | {
2328
- type: "image";
2329
- source: {
2330
- value: string;
2331
- type: "data";
2332
- mimeType: string;
2333
- } | {
2334
- value: string;
2335
- type: "url";
2336
- mimeType?: string | undefined;
2337
- };
2338
- metadata?: unknown;
2339
- } | {
2340
- type: "audio";
2341
- source: {
2342
- value: string;
2343
- type: "data";
2344
- mimeType: string;
2345
- } | {
2346
- value: string;
2347
- type: "url";
2348
- mimeType?: string | undefined;
2349
- };
2350
- metadata?: unknown;
2351
- } | {
2352
- type: "video";
2353
- source: {
2354
- value: string;
2355
- type: "data";
2356
- mimeType: string;
2357
- } | {
2358
- value: string;
2359
- type: "url";
2360
- mimeType?: string | undefined;
2361
- };
2362
- metadata?: unknown;
2363
- } | {
2364
- type: "document";
2365
- source: {
2366
- value: string;
2367
- type: "data";
2368
- mimeType: string;
2369
- } | {
2370
- value: string;
2371
- type: "url";
2372
- mimeType?: string | undefined;
2373
- };
2374
- metadata?: unknown;
2375
- } | {
2376
- type: "binary";
2377
- mimeType: string;
2378
- id?: string | undefined;
2379
- data?: string | undefined;
2380
- url?: string | undefined;
2381
- filename?: string | undefined;
2382
- })[];
2383
- name?: string | undefined;
2384
- encryptedValue?: string | undefined;
2385
- metadata?: Record<string, any> | undefined;
2386
- subagentRunId?: string | undefined;
2387
- } | {
2388
- id: string;
2389
- role: "tool";
2390
- content: string;
2391
- toolCallId: string;
2392
- encryptedValue?: string | undefined;
2393
- metadata?: Record<string, any> | undefined;
2394
- subagentRunId?: string | undefined;
2395
- error?: string | undefined;
2396
- } | {
2397
- id: string;
2398
- role: "activity";
2399
- content: Record<string, any>;
2400
- activityType: string;
2401
- metadata?: Record<string, any> | undefined;
2402
- subagentRunId?: string | undefined;
2403
- } | {
2404
- id: string;
2405
- role: "reasoning";
2406
- content: string;
2407
- encryptedValue?: string | undefined;
2408
- metadata?: Record<string, any> | undefined;
2409
- subagentRunId?: string | undefined;
2410
- })[]>;
1918
+ readonly message: _angular_core.InputSignal<AssistantMessage>;
1919
+ readonly messages: _angular_core.InputSignal<Message$1[]>;
2411
1920
  readonly agentId: _angular_core.InputSignal<string | undefined>;
2412
1921
  readonly isLoading: _angular_core.InputSignal<boolean>;
2413
1922
  readonly additionalToolbarItems: _angular_core.InputSignal<TemplateRef<any> | undefined>;
@@ -2446,149 +1955,8 @@ declare class CopilotChatAssistantMessage {
2446
1955
  toolbarContext: _angular_core.Signal<AssistantMessageToolbarContext>;
2447
1956
  hasMessageContent(): boolean;
2448
1957
  toolCallsViewContext: _angular_core.Signal<{
2449
- message: {
2450
- id: string;
2451
- role: "assistant";
2452
- name?: string | undefined;
2453
- encryptedValue?: string | undefined;
2454
- metadata?: Record<string, any> | undefined;
2455
- content?: string | undefined;
2456
- subagentRunId?: string | undefined;
2457
- toolCalls?: {
2458
- function: {
2459
- name: string;
2460
- arguments: string;
2461
- };
2462
- type: "function";
2463
- id: string;
2464
- encryptedValue?: string | undefined;
2465
- metadata?: Record<string, any> | undefined;
2466
- }[] | undefined;
2467
- };
2468
- messages: ({
2469
- id: string;
2470
- role: "developer";
2471
- content: string;
2472
- name?: string | undefined;
2473
- encryptedValue?: string | undefined;
2474
- metadata?: Record<string, any> | undefined;
2475
- subagentRunId?: string | undefined;
2476
- } | {
2477
- id: string;
2478
- role: "system";
2479
- content: string;
2480
- name?: string | undefined;
2481
- encryptedValue?: string | undefined;
2482
- metadata?: Record<string, any> | undefined;
2483
- subagentRunId?: string | undefined;
2484
- } | {
2485
- id: string;
2486
- role: "assistant";
2487
- name?: string | undefined;
2488
- encryptedValue?: string | undefined;
2489
- metadata?: Record<string, any> | undefined;
2490
- content?: string | undefined;
2491
- subagentRunId?: string | undefined;
2492
- toolCalls?: {
2493
- function: {
2494
- name: string;
2495
- arguments: string;
2496
- };
2497
- type: "function";
2498
- id: string;
2499
- encryptedValue?: string | undefined;
2500
- metadata?: Record<string, any> | undefined;
2501
- }[] | undefined;
2502
- } | {
2503
- id: string;
2504
- role: "user";
2505
- content: string | ({
2506
- type: "text";
2507
- text: string;
2508
- } | {
2509
- type: "image";
2510
- source: {
2511
- value: string;
2512
- type: "data";
2513
- mimeType: string;
2514
- } | {
2515
- value: string;
2516
- type: "url";
2517
- mimeType?: string | undefined;
2518
- };
2519
- metadata?: unknown;
2520
- } | {
2521
- type: "audio";
2522
- source: {
2523
- value: string;
2524
- type: "data";
2525
- mimeType: string;
2526
- } | {
2527
- value: string;
2528
- type: "url";
2529
- mimeType?: string | undefined;
2530
- };
2531
- metadata?: unknown;
2532
- } | {
2533
- type: "video";
2534
- source: {
2535
- value: string;
2536
- type: "data";
2537
- mimeType: string;
2538
- } | {
2539
- value: string;
2540
- type: "url";
2541
- mimeType?: string | undefined;
2542
- };
2543
- metadata?: unknown;
2544
- } | {
2545
- type: "document";
2546
- source: {
2547
- value: string;
2548
- type: "data";
2549
- mimeType: string;
2550
- } | {
2551
- value: string;
2552
- type: "url";
2553
- mimeType?: string | undefined;
2554
- };
2555
- metadata?: unknown;
2556
- } | {
2557
- type: "binary";
2558
- mimeType: string;
2559
- id?: string | undefined;
2560
- data?: string | undefined;
2561
- url?: string | undefined;
2562
- filename?: string | undefined;
2563
- })[];
2564
- name?: string | undefined;
2565
- encryptedValue?: string | undefined;
2566
- metadata?: Record<string, any> | undefined;
2567
- subagentRunId?: string | undefined;
2568
- } | {
2569
- id: string;
2570
- role: "tool";
2571
- content: string;
2572
- toolCallId: string;
2573
- encryptedValue?: string | undefined;
2574
- metadata?: Record<string, any> | undefined;
2575
- subagentRunId?: string | undefined;
2576
- error?: string | undefined;
2577
- } | {
2578
- id: string;
2579
- role: "activity";
2580
- content: Record<string, any>;
2581
- activityType: string;
2582
- metadata?: Record<string, any> | undefined;
2583
- subagentRunId?: string | undefined;
2584
- } | {
2585
- id: string;
2586
- role: "reasoning";
2587
- content: string;
2588
- encryptedValue?: string | undefined;
2589
- metadata?: Record<string, any> | undefined;
2590
- subagentRunId?: string | undefined;
2591
- })[];
1958
+ message: AssistantMessage;
1959
+ messages: Message$1[];
2592
1960
  isLoading: boolean;
2593
1961
  }>;
2594
1962
  handleCopy(): void;
@@ -2615,15 +1983,7 @@ declare class CopilotChatAttachmentQueue {
2615
1983
 
2616
1984
  declare class CopilotChatAttachmentRenderer {
2617
1985
  readonly type: _angular_core.InputSignal<AttachmentModality>;
2618
- readonly source: _angular_core.InputSignal<{
2619
- type: "data";
2620
- value: string;
2621
- mimeType: string;
2622
- } | {
2623
- type: "url";
2624
- value: string;
2625
- mimeType?: string | undefined;
2626
- }>;
1986
+ readonly source: _angular_core.InputSignal<_ag_ui_core.PartSource>;
2627
1987
  readonly filename: _angular_core.InputSignal<string | undefined>;
2628
1988
  readonly inputClass: _angular_core.InputSignal<string | undefined>;
2629
1989
  readonly imageFailed: _angular_core.WritableSignal<boolean>;
@@ -3032,6 +2392,7 @@ declare class CopilotChatInput implements OnDestroy {
3032
2392
  readonly defaultButtonClass: string;
3033
2393
  readonly labels: _copilotkit_angular.CopilotChatLabels;
3034
2394
  readonly chatState: _copilotkit_angular.ChatState;
2395
+ readonly copilotKit: CopilotKit;
3035
2396
  modeSignal: _angular_core.WritableSignal<CopilotChatInputMode>;
3036
2397
  toolsMenuSignal: _angular_core.WritableSignal<(ToolsMenuItem | "-")[]>;
3037
2398
  autoFocusSignal: _angular_core.WritableSignal<boolean>;
@@ -3047,6 +2408,7 @@ declare class CopilotChatInput implements OnDestroy {
3047
2408
  computedMode: _angular_core.Signal<CopilotChatInputMode>;
3048
2409
  computedToolsMenu: _angular_core.Signal<(ToolsMenuItem | "-")[]>;
3049
2410
  computedAutoFocus: _angular_core.Signal<boolean>;
2411
+ audioTranscriptionEnabled: _angular_core.Signal<boolean>;
3050
2412
  computedValue: _angular_core.Signal<string>;
3051
2413
  addFileButtonDisabled: _angular_core.Signal<boolean>;
3052
2414
  addFileMenuAction: _angular_core.Signal<(() => void) | undefined>;
@@ -3213,73 +2575,7 @@ declare class CopilotChatUserMessageToolbar {
3213
2575
  declare class CopilotChatUserMessageBranchNavigation {
3214
2576
  currentBranch: _angular_core.InputSignal<number>;
3215
2577
  numberOfBranches: _angular_core.InputSignal<number>;
3216
- message: _angular_core.InputSignal<{
3217
- id: string;
3218
- role: "user";
3219
- content: string | ({
3220
- type: "text";
3221
- text: string;
3222
- } | {
3223
- type: "image";
3224
- source: {
3225
- value: string;
3226
- type: "data";
3227
- mimeType: string;
3228
- } | {
3229
- value: string;
3230
- type: "url";
3231
- mimeType?: string | undefined;
3232
- };
3233
- metadata?: unknown;
3234
- } | {
3235
- type: "audio";
3236
- source: {
3237
- value: string;
3238
- type: "data";
3239
- mimeType: string;
3240
- } | {
3241
- value: string;
3242
- type: "url";
3243
- mimeType?: string | undefined;
3244
- };
3245
- metadata?: unknown;
3246
- } | {
3247
- type: "video";
3248
- source: {
3249
- value: string;
3250
- type: "data";
3251
- mimeType: string;
3252
- } | {
3253
- value: string;
3254
- type: "url";
3255
- mimeType?: string | undefined;
3256
- };
3257
- metadata?: unknown;
3258
- } | {
3259
- type: "document";
3260
- source: {
3261
- value: string;
3262
- type: "data";
3263
- mimeType: string;
3264
- } | {
3265
- value: string;
3266
- type: "url";
3267
- mimeType?: string | undefined;
3268
- };
3269
- metadata?: unknown;
3270
- } | {
3271
- type: "binary";
3272
- mimeType: string;
3273
- id?: string | undefined;
3274
- data?: string | undefined;
3275
- url?: string | undefined;
3276
- filename?: string | undefined;
3277
- })[];
3278
- name?: string | undefined;
3279
- encryptedValue?: string | undefined;
3280
- metadata?: Record<string, any> | undefined;
3281
- subagentRunId?: string | undefined;
3282
- } | undefined>;
2578
+ message: _angular_core.InputSignal<UserMessage | undefined>;
3283
2579
  inputClass: _angular_core.InputSignal<string | undefined>;
3284
2580
  switchToBranch: _angular_core.OutputEmitterRef<CopilotChatUserMessageOnSwitchToBranchProps>;
3285
2581
  readonly ChevronLeftIcon: CopilotIconData;
@@ -3313,73 +2609,7 @@ declare class CopilotChatUserMessage {
3313
2609
  copyButtonComponent: _angular_core.InputSignal<Type<any> | undefined>;
3314
2610
  editButtonComponent: _angular_core.InputSignal<Type<any> | undefined>;
3315
2611
  branchNavigationComponent: _angular_core.InputSignal<Type<any> | undefined>;
3316
- message: _angular_core.InputSignal<{
3317
- id: string;
3318
- role: "user";
3319
- content: string | ({
3320
- type: "text";
3321
- text: string;
3322
- } | {
3323
- type: "image";
3324
- source: {
3325
- value: string;
3326
- type: "data";
3327
- mimeType: string;
3328
- } | {
3329
- value: string;
3330
- type: "url";
3331
- mimeType?: string | undefined;
3332
- };
3333
- metadata?: unknown;
3334
- } | {
3335
- type: "audio";
3336
- source: {
3337
- value: string;
3338
- type: "data";
3339
- mimeType: string;
3340
- } | {
3341
- value: string;
3342
- type: "url";
3343
- mimeType?: string | undefined;
3344
- };
3345
- metadata?: unknown;
3346
- } | {
3347
- type: "video";
3348
- source: {
3349
- value: string;
3350
- type: "data";
3351
- mimeType: string;
3352
- } | {
3353
- value: string;
3354
- type: "url";
3355
- mimeType?: string | undefined;
3356
- };
3357
- metadata?: unknown;
3358
- } | {
3359
- type: "document";
3360
- source: {
3361
- value: string;
3362
- type: "data";
3363
- mimeType: string;
3364
- } | {
3365
- value: string;
3366
- type: "url";
3367
- mimeType?: string | undefined;
3368
- };
3369
- metadata?: unknown;
3370
- } | {
3371
- type: "binary";
3372
- mimeType: string;
3373
- id?: string | undefined;
3374
- data?: string | undefined;
3375
- url?: string | undefined;
3376
- filename?: string | undefined;
3377
- })[];
3378
- name?: string | undefined;
3379
- encryptedValue?: string | undefined;
3380
- metadata?: Record<string, any> | undefined;
3381
- subagentRunId?: string | undefined;
3382
- } | undefined>;
2612
+ message: _angular_core.InputSignal<UserMessage | undefined>;
3383
2613
  branchIndex: _angular_core.InputSignal<number | undefined>;
3384
2614
  numberOfBranches: _angular_core.InputSignal<number | undefined>;
3385
2615
  additionalToolbarItems: _angular_core.InputSignal<TemplateRef<any> | undefined>;
@@ -3427,138 +2657,8 @@ declare class CopilotChatMessageViewCursor {
3427
2657
  }
3428
2658
 
3429
2659
  declare class CopilotChatReasoningMessage {
3430
- readonly message: _angular_core.InputSignal<{
3431
- id: string;
3432
- role: "reasoning";
3433
- content: string;
3434
- encryptedValue?: string | undefined;
3435
- metadata?: Record<string, any> | undefined;
3436
- subagentRunId?: string | undefined;
3437
- }>;
3438
- readonly messages: _angular_core.InputSignal<({
3439
- id: string;
3440
- role: "developer";
3441
- content: string;
3442
- name?: string | undefined;
3443
- encryptedValue?: string | undefined;
3444
- metadata?: Record<string, any> | undefined;
3445
- subagentRunId?: string | undefined;
3446
- } | {
3447
- id: string;
3448
- role: "system";
3449
- content: string;
3450
- name?: string | undefined;
3451
- encryptedValue?: string | undefined;
3452
- metadata?: Record<string, any> | undefined;
3453
- subagentRunId?: string | undefined;
3454
- } | {
3455
- id: string;
3456
- role: "assistant";
3457
- name?: string | undefined;
3458
- encryptedValue?: string | undefined;
3459
- metadata?: Record<string, any> | undefined;
3460
- content?: string | undefined;
3461
- subagentRunId?: string | undefined;
3462
- toolCalls?: {
3463
- function: {
3464
- name: string;
3465
- arguments: string;
3466
- };
3467
- type: "function";
3468
- id: string;
3469
- encryptedValue?: string | undefined;
3470
- metadata?: Record<string, any> | undefined;
3471
- }[] | undefined;
3472
- } | {
3473
- id: string;
3474
- role: "user";
3475
- content: string | ({
3476
- type: "text";
3477
- text: string;
3478
- } | {
3479
- type: "image";
3480
- source: {
3481
- value: string;
3482
- type: "data";
3483
- mimeType: string;
3484
- } | {
3485
- value: string;
3486
- type: "url";
3487
- mimeType?: string | undefined;
3488
- };
3489
- metadata?: unknown;
3490
- } | {
3491
- type: "audio";
3492
- source: {
3493
- value: string;
3494
- type: "data";
3495
- mimeType: string;
3496
- } | {
3497
- value: string;
3498
- type: "url";
3499
- mimeType?: string | undefined;
3500
- };
3501
- metadata?: unknown;
3502
- } | {
3503
- type: "video";
3504
- source: {
3505
- value: string;
3506
- type: "data";
3507
- mimeType: string;
3508
- } | {
3509
- value: string;
3510
- type: "url";
3511
- mimeType?: string | undefined;
3512
- };
3513
- metadata?: unknown;
3514
- } | {
3515
- type: "document";
3516
- source: {
3517
- value: string;
3518
- type: "data";
3519
- mimeType: string;
3520
- } | {
3521
- value: string;
3522
- type: "url";
3523
- mimeType?: string | undefined;
3524
- };
3525
- metadata?: unknown;
3526
- } | {
3527
- type: "binary";
3528
- mimeType: string;
3529
- id?: string | undefined;
3530
- data?: string | undefined;
3531
- url?: string | undefined;
3532
- filename?: string | undefined;
3533
- })[];
3534
- name?: string | undefined;
3535
- encryptedValue?: string | undefined;
3536
- metadata?: Record<string, any> | undefined;
3537
- subagentRunId?: string | undefined;
3538
- } | {
3539
- id: string;
3540
- role: "tool";
3541
- content: string;
3542
- toolCallId: string;
3543
- encryptedValue?: string | undefined;
3544
- metadata?: Record<string, any> | undefined;
3545
- subagentRunId?: string | undefined;
3546
- error?: string | undefined;
3547
- } | {
3548
- id: string;
3549
- role: "activity";
3550
- content: Record<string, any>;
3551
- activityType: string;
3552
- metadata?: Record<string, any> | undefined;
3553
- subagentRunId?: string | undefined;
3554
- } | {
3555
- id: string;
3556
- role: "reasoning";
3557
- content: string;
3558
- encryptedValue?: string | undefined;
3559
- metadata?: Record<string, any> | undefined;
3560
- subagentRunId?: string | undefined;
3561
- })[]>;
2660
+ readonly message: _angular_core.InputSignal<ReasoningMessage>;
2661
+ readonly messages: _angular_core.InputSignal<Message$1[]>;
3562
2662
  readonly isRunning: _angular_core.InputSignal<boolean>;
3563
2663
  readonly inputClass: _angular_core.InputSignal<string | undefined>;
3564
2664
  private readonly userToggled;
@@ -3583,130 +2683,7 @@ declare class CopilotChatReasoningMessage {
3583
2683
  * DOM structure and Tailwind classes match the React implementation exactly.
3584
2684
  */
3585
2685
  declare class CopilotChatMessageView {
3586
- messages: _angular_core.InputSignal<({
3587
- id: string;
3588
- role: "developer";
3589
- content: string;
3590
- name?: string | undefined;
3591
- encryptedValue?: string | undefined;
3592
- metadata?: Record<string, any> | undefined;
3593
- subagentRunId?: string | undefined;
3594
- } | {
3595
- id: string;
3596
- role: "system";
3597
- content: string;
3598
- name?: string | undefined;
3599
- encryptedValue?: string | undefined;
3600
- metadata?: Record<string, any> | undefined;
3601
- subagentRunId?: string | undefined;
3602
- } | {
3603
- id: string;
3604
- role: "assistant";
3605
- name?: string | undefined;
3606
- encryptedValue?: string | undefined;
3607
- metadata?: Record<string, any> | undefined;
3608
- content?: string | undefined;
3609
- subagentRunId?: string | undefined;
3610
- toolCalls?: {
3611
- function: {
3612
- name: string;
3613
- arguments: string;
3614
- };
3615
- type: "function";
3616
- id: string;
3617
- encryptedValue?: string | undefined;
3618
- metadata?: Record<string, any> | undefined;
3619
- }[] | undefined;
3620
- } | {
3621
- id: string;
3622
- role: "user";
3623
- content: string | ({
3624
- type: "text";
3625
- text: string;
3626
- } | {
3627
- type: "image";
3628
- source: {
3629
- value: string;
3630
- type: "data";
3631
- mimeType: string;
3632
- } | {
3633
- value: string;
3634
- type: "url";
3635
- mimeType?: string | undefined;
3636
- };
3637
- metadata?: unknown;
3638
- } | {
3639
- type: "audio";
3640
- source: {
3641
- value: string;
3642
- type: "data";
3643
- mimeType: string;
3644
- } | {
3645
- value: string;
3646
- type: "url";
3647
- mimeType?: string | undefined;
3648
- };
3649
- metadata?: unknown;
3650
- } | {
3651
- type: "video";
3652
- source: {
3653
- value: string;
3654
- type: "data";
3655
- mimeType: string;
3656
- } | {
3657
- value: string;
3658
- type: "url";
3659
- mimeType?: string | undefined;
3660
- };
3661
- metadata?: unknown;
3662
- } | {
3663
- type: "document";
3664
- source: {
3665
- value: string;
3666
- type: "data";
3667
- mimeType: string;
3668
- } | {
3669
- value: string;
3670
- type: "url";
3671
- mimeType?: string | undefined;
3672
- };
3673
- metadata?: unknown;
3674
- } | {
3675
- type: "binary";
3676
- mimeType: string;
3677
- id?: string | undefined;
3678
- data?: string | undefined;
3679
- url?: string | undefined;
3680
- filename?: string | undefined;
3681
- })[];
3682
- name?: string | undefined;
3683
- encryptedValue?: string | undefined;
3684
- metadata?: Record<string, any> | undefined;
3685
- subagentRunId?: string | undefined;
3686
- } | {
3687
- id: string;
3688
- role: "tool";
3689
- content: string;
3690
- toolCallId: string;
3691
- encryptedValue?: string | undefined;
3692
- metadata?: Record<string, any> | undefined;
3693
- subagentRunId?: string | undefined;
3694
- error?: string | undefined;
3695
- } | {
3696
- id: string;
3697
- role: "activity";
3698
- content: Record<string, any>;
3699
- activityType: string;
3700
- metadata?: Record<string, any> | undefined;
3701
- subagentRunId?: string | undefined;
3702
- } | {
3703
- id: string;
3704
- role: "reasoning";
3705
- content: string;
3706
- encryptedValue?: string | undefined;
3707
- metadata?: Record<string, any> | undefined;
3708
- subagentRunId?: string | undefined;
3709
- })[]>;
2686
+ messages: _angular_core.InputSignal<Message$1[]>;
3710
2687
  /** Current agent state exposed to transcript-children slots. */
3711
2688
  state: _angular_core.InputSignal<unknown>;
3712
2689
  showCursor: _angular_core.InputSignal<boolean>;
@@ -3751,1152 +2728,57 @@ declare class CopilotChatMessageView {
3751
2728
  protected readonly defaultUserComponent: typeof CopilotChatUserMessage;
3752
2729
  protected readonly defaultReasoningComponent: typeof CopilotChatReasoningMessage;
3753
2730
  protected readonly defaultCursorComponent: typeof CopilotChatMessageViewCursor;
3754
- protected readonly copilotKit: CopilotKit;
3755
- protected messagesValue: _angular_core.Signal<({
3756
- id: string;
3757
- role: "developer";
3758
- content: string;
3759
- name?: string | undefined;
3760
- encryptedValue?: string | undefined;
3761
- metadata?: Record<string, any> | undefined;
3762
- subagentRunId?: string | undefined;
3763
- } | {
3764
- id: string;
3765
- role: "system";
3766
- content: string;
3767
- name?: string | undefined;
3768
- encryptedValue?: string | undefined;
3769
- metadata?: Record<string, any> | undefined;
3770
- subagentRunId?: string | undefined;
3771
- } | {
3772
- id: string;
3773
- role: "assistant";
3774
- name?: string | undefined;
3775
- encryptedValue?: string | undefined;
3776
- metadata?: Record<string, any> | undefined;
3777
- content?: string | undefined;
3778
- subagentRunId?: string | undefined;
3779
- toolCalls?: {
3780
- function: {
3781
- name: string;
3782
- arguments: string;
3783
- };
3784
- type: "function";
3785
- id: string;
3786
- encryptedValue?: string | undefined;
3787
- metadata?: Record<string, any> | undefined;
3788
- }[] | undefined;
3789
- } | {
3790
- id: string;
3791
- role: "user";
3792
- content: string | ({
3793
- type: "text";
3794
- text: string;
3795
- } | {
3796
- type: "image";
3797
- source: {
3798
- value: string;
3799
- type: "data";
3800
- mimeType: string;
3801
- } | {
3802
- value: string;
3803
- type: "url";
3804
- mimeType?: string | undefined;
3805
- };
3806
- metadata?: unknown;
3807
- } | {
3808
- type: "audio";
3809
- source: {
3810
- value: string;
3811
- type: "data";
3812
- mimeType: string;
3813
- } | {
3814
- value: string;
3815
- type: "url";
3816
- mimeType?: string | undefined;
3817
- };
3818
- metadata?: unknown;
3819
- } | {
3820
- type: "video";
3821
- source: {
3822
- value: string;
3823
- type: "data";
3824
- mimeType: string;
3825
- } | {
3826
- value: string;
3827
- type: "url";
3828
- mimeType?: string | undefined;
3829
- };
3830
- metadata?: unknown;
3831
- } | {
3832
- type: "document";
3833
- source: {
3834
- value: string;
3835
- type: "data";
3836
- mimeType: string;
3837
- } | {
3838
- value: string;
3839
- type: "url";
3840
- mimeType?: string | undefined;
3841
- };
3842
- metadata?: unknown;
3843
- } | {
3844
- type: "binary";
3845
- mimeType: string;
3846
- id?: string | undefined;
3847
- data?: string | undefined;
3848
- url?: string | undefined;
3849
- filename?: string | undefined;
3850
- })[];
3851
- name?: string | undefined;
3852
- encryptedValue?: string | undefined;
3853
- metadata?: Record<string, any> | undefined;
3854
- subagentRunId?: string | undefined;
3855
- } | {
3856
- id: string;
3857
- role: "tool";
3858
- content: string;
3859
- toolCallId: string;
3860
- encryptedValue?: string | undefined;
3861
- metadata?: Record<string, any> | undefined;
3862
- subagentRunId?: string | undefined;
3863
- error?: string | undefined;
3864
- } | {
3865
- id: string;
3866
- role: "activity";
3867
- content: Record<string, any>;
3868
- activityType: string;
3869
- metadata?: Record<string, any> | undefined;
3870
- subagentRunId?: string | undefined;
3871
- } | {
3872
- id: string;
3873
- role: "reasoning";
3874
- content: string;
3875
- encryptedValue?: string | undefined;
3876
- metadata?: Record<string, any> | undefined;
3877
- subagentRunId?: string | undefined;
3878
- })[]>;
2731
+ protected messagesValue: _angular_core.Signal<Message$1[]>;
2732
+ /**
2733
+ * Override table backing `rowRenderKey`. Per component instance, so its
2734
+ * lifetime matches the rendered list.
2735
+ */
2736
+ private readonly rowKeyStore;
2737
+ protected rowRenderKeys: _angular_core.Signal<string[]>;
2738
+ private readonly rowKeyStoreCommit;
3879
2739
  protected showCursorValue: _angular_core.Signal<boolean>;
3880
2740
  protected isLoadingValue: _angular_core.Signal<boolean>;
3881
- protected lastMessage: _angular_core.Signal<{
3882
- id: string;
3883
- role: "developer";
3884
- content: string;
3885
- name?: string | undefined;
3886
- encryptedValue?: string | undefined;
3887
- metadata?: Record<string, any> | undefined;
3888
- subagentRunId?: string | undefined;
3889
- } | {
3890
- id: string;
3891
- role: "system";
3892
- content: string;
3893
- name?: string | undefined;
3894
- encryptedValue?: string | undefined;
3895
- metadata?: Record<string, any> | undefined;
3896
- subagentRunId?: string | undefined;
3897
- } | {
3898
- id: string;
3899
- role: "assistant";
3900
- name?: string | undefined;
3901
- encryptedValue?: string | undefined;
3902
- metadata?: Record<string, any> | undefined;
3903
- content?: string | undefined;
3904
- subagentRunId?: string | undefined;
3905
- toolCalls?: {
3906
- function: {
3907
- name: string;
3908
- arguments: string;
3909
- };
3910
- type: "function";
3911
- id: string;
3912
- encryptedValue?: string | undefined;
3913
- metadata?: Record<string, any> | undefined;
3914
- }[] | undefined;
3915
- } | {
3916
- id: string;
3917
- role: "user";
3918
- content: string | ({
3919
- type: "text";
3920
- text: string;
3921
- } | {
3922
- type: "image";
3923
- source: {
3924
- value: string;
3925
- type: "data";
3926
- mimeType: string;
3927
- } | {
3928
- value: string;
3929
- type: "url";
3930
- mimeType?: string | undefined;
3931
- };
3932
- metadata?: unknown;
3933
- } | {
3934
- type: "audio";
3935
- source: {
3936
- value: string;
3937
- type: "data";
3938
- mimeType: string;
3939
- } | {
3940
- value: string;
3941
- type: "url";
3942
- mimeType?: string | undefined;
3943
- };
3944
- metadata?: unknown;
3945
- } | {
3946
- type: "video";
3947
- source: {
3948
- value: string;
3949
- type: "data";
3950
- mimeType: string;
3951
- } | {
3952
- value: string;
3953
- type: "url";
3954
- mimeType?: string | undefined;
3955
- };
3956
- metadata?: unknown;
3957
- } | {
3958
- type: "document";
3959
- source: {
3960
- value: string;
3961
- type: "data";
3962
- mimeType: string;
3963
- } | {
3964
- value: string;
3965
- type: "url";
3966
- mimeType?: string | undefined;
3967
- };
3968
- metadata?: unknown;
3969
- } | {
3970
- type: "binary";
3971
- mimeType: string;
3972
- id?: string | undefined;
3973
- data?: string | undefined;
3974
- url?: string | undefined;
3975
- filename?: string | undefined;
3976
- })[];
3977
- name?: string | undefined;
3978
- encryptedValue?: string | undefined;
3979
- metadata?: Record<string, any> | undefined;
3980
- subagentRunId?: string | undefined;
3981
- } | {
3982
- id: string;
3983
- role: "tool";
3984
- content: string;
3985
- toolCallId: string;
3986
- encryptedValue?: string | undefined;
3987
- metadata?: Record<string, any> | undefined;
3988
- subagentRunId?: string | undefined;
3989
- error?: string | undefined;
3990
- } | {
3991
- id: string;
3992
- role: "activity";
3993
- content: Record<string, any>;
3994
- activityType: string;
3995
- metadata?: Record<string, any> | undefined;
3996
- subagentRunId?: string | undefined;
3997
- } | {
3998
- id: string;
3999
- role: "reasoning";
4000
- content: string;
4001
- encryptedValue?: string | undefined;
4002
- metadata?: Record<string, any> | undefined;
4003
- subagentRunId?: string | undefined;
4004
- } | undefined>;
2741
+ protected lastMessage: _angular_core.Signal<Message$1 | undefined>;
4005
2742
  computedClass: _angular_core.Signal<string>;
4006
2743
  layoutContext: _angular_core.Signal<{
4007
2744
  isLoading: boolean;
4008
- messages: ({
4009
- id: string;
4010
- role: "developer";
4011
- content: string;
4012
- name?: string | undefined;
4013
- encryptedValue?: string | undefined;
4014
- metadata?: Record<string, any> | undefined;
4015
- subagentRunId?: string | undefined;
4016
- } | {
4017
- id: string;
4018
- role: "system";
4019
- content: string;
4020
- name?: string | undefined;
4021
- encryptedValue?: string | undefined;
4022
- metadata?: Record<string, any> | undefined;
4023
- subagentRunId?: string | undefined;
4024
- } | {
4025
- id: string;
4026
- role: "assistant";
4027
- name?: string | undefined;
4028
- encryptedValue?: string | undefined;
4029
- metadata?: Record<string, any> | undefined;
4030
- content?: string | undefined;
4031
- subagentRunId?: string | undefined;
4032
- toolCalls?: {
4033
- function: {
4034
- name: string;
4035
- arguments: string;
4036
- };
4037
- type: "function";
4038
- id: string;
4039
- encryptedValue?: string | undefined;
4040
- metadata?: Record<string, any> | undefined;
4041
- }[] | undefined;
4042
- } | {
4043
- id: string;
4044
- role: "user";
4045
- content: string | ({
4046
- type: "text";
4047
- text: string;
4048
- } | {
4049
- type: "image";
4050
- source: {
4051
- value: string;
4052
- type: "data";
4053
- mimeType: string;
4054
- } | {
4055
- value: string;
4056
- type: "url";
4057
- mimeType?: string | undefined;
4058
- };
4059
- metadata?: unknown;
4060
- } | {
4061
- type: "audio";
4062
- source: {
4063
- value: string;
4064
- type: "data";
4065
- mimeType: string;
4066
- } | {
4067
- value: string;
4068
- type: "url";
4069
- mimeType?: string | undefined;
4070
- };
4071
- metadata?: unknown;
4072
- } | {
4073
- type: "video";
4074
- source: {
4075
- value: string;
4076
- type: "data";
4077
- mimeType: string;
4078
- } | {
4079
- value: string;
4080
- type: "url";
4081
- mimeType?: string | undefined;
4082
- };
4083
- metadata?: unknown;
4084
- } | {
4085
- type: "document";
4086
- source: {
4087
- value: string;
4088
- type: "data";
4089
- mimeType: string;
4090
- } | {
4091
- value: string;
4092
- type: "url";
4093
- mimeType?: string | undefined;
4094
- };
4095
- metadata?: unknown;
4096
- } | {
4097
- type: "binary";
4098
- mimeType: string;
4099
- id?: string | undefined;
4100
- data?: string | undefined;
4101
- url?: string | undefined;
4102
- filename?: string | undefined;
4103
- })[];
4104
- name?: string | undefined;
4105
- encryptedValue?: string | undefined;
4106
- metadata?: Record<string, any> | undefined;
4107
- subagentRunId?: string | undefined;
4108
- } | {
4109
- id: string;
4110
- role: "tool";
4111
- content: string;
4112
- toolCallId: string;
4113
- encryptedValue?: string | undefined;
4114
- metadata?: Record<string, any> | undefined;
4115
- subagentRunId?: string | undefined;
4116
- error?: string | undefined;
4117
- } | {
4118
- id: string;
4119
- role: "activity";
4120
- content: Record<string, any>;
4121
- activityType: string;
4122
- metadata?: Record<string, any> | undefined;
4123
- subagentRunId?: string | undefined;
4124
- } | {
4125
- id: string;
4126
- role: "reasoning";
4127
- content: string;
4128
- encryptedValue?: string | undefined;
4129
- metadata?: Record<string, any> | undefined;
4130
- subagentRunId?: string | undefined;
4131
- })[];
2745
+ messages: Message$1[];
4132
2746
  showCursor: boolean;
4133
- messageElements: ({
4134
- id: string;
4135
- role: "assistant";
4136
- name?: string | undefined;
4137
- encryptedValue?: string | undefined;
4138
- metadata?: Record<string, any> | undefined;
4139
- content?: string | undefined;
4140
- subagentRunId?: string | undefined;
4141
- toolCalls?: {
4142
- function: {
4143
- name: string;
4144
- arguments: string;
4145
- };
4146
- type: "function";
4147
- id: string;
4148
- encryptedValue?: string | undefined;
4149
- metadata?: Record<string, any> | undefined;
4150
- }[] | undefined;
4151
- } | {
4152
- id: string;
4153
- role: "user";
4154
- content: string | ({
4155
- type: "text";
4156
- text: string;
4157
- } | {
4158
- type: "image";
4159
- source: {
4160
- value: string;
4161
- type: "data";
4162
- mimeType: string;
4163
- } | {
4164
- value: string;
4165
- type: "url";
4166
- mimeType?: string | undefined;
4167
- };
4168
- metadata?: unknown;
4169
- } | {
4170
- type: "audio";
4171
- source: {
4172
- value: string;
4173
- type: "data";
4174
- mimeType: string;
4175
- } | {
4176
- value: string;
4177
- type: "url";
4178
- mimeType?: string | undefined;
4179
- };
4180
- metadata?: unknown;
4181
- } | {
4182
- type: "video";
4183
- source: {
4184
- value: string;
4185
- type: "data";
4186
- mimeType: string;
4187
- } | {
4188
- value: string;
4189
- type: "url";
4190
- mimeType?: string | undefined;
4191
- };
4192
- metadata?: unknown;
4193
- } | {
4194
- type: "document";
4195
- source: {
4196
- value: string;
4197
- type: "data";
4198
- mimeType: string;
4199
- } | {
4200
- value: string;
4201
- type: "url";
4202
- mimeType?: string | undefined;
4203
- };
4204
- metadata?: unknown;
4205
- } | {
4206
- type: "binary";
4207
- mimeType: string;
4208
- id?: string | undefined;
4209
- data?: string | undefined;
4210
- url?: string | undefined;
4211
- filename?: string | undefined;
4212
- })[];
4213
- name?: string | undefined;
4214
- encryptedValue?: string | undefined;
4215
- metadata?: Record<string, any> | undefined;
4216
- subagentRunId?: string | undefined;
4217
- } | {
4218
- id: string;
4219
- role: "activity";
4220
- content: Record<string, any>;
4221
- activityType: string;
4222
- metadata?: Record<string, any> | undefined;
4223
- subagentRunId?: string | undefined;
4224
- } | {
4225
- id: string;
4226
- role: "reasoning";
4227
- content: string;
4228
- encryptedValue?: string | undefined;
4229
- metadata?: Record<string, any> | undefined;
4230
- subagentRunId?: string | undefined;
4231
- })[];
2747
+ messageElements: (_ag_ui_core.ActivityMessage | _ag_ui_core.AssistantMessage | _ag_ui_core.UserMessage | ReasoningMessage)[];
4232
2748
  }>;
4233
2749
  assistantMessageSlot: _angular_core.Signal<string | Type<any> | undefined>;
4234
2750
  userMessageSlot: _angular_core.Signal<string | Type<any> | undefined>;
4235
2751
  cursorSlot: _angular_core.Signal<string | Type<any> | undefined>;
4236
2752
  mergeAssistantProps(message: Message$1): {
4237
- message: {
4238
- id: string;
4239
- role: "developer";
4240
- content: string;
4241
- name?: string | undefined;
4242
- encryptedValue?: string | undefined;
4243
- metadata?: Record<string, any> | undefined;
4244
- subagentRunId?: string | undefined;
4245
- } | {
4246
- id: string;
4247
- role: "system";
4248
- content: string;
4249
- name?: string | undefined;
4250
- encryptedValue?: string | undefined;
4251
- metadata?: Record<string, any> | undefined;
4252
- subagentRunId?: string | undefined;
4253
- } | {
4254
- id: string;
4255
- role: "assistant";
4256
- name?: string | undefined;
4257
- encryptedValue?: string | undefined;
4258
- metadata?: Record<string, any> | undefined;
4259
- content?: string | undefined;
4260
- subagentRunId?: string | undefined;
4261
- toolCalls?: {
4262
- function: {
4263
- name: string;
4264
- arguments: string;
4265
- };
4266
- type: "function";
4267
- id: string;
4268
- encryptedValue?: string | undefined;
4269
- metadata?: Record<string, any> | undefined;
4270
- }[] | undefined;
4271
- } | {
4272
- id: string;
4273
- role: "user";
4274
- content: string | ({
4275
- type: "text";
4276
- text: string;
4277
- } | {
4278
- type: "image";
4279
- source: {
4280
- value: string;
4281
- type: "data";
4282
- mimeType: string;
4283
- } | {
4284
- value: string;
4285
- type: "url";
4286
- mimeType?: string | undefined;
4287
- };
4288
- metadata?: unknown;
4289
- } | {
4290
- type: "audio";
4291
- source: {
4292
- value: string;
4293
- type: "data";
4294
- mimeType: string;
4295
- } | {
4296
- value: string;
4297
- type: "url";
4298
- mimeType?: string | undefined;
4299
- };
4300
- metadata?: unknown;
4301
- } | {
4302
- type: "video";
4303
- source: {
4304
- value: string;
4305
- type: "data";
4306
- mimeType: string;
4307
- } | {
4308
- value: string;
4309
- type: "url";
4310
- mimeType?: string | undefined;
4311
- };
4312
- metadata?: unknown;
4313
- } | {
4314
- type: "document";
4315
- source: {
4316
- value: string;
4317
- type: "data";
4318
- mimeType: string;
4319
- } | {
4320
- value: string;
4321
- type: "url";
4322
- mimeType?: string | undefined;
4323
- };
4324
- metadata?: unknown;
4325
- } | {
4326
- type: "binary";
4327
- mimeType: string;
4328
- id?: string | undefined;
4329
- data?: string | undefined;
4330
- url?: string | undefined;
4331
- filename?: string | undefined;
4332
- })[];
4333
- name?: string | undefined;
4334
- encryptedValue?: string | undefined;
4335
- metadata?: Record<string, any> | undefined;
4336
- subagentRunId?: string | undefined;
4337
- } | {
4338
- id: string;
4339
- role: "tool";
4340
- content: string;
4341
- toolCallId: string;
4342
- encryptedValue?: string | undefined;
4343
- metadata?: Record<string, any> | undefined;
4344
- subagentRunId?: string | undefined;
4345
- error?: string | undefined;
4346
- } | {
4347
- id: string;
4348
- role: "activity";
4349
- content: Record<string, any>;
4350
- activityType: string;
4351
- metadata?: Record<string, any> | undefined;
4352
- subagentRunId?: string | undefined;
4353
- } | {
4354
- id: string;
4355
- role: "reasoning";
4356
- content: string;
4357
- encryptedValue?: string | undefined;
4358
- metadata?: Record<string, any> | undefined;
4359
- subagentRunId?: string | undefined;
4360
- };
4361
- messages: ({
4362
- id: string;
4363
- role: "developer";
4364
- content: string;
4365
- name?: string | undefined;
4366
- encryptedValue?: string | undefined;
4367
- metadata?: Record<string, any> | undefined;
4368
- subagentRunId?: string | undefined;
4369
- } | {
4370
- id: string;
4371
- role: "system";
4372
- content: string;
4373
- name?: string | undefined;
4374
- encryptedValue?: string | undefined;
4375
- metadata?: Record<string, any> | undefined;
4376
- subagentRunId?: string | undefined;
4377
- } | {
4378
- id: string;
4379
- role: "assistant";
4380
- name?: string | undefined;
4381
- encryptedValue?: string | undefined;
4382
- metadata?: Record<string, any> | undefined;
4383
- content?: string | undefined;
4384
- subagentRunId?: string | undefined;
4385
- toolCalls?: {
4386
- function: {
4387
- name: string;
4388
- arguments: string;
4389
- };
4390
- type: "function";
4391
- id: string;
4392
- encryptedValue?: string | undefined;
4393
- metadata?: Record<string, any> | undefined;
4394
- }[] | undefined;
4395
- } | {
4396
- id: string;
4397
- role: "user";
4398
- content: string | ({
4399
- type: "text";
4400
- text: string;
4401
- } | {
4402
- type: "image";
4403
- source: {
4404
- value: string;
4405
- type: "data";
4406
- mimeType: string;
4407
- } | {
4408
- value: string;
4409
- type: "url";
4410
- mimeType?: string | undefined;
4411
- };
4412
- metadata?: unknown;
4413
- } | {
4414
- type: "audio";
4415
- source: {
4416
- value: string;
4417
- type: "data";
4418
- mimeType: string;
4419
- } | {
4420
- value: string;
4421
- type: "url";
4422
- mimeType?: string | undefined;
4423
- };
4424
- metadata?: unknown;
4425
- } | {
4426
- type: "video";
4427
- source: {
4428
- value: string;
4429
- type: "data";
4430
- mimeType: string;
4431
- } | {
4432
- value: string;
4433
- type: "url";
4434
- mimeType?: string | undefined;
4435
- };
4436
- metadata?: unknown;
4437
- } | {
4438
- type: "document";
4439
- source: {
4440
- value: string;
4441
- type: "data";
4442
- mimeType: string;
4443
- } | {
4444
- value: string;
4445
- type: "url";
4446
- mimeType?: string | undefined;
4447
- };
4448
- metadata?: unknown;
4449
- } | {
4450
- type: "binary";
4451
- mimeType: string;
4452
- id?: string | undefined;
4453
- data?: string | undefined;
4454
- url?: string | undefined;
4455
- filename?: string | undefined;
4456
- })[];
4457
- name?: string | undefined;
4458
- encryptedValue?: string | undefined;
4459
- metadata?: Record<string, any> | undefined;
4460
- subagentRunId?: string | undefined;
4461
- } | {
4462
- id: string;
4463
- role: "tool";
4464
- content: string;
4465
- toolCallId: string;
4466
- encryptedValue?: string | undefined;
4467
- metadata?: Record<string, any> | undefined;
4468
- subagentRunId?: string | undefined;
4469
- error?: string | undefined;
4470
- } | {
4471
- id: string;
4472
- role: "activity";
4473
- content: Record<string, any>;
4474
- activityType: string;
4475
- metadata?: Record<string, any> | undefined;
4476
- subagentRunId?: string | undefined;
4477
- } | {
4478
- id: string;
4479
- role: "reasoning";
4480
- content: string;
4481
- encryptedValue?: string | undefined;
4482
- metadata?: Record<string, any> | undefined;
4483
- subagentRunId?: string | undefined;
4484
- })[];
2753
+ message: Message$1;
2754
+ messages: Message$1[];
4485
2755
  isLoading: boolean;
4486
2756
  inputClass: string | undefined;
4487
2757
  };
4488
2758
  mergeReasoningProps(message: ReasoningMessage): {
4489
- message: {
4490
- id: string;
4491
- role: "reasoning";
4492
- content: string;
4493
- encryptedValue?: string | undefined;
4494
- metadata?: Record<string, any> | undefined;
4495
- subagentRunId?: string | undefined;
4496
- };
4497
- messages: ({
4498
- id: string;
4499
- role: "developer";
4500
- content: string;
4501
- name?: string | undefined;
4502
- encryptedValue?: string | undefined;
4503
- metadata?: Record<string, any> | undefined;
4504
- subagentRunId?: string | undefined;
4505
- } | {
4506
- id: string;
4507
- role: "system";
4508
- content: string;
4509
- name?: string | undefined;
4510
- encryptedValue?: string | undefined;
4511
- metadata?: Record<string, any> | undefined;
4512
- subagentRunId?: string | undefined;
4513
- } | {
4514
- id: string;
4515
- role: "assistant";
4516
- name?: string | undefined;
4517
- encryptedValue?: string | undefined;
4518
- metadata?: Record<string, any> | undefined;
4519
- content?: string | undefined;
4520
- subagentRunId?: string | undefined;
4521
- toolCalls?: {
4522
- function: {
4523
- name: string;
4524
- arguments: string;
4525
- };
4526
- type: "function";
4527
- id: string;
4528
- encryptedValue?: string | undefined;
4529
- metadata?: Record<string, any> | undefined;
4530
- }[] | undefined;
4531
- } | {
4532
- id: string;
4533
- role: "user";
4534
- content: string | ({
4535
- type: "text";
4536
- text: string;
4537
- } | {
4538
- type: "image";
4539
- source: {
4540
- value: string;
4541
- type: "data";
4542
- mimeType: string;
4543
- } | {
4544
- value: string;
4545
- type: "url";
4546
- mimeType?: string | undefined;
4547
- };
4548
- metadata?: unknown;
4549
- } | {
4550
- type: "audio";
4551
- source: {
4552
- value: string;
4553
- type: "data";
4554
- mimeType: string;
4555
- } | {
4556
- value: string;
4557
- type: "url";
4558
- mimeType?: string | undefined;
4559
- };
4560
- metadata?: unknown;
4561
- } | {
4562
- type: "video";
4563
- source: {
4564
- value: string;
4565
- type: "data";
4566
- mimeType: string;
4567
- } | {
4568
- value: string;
4569
- type: "url";
4570
- mimeType?: string | undefined;
4571
- };
4572
- metadata?: unknown;
4573
- } | {
4574
- type: "document";
4575
- source: {
4576
- value: string;
4577
- type: "data";
4578
- mimeType: string;
4579
- } | {
4580
- value: string;
4581
- type: "url";
4582
- mimeType?: string | undefined;
4583
- };
4584
- metadata?: unknown;
4585
- } | {
4586
- type: "binary";
4587
- mimeType: string;
4588
- id?: string | undefined;
4589
- data?: string | undefined;
4590
- url?: string | undefined;
4591
- filename?: string | undefined;
4592
- })[];
4593
- name?: string | undefined;
4594
- encryptedValue?: string | undefined;
4595
- metadata?: Record<string, any> | undefined;
4596
- subagentRunId?: string | undefined;
4597
- } | {
4598
- id: string;
4599
- role: "tool";
4600
- content: string;
4601
- toolCallId: string;
4602
- encryptedValue?: string | undefined;
4603
- metadata?: Record<string, any> | undefined;
4604
- subagentRunId?: string | undefined;
4605
- error?: string | undefined;
4606
- } | {
4607
- id: string;
4608
- role: "activity";
4609
- content: Record<string, any>;
4610
- activityType: string;
4611
- metadata?: Record<string, any> | undefined;
4612
- subagentRunId?: string | undefined;
4613
- } | {
4614
- id: string;
4615
- role: "reasoning";
4616
- content: string;
4617
- encryptedValue?: string | undefined;
4618
- metadata?: Record<string, any> | undefined;
4619
- subagentRunId?: string | undefined;
4620
- })[];
2759
+ message: ReasoningMessage;
2760
+ messages: Message$1[];
4621
2761
  isRunning: boolean;
4622
2762
  inputClass: string | undefined;
4623
2763
  };
4624
2764
  childrenContext(): {
4625
- messages: ({
4626
- id: string;
4627
- role: "developer";
4628
- content: string;
4629
- name?: string | undefined;
4630
- encryptedValue?: string | undefined;
4631
- metadata?: Record<string, any> | undefined;
4632
- subagentRunId?: string | undefined;
4633
- } | {
4634
- id: string;
4635
- role: "system";
4636
- content: string;
4637
- name?: string | undefined;
4638
- encryptedValue?: string | undefined;
4639
- metadata?: Record<string, any> | undefined;
4640
- subagentRunId?: string | undefined;
4641
- } | {
4642
- id: string;
4643
- role: "assistant";
4644
- name?: string | undefined;
4645
- encryptedValue?: string | undefined;
4646
- metadata?: Record<string, any> | undefined;
4647
- content?: string | undefined;
4648
- subagentRunId?: string | undefined;
4649
- toolCalls?: {
4650
- function: {
4651
- name: string;
4652
- arguments: string;
4653
- };
4654
- type: "function";
4655
- id: string;
4656
- encryptedValue?: string | undefined;
4657
- metadata?: Record<string, any> | undefined;
4658
- }[] | undefined;
4659
- } | {
4660
- id: string;
4661
- role: "user";
4662
- content: string | ({
4663
- type: "text";
4664
- text: string;
4665
- } | {
4666
- type: "image";
4667
- source: {
4668
- value: string;
4669
- type: "data";
4670
- mimeType: string;
4671
- } | {
4672
- value: string;
4673
- type: "url";
4674
- mimeType?: string | undefined;
4675
- };
4676
- metadata?: unknown;
4677
- } | {
4678
- type: "audio";
4679
- source: {
4680
- value: string;
4681
- type: "data";
4682
- mimeType: string;
4683
- } | {
4684
- value: string;
4685
- type: "url";
4686
- mimeType?: string | undefined;
4687
- };
4688
- metadata?: unknown;
4689
- } | {
4690
- type: "video";
4691
- source: {
4692
- value: string;
4693
- type: "data";
4694
- mimeType: string;
4695
- } | {
4696
- value: string;
4697
- type: "url";
4698
- mimeType?: string | undefined;
4699
- };
4700
- metadata?: unknown;
4701
- } | {
4702
- type: "document";
4703
- source: {
4704
- value: string;
4705
- type: "data";
4706
- mimeType: string;
4707
- } | {
4708
- value: string;
4709
- type: "url";
4710
- mimeType?: string | undefined;
4711
- };
4712
- metadata?: unknown;
4713
- } | {
4714
- type: "binary";
4715
- mimeType: string;
4716
- id?: string | undefined;
4717
- data?: string | undefined;
4718
- url?: string | undefined;
4719
- filename?: string | undefined;
4720
- })[];
4721
- name?: string | undefined;
4722
- encryptedValue?: string | undefined;
4723
- metadata?: Record<string, any> | undefined;
4724
- subagentRunId?: string | undefined;
4725
- } | {
4726
- id: string;
4727
- role: "tool";
4728
- content: string;
4729
- toolCallId: string;
4730
- encryptedValue?: string | undefined;
4731
- metadata?: Record<string, any> | undefined;
4732
- subagentRunId?: string | undefined;
4733
- error?: string | undefined;
4734
- } | {
4735
- id: string;
4736
- role: "activity";
4737
- content: Record<string, any>;
4738
- activityType: string;
4739
- metadata?: Record<string, any> | undefined;
4740
- subagentRunId?: string | undefined;
4741
- } | {
4742
- id: string;
4743
- role: "reasoning";
4744
- content: string;
4745
- encryptedValue?: string | undefined;
4746
- metadata?: Record<string, any> | undefined;
4747
- subagentRunId?: string | undefined;
4748
- })[];
2765
+ messages: Message$1[];
4749
2766
  state: unknown;
4750
2767
  agentId: string | undefined;
4751
2768
  isRunning: boolean;
4752
2769
  inputClass: string | undefined;
4753
2770
  };
4754
2771
  mergeUserProps(message: Message$1): {
4755
- message: {
4756
- id: string;
4757
- role: "developer";
4758
- content: string;
4759
- name?: string | undefined;
4760
- encryptedValue?: string | undefined;
4761
- metadata?: Record<string, any> | undefined;
4762
- subagentRunId?: string | undefined;
4763
- } | {
4764
- id: string;
4765
- role: "system";
4766
- content: string;
4767
- name?: string | undefined;
4768
- encryptedValue?: string | undefined;
4769
- metadata?: Record<string, any> | undefined;
4770
- subagentRunId?: string | undefined;
4771
- } | {
4772
- id: string;
4773
- role: "assistant";
4774
- name?: string | undefined;
4775
- encryptedValue?: string | undefined;
4776
- metadata?: Record<string, any> | undefined;
4777
- content?: string | undefined;
4778
- subagentRunId?: string | undefined;
4779
- toolCalls?: {
4780
- function: {
4781
- name: string;
4782
- arguments: string;
4783
- };
4784
- type: "function";
4785
- id: string;
4786
- encryptedValue?: string | undefined;
4787
- metadata?: Record<string, any> | undefined;
4788
- }[] | undefined;
4789
- } | {
4790
- id: string;
4791
- role: "user";
4792
- content: string | ({
4793
- type: "text";
4794
- text: string;
4795
- } | {
4796
- type: "image";
4797
- source: {
4798
- value: string;
4799
- type: "data";
4800
- mimeType: string;
4801
- } | {
4802
- value: string;
4803
- type: "url";
4804
- mimeType?: string | undefined;
4805
- };
4806
- metadata?: unknown;
4807
- } | {
4808
- type: "audio";
4809
- source: {
4810
- value: string;
4811
- type: "data";
4812
- mimeType: string;
4813
- } | {
4814
- value: string;
4815
- type: "url";
4816
- mimeType?: string | undefined;
4817
- };
4818
- metadata?: unknown;
4819
- } | {
4820
- type: "video";
4821
- source: {
4822
- value: string;
4823
- type: "data";
4824
- mimeType: string;
4825
- } | {
4826
- value: string;
4827
- type: "url";
4828
- mimeType?: string | undefined;
4829
- };
4830
- metadata?: unknown;
4831
- } | {
4832
- type: "document";
4833
- source: {
4834
- value: string;
4835
- type: "data";
4836
- mimeType: string;
4837
- } | {
4838
- value: string;
4839
- type: "url";
4840
- mimeType?: string | undefined;
4841
- };
4842
- metadata?: unknown;
4843
- } | {
4844
- type: "binary";
4845
- mimeType: string;
4846
- id?: string | undefined;
4847
- data?: string | undefined;
4848
- url?: string | undefined;
4849
- filename?: string | undefined;
4850
- })[];
4851
- name?: string | undefined;
4852
- encryptedValue?: string | undefined;
4853
- metadata?: Record<string, any> | undefined;
4854
- subagentRunId?: string | undefined;
4855
- } | {
4856
- id: string;
4857
- role: "tool";
4858
- content: string;
4859
- toolCallId: string;
4860
- encryptedValue?: string | undefined;
4861
- metadata?: Record<string, any> | undefined;
4862
- subagentRunId?: string | undefined;
4863
- error?: string | undefined;
4864
- } | {
4865
- id: string;
4866
- role: "activity";
4867
- content: Record<string, any>;
4868
- activityType: string;
4869
- metadata?: Record<string, any> | undefined;
4870
- subagentRunId?: string | undefined;
4871
- } | {
4872
- id: string;
4873
- role: "reasoning";
4874
- content: string;
4875
- encryptedValue?: string | undefined;
4876
- metadata?: Record<string, any> | undefined;
4877
- subagentRunId?: string | undefined;
4878
- };
2772
+ message: Message$1;
4879
2773
  inputClass: string | undefined;
4880
2774
  };
4881
2775
  asReasoningMessage(message: Message$1): ReasoningMessage;
4882
- trackByMessageId(index: number, message: Message$1): string;
4883
- private pickActivityRenderer;
4884
- protected resolveActivityRender(message: ActivityMessage$1): {
4885
- component: Type<_copilotkit_angular.ActivityRenderer<unknown>>;
4886
- inputs: {
4887
- activityType: string;
4888
- content: unknown;
4889
- message: {
4890
- id: string;
4891
- role: "activity";
4892
- content: Record<string, any>;
4893
- activityType: string;
4894
- metadata?: Record<string, any> | undefined;
4895
- subagentRunId?: string | undefined;
4896
- };
4897
- agent: _ag_ui_client.AbstractAgent | undefined;
4898
- };
4899
- } | undefined;
2776
+ /**
2777
+ * Stable `@for` track key. A message's canonical id can change mid-stream, and
2778
+ * tracking by it destroys and recreates the row on that swap (the HITL chat
2779
+ * flash). See ./row-render-keys for the mechanism and its limits.
2780
+ */
2781
+ rowRenderKey(index: number, message: Message$1): string;
4900
2782
  handleAssistantThumbsUp(event: {
4901
2783
  message: Message$1;
4902
2784
  }): void;
@@ -4992,130 +2874,7 @@ declare class CopilotChatViewScrollView implements AfterViewInit, OnDestroy {
4992
2874
  inputContainerHeight: _angular_core.InputSignal<number>;
4993
2875
  isResizing: _angular_core.InputSignal<boolean>;
4994
2876
  inputClass: _angular_core.InputSignal<string | undefined>;
4995
- messages: _angular_core.InputSignal<({
4996
- id: string;
4997
- role: "developer";
4998
- content: string;
4999
- name?: string | undefined;
5000
- encryptedValue?: string | undefined;
5001
- metadata?: Record<string, any> | undefined;
5002
- subagentRunId?: string | undefined;
5003
- } | {
5004
- id: string;
5005
- role: "system";
5006
- content: string;
5007
- name?: string | undefined;
5008
- encryptedValue?: string | undefined;
5009
- metadata?: Record<string, any> | undefined;
5010
- subagentRunId?: string | undefined;
5011
- } | {
5012
- id: string;
5013
- role: "assistant";
5014
- name?: string | undefined;
5015
- encryptedValue?: string | undefined;
5016
- metadata?: Record<string, any> | undefined;
5017
- content?: string | undefined;
5018
- subagentRunId?: string | undefined;
5019
- toolCalls?: {
5020
- function: {
5021
- name: string;
5022
- arguments: string;
5023
- };
5024
- type: "function";
5025
- id: string;
5026
- encryptedValue?: string | undefined;
5027
- metadata?: Record<string, any> | undefined;
5028
- }[] | undefined;
5029
- } | {
5030
- id: string;
5031
- role: "user";
5032
- content: string | ({
5033
- type: "text";
5034
- text: string;
5035
- } | {
5036
- type: "image";
5037
- source: {
5038
- value: string;
5039
- type: "data";
5040
- mimeType: string;
5041
- } | {
5042
- value: string;
5043
- type: "url";
5044
- mimeType?: string | undefined;
5045
- };
5046
- metadata?: unknown;
5047
- } | {
5048
- type: "audio";
5049
- source: {
5050
- value: string;
5051
- type: "data";
5052
- mimeType: string;
5053
- } | {
5054
- value: string;
5055
- type: "url";
5056
- mimeType?: string | undefined;
5057
- };
5058
- metadata?: unknown;
5059
- } | {
5060
- type: "video";
5061
- source: {
5062
- value: string;
5063
- type: "data";
5064
- mimeType: string;
5065
- } | {
5066
- value: string;
5067
- type: "url";
5068
- mimeType?: string | undefined;
5069
- };
5070
- metadata?: unknown;
5071
- } | {
5072
- type: "document";
5073
- source: {
5074
- value: string;
5075
- type: "data";
5076
- mimeType: string;
5077
- } | {
5078
- value: string;
5079
- type: "url";
5080
- mimeType?: string | undefined;
5081
- };
5082
- metadata?: unknown;
5083
- } | {
5084
- type: "binary";
5085
- mimeType: string;
5086
- id?: string | undefined;
5087
- data?: string | undefined;
5088
- url?: string | undefined;
5089
- filename?: string | undefined;
5090
- })[];
5091
- name?: string | undefined;
5092
- encryptedValue?: string | undefined;
5093
- metadata?: Record<string, any> | undefined;
5094
- subagentRunId?: string | undefined;
5095
- } | {
5096
- id: string;
5097
- role: "tool";
5098
- content: string;
5099
- toolCallId: string;
5100
- encryptedValue?: string | undefined;
5101
- metadata?: Record<string, any> | undefined;
5102
- subagentRunId?: string | undefined;
5103
- error?: string | undefined;
5104
- } | {
5105
- id: string;
5106
- role: "activity";
5107
- content: Record<string, any>;
5108
- activityType: string;
5109
- metadata?: Record<string, any> | undefined;
5110
- subagentRunId?: string | undefined;
5111
- } | {
5112
- id: string;
5113
- role: "reasoning";
5114
- content: string;
5115
- encryptedValue?: string | undefined;
5116
- metadata?: Record<string, any> | undefined;
5117
- subagentRunId?: string | undefined;
5118
- })[]>;
2877
+ messages: _angular_core.InputSignal<Message[]>;
5119
2878
  /** Current agent state forwarded to message-view extension slots. */
5120
2879
  state: _angular_core.InputSignal<unknown>;
5121
2880
  agentId: _angular_core.InputSignal<string | undefined>;
@@ -5260,130 +3019,7 @@ declare class CopilotChatView implements OnInit, OnChanges {
5260
3019
  private handlers;
5261
3020
  protected readonly chatState: ChatState | null;
5262
3021
  protected readonly UploadIcon: CopilotIconData;
5263
- messages: _angular_core.InputSignal<({
5264
- id: string;
5265
- role: "developer";
5266
- content: string;
5267
- name?: string | undefined;
5268
- encryptedValue?: string | undefined;
5269
- metadata?: Record<string, any> | undefined;
5270
- subagentRunId?: string | undefined;
5271
- } | {
5272
- id: string;
5273
- role: "system";
5274
- content: string;
5275
- name?: string | undefined;
5276
- encryptedValue?: string | undefined;
5277
- metadata?: Record<string, any> | undefined;
5278
- subagentRunId?: string | undefined;
5279
- } | {
5280
- id: string;
5281
- role: "assistant";
5282
- name?: string | undefined;
5283
- encryptedValue?: string | undefined;
5284
- metadata?: Record<string, any> | undefined;
5285
- content?: string | undefined;
5286
- subagentRunId?: string | undefined;
5287
- toolCalls?: {
5288
- function: {
5289
- name: string;
5290
- arguments: string;
5291
- };
5292
- type: "function";
5293
- id: string;
5294
- encryptedValue?: string | undefined;
5295
- metadata?: Record<string, any> | undefined;
5296
- }[] | undefined;
5297
- } | {
5298
- id: string;
5299
- role: "user";
5300
- content: string | ({
5301
- type: "text";
5302
- text: string;
5303
- } | {
5304
- type: "image";
5305
- source: {
5306
- value: string;
5307
- type: "data";
5308
- mimeType: string;
5309
- } | {
5310
- value: string;
5311
- type: "url";
5312
- mimeType?: string | undefined;
5313
- };
5314
- metadata?: unknown;
5315
- } | {
5316
- type: "audio";
5317
- source: {
5318
- value: string;
5319
- type: "data";
5320
- mimeType: string;
5321
- } | {
5322
- value: string;
5323
- type: "url";
5324
- mimeType?: string | undefined;
5325
- };
5326
- metadata?: unknown;
5327
- } | {
5328
- type: "video";
5329
- source: {
5330
- value: string;
5331
- type: "data";
5332
- mimeType: string;
5333
- } | {
5334
- value: string;
5335
- type: "url";
5336
- mimeType?: string | undefined;
5337
- };
5338
- metadata?: unknown;
5339
- } | {
5340
- type: "document";
5341
- source: {
5342
- value: string;
5343
- type: "data";
5344
- mimeType: string;
5345
- } | {
5346
- value: string;
5347
- type: "url";
5348
- mimeType?: string | undefined;
5349
- };
5350
- metadata?: unknown;
5351
- } | {
5352
- type: "binary";
5353
- mimeType: string;
5354
- id?: string | undefined;
5355
- data?: string | undefined;
5356
- url?: string | undefined;
5357
- filename?: string | undefined;
5358
- })[];
5359
- name?: string | undefined;
5360
- encryptedValue?: string | undefined;
5361
- metadata?: Record<string, any> | undefined;
5362
- subagentRunId?: string | undefined;
5363
- } | {
5364
- id: string;
5365
- role: "tool";
5366
- content: string;
5367
- toolCallId: string;
5368
- encryptedValue?: string | undefined;
5369
- metadata?: Record<string, any> | undefined;
5370
- subagentRunId?: string | undefined;
5371
- error?: string | undefined;
5372
- } | {
5373
- id: string;
5374
- role: "activity";
5375
- content: Record<string, any>;
5376
- activityType: string;
5377
- metadata?: Record<string, any> | undefined;
5378
- subagentRunId?: string | undefined;
5379
- } | {
5380
- id: string;
5381
- role: "reasoning";
5382
- content: string;
5383
- encryptedValue?: string | undefined;
5384
- metadata?: Record<string, any> | undefined;
5385
- subagentRunId?: string | undefined;
5386
- })[]>;
3022
+ messages: _angular_core.InputSignal<Message[]>;
5387
3023
  /** Current agent state forwarded to message-view extension slots. */
5388
3024
  state: _angular_core.InputSignal<unknown>;
5389
3025
  agentId: _angular_core.InputSignal<string | undefined>;
@@ -5455,130 +3091,7 @@ declare class CopilotChatView implements OnInit, OnChanges {
5455
3091
  protected readonly defaultFeatherComponent: typeof CopilotChatViewFeather;
5456
3092
  protected readonly defaultDisclaimerComponent: typeof CopilotChatViewDisclaimer;
5457
3093
  protected readonly labels: _copilotkit_angular.CopilotChatLabels;
5458
- protected messagesValue: _angular_core.Signal<({
5459
- id: string;
5460
- role: "developer";
5461
- content: string;
5462
- name?: string | undefined;
5463
- encryptedValue?: string | undefined;
5464
- metadata?: Record<string, any> | undefined;
5465
- subagentRunId?: string | undefined;
5466
- } | {
5467
- id: string;
5468
- role: "system";
5469
- content: string;
5470
- name?: string | undefined;
5471
- encryptedValue?: string | undefined;
5472
- metadata?: Record<string, any> | undefined;
5473
- subagentRunId?: string | undefined;
5474
- } | {
5475
- id: string;
5476
- role: "assistant";
5477
- name?: string | undefined;
5478
- encryptedValue?: string | undefined;
5479
- metadata?: Record<string, any> | undefined;
5480
- content?: string | undefined;
5481
- subagentRunId?: string | undefined;
5482
- toolCalls?: {
5483
- function: {
5484
- name: string;
5485
- arguments: string;
5486
- };
5487
- type: "function";
5488
- id: string;
5489
- encryptedValue?: string | undefined;
5490
- metadata?: Record<string, any> | undefined;
5491
- }[] | undefined;
5492
- } | {
5493
- id: string;
5494
- role: "user";
5495
- content: string | ({
5496
- type: "text";
5497
- text: string;
5498
- } | {
5499
- type: "image";
5500
- source: {
5501
- value: string;
5502
- type: "data";
5503
- mimeType: string;
5504
- } | {
5505
- value: string;
5506
- type: "url";
5507
- mimeType?: string | undefined;
5508
- };
5509
- metadata?: unknown;
5510
- } | {
5511
- type: "audio";
5512
- source: {
5513
- value: string;
5514
- type: "data";
5515
- mimeType: string;
5516
- } | {
5517
- value: string;
5518
- type: "url";
5519
- mimeType?: string | undefined;
5520
- };
5521
- metadata?: unknown;
5522
- } | {
5523
- type: "video";
5524
- source: {
5525
- value: string;
5526
- type: "data";
5527
- mimeType: string;
5528
- } | {
5529
- value: string;
5530
- type: "url";
5531
- mimeType?: string | undefined;
5532
- };
5533
- metadata?: unknown;
5534
- } | {
5535
- type: "document";
5536
- source: {
5537
- value: string;
5538
- type: "data";
5539
- mimeType: string;
5540
- } | {
5541
- value: string;
5542
- type: "url";
5543
- mimeType?: string | undefined;
5544
- };
5545
- metadata?: unknown;
5546
- } | {
5547
- type: "binary";
5548
- mimeType: string;
5549
- id?: string | undefined;
5550
- data?: string | undefined;
5551
- url?: string | undefined;
5552
- filename?: string | undefined;
5553
- })[];
5554
- name?: string | undefined;
5555
- encryptedValue?: string | undefined;
5556
- metadata?: Record<string, any> | undefined;
5557
- subagentRunId?: string | undefined;
5558
- } | {
5559
- id: string;
5560
- role: "tool";
5561
- content: string;
5562
- toolCallId: string;
5563
- encryptedValue?: string | undefined;
5564
- metadata?: Record<string, any> | undefined;
5565
- subagentRunId?: string | undefined;
5566
- error?: string | undefined;
5567
- } | {
5568
- id: string;
5569
- role: "activity";
5570
- content: Record<string, any>;
5571
- activityType: string;
5572
- metadata?: Record<string, any> | undefined;
5573
- subagentRunId?: string | undefined;
5574
- } | {
5575
- id: string;
5576
- role: "reasoning";
5577
- content: string;
5578
- encryptedValue?: string | undefined;
5579
- metadata?: Record<string, any> | undefined;
5580
- subagentRunId?: string | undefined;
5581
- })[]>;
3094
+ protected messagesValue: _angular_core.Signal<Message[]>;
5582
3095
  protected autoScrollSignal: _angular_core.Signal<boolean>;
5583
3096
  protected showCursorSignal: _angular_core.Signal<boolean>;
5584
3097
  protected disclaimerTextSignal: _angular_core.Signal<string | undefined>;
@@ -5602,130 +3115,7 @@ declare class CopilotChatView implements OnInit, OnChanges {
5602
3115
  scrollToBottomButtonClass: string | undefined;
5603
3116
  inputContainerHeight: number;
5604
3117
  isResizing: boolean;
5605
- messages: ({
5606
- id: string;
5607
- role: "developer";
5608
- content: string;
5609
- name?: string | undefined;
5610
- encryptedValue?: string | undefined;
5611
- metadata?: Record<string, any> | undefined;
5612
- subagentRunId?: string | undefined;
5613
- } | {
5614
- id: string;
5615
- role: "system";
5616
- content: string;
5617
- name?: string | undefined;
5618
- encryptedValue?: string | undefined;
5619
- metadata?: Record<string, any> | undefined;
5620
- subagentRunId?: string | undefined;
5621
- } | {
5622
- id: string;
5623
- role: "assistant";
5624
- name?: string | undefined;
5625
- encryptedValue?: string | undefined;
5626
- metadata?: Record<string, any> | undefined;
5627
- content?: string | undefined;
5628
- subagentRunId?: string | undefined;
5629
- toolCalls?: {
5630
- function: {
5631
- name: string;
5632
- arguments: string;
5633
- };
5634
- type: "function";
5635
- id: string;
5636
- encryptedValue?: string | undefined;
5637
- metadata?: Record<string, any> | undefined;
5638
- }[] | undefined;
5639
- } | {
5640
- id: string;
5641
- role: "user";
5642
- content: string | ({
5643
- type: "text";
5644
- text: string;
5645
- } | {
5646
- type: "image";
5647
- source: {
5648
- value: string;
5649
- type: "data";
5650
- mimeType: string;
5651
- } | {
5652
- value: string;
5653
- type: "url";
5654
- mimeType?: string | undefined;
5655
- };
5656
- metadata?: unknown;
5657
- } | {
5658
- type: "audio";
5659
- source: {
5660
- value: string;
5661
- type: "data";
5662
- mimeType: string;
5663
- } | {
5664
- value: string;
5665
- type: "url";
5666
- mimeType?: string | undefined;
5667
- };
5668
- metadata?: unknown;
5669
- } | {
5670
- type: "video";
5671
- source: {
5672
- value: string;
5673
- type: "data";
5674
- mimeType: string;
5675
- } | {
5676
- value: string;
5677
- type: "url";
5678
- mimeType?: string | undefined;
5679
- };
5680
- metadata?: unknown;
5681
- } | {
5682
- type: "document";
5683
- source: {
5684
- value: string;
5685
- type: "data";
5686
- mimeType: string;
5687
- } | {
5688
- value: string;
5689
- type: "url";
5690
- mimeType?: string | undefined;
5691
- };
5692
- metadata?: unknown;
5693
- } | {
5694
- type: "binary";
5695
- mimeType: string;
5696
- id?: string | undefined;
5697
- data?: string | undefined;
5698
- url?: string | undefined;
5699
- filename?: string | undefined;
5700
- })[];
5701
- name?: string | undefined;
5702
- encryptedValue?: string | undefined;
5703
- metadata?: Record<string, any> | undefined;
5704
- subagentRunId?: string | undefined;
5705
- } | {
5706
- id: string;
5707
- role: "tool";
5708
- content: string;
5709
- toolCallId: string;
5710
- encryptedValue?: string | undefined;
5711
- metadata?: Record<string, any> | undefined;
5712
- subagentRunId?: string | undefined;
5713
- error?: string | undefined;
5714
- } | {
5715
- id: string;
5716
- role: "activity";
5717
- content: Record<string, any>;
5718
- activityType: string;
5719
- metadata?: Record<string, any> | undefined;
5720
- subagentRunId?: string | undefined;
5721
- } | {
5722
- id: string;
5723
- role: "reasoning";
5724
- content: string;
5725
- encryptedValue?: string | undefined;
5726
- metadata?: Record<string, any> | undefined;
5727
- subagentRunId?: string | undefined;
5728
- })[];
3118
+ messages: Message[];
5729
3119
  state: unknown;
5730
3120
  agentId: string | undefined;
5731
3121
  messageView: Type<any> | TemplateRef<any> | undefined;
@@ -5986,7 +3376,8 @@ declare class CopilotThreadsDrawer {
5986
3376
  * detect the no-license case; we therefore also require a positive
5987
3377
  * license-present signal. Only a resolved `valid`/`expiring` status counts as
5988
3378
  * present — a resolved `none`/`expired`/`invalid` gates the drawer to the
5989
- * locked view.
3379
+ * locked view. `unknown` is an unrecovered retryable entitlement lookup, not
3380
+ * a settled negative: fetch the list and let the threads endpoint decide.
5990
3381
  */
5991
3382
  protected readonly licensed: _angular_core.Signal<boolean>;
5992
3383
  /**
@@ -6196,22 +3587,51 @@ declare class CopilotSidebar {
6196
3587
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotSidebar, "copilot-sidebar", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "clickOutsideToClose": { "alias": "clickOutsideToClose"; "required": false; "isSignal": true; }; "chatComponent": { "alias": "chatComponent"; "required": false; "isSignal": true; }; "headerComponent": { "alias": "headerComponent"; "required": false; "isSignal": true; }; }, { "open": "openChange"; }, never, never, true, never>;
6197
3588
  }
6198
3589
 
3590
+ interface ActivityRender {
3591
+ component: RenderActivityMessageConfig["component"];
3592
+ inputs: {
3593
+ activityType: string;
3594
+ content: unknown;
3595
+ message: ActivityMessage$1;
3596
+ agent: AbstractAgent | undefined;
3597
+ };
3598
+ }
3599
+ /**
3600
+ * Renders a single activity message through the activity renderer registered
3601
+ * for its `activityType` (see `provideCopilotKit({ renderActivityMessages })`
3602
+ * and `registerRenderActivityMessage`).
3603
+ *
3604
+ * This is the activity counterpart of `RenderToolCalls` and the Angular
3605
+ * equivalent of React's `useRenderActivityMessage()`: `CopilotChatMessageView`
3606
+ * uses it for the `activity` role, and custom chat shells or non-chat surfaces
3607
+ * (dashboards, side panels) can host an activity with it directly instead of
3608
+ * instantiating the whole message view.
3609
+ *
3610
+ * ```html
3611
+ * <copilot-activity [message]="activityMessage" [agentId]="agentId" />
3612
+ * ```
3613
+ *
3614
+ * Renders nothing when no renderer matches or when the renderer's content
3615
+ * schema rejects the message content (a warning is logged in that case).
3616
+ */
3617
+ declare class CopilotActivity {
3618
+ #private;
3619
+ /** The activity message to render. */
3620
+ readonly message: _angular_core.InputSignal<ActivityMessage$1>;
3621
+ /** Agent scope used for renderer resolution and passed to the renderer. */
3622
+ readonly agentId: _angular_core.InputSignal<string | undefined>;
3623
+ protected resolveRender(message: ActivityMessage$1): ActivityRender | undefined;
3624
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotActivity, never>;
3625
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotActivity, "copilot-activity", never, { "message": { "alias": "message"; "required": true; "isSignal": true; }; "agentId": { "alias": "agentId"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
3626
+ }
3627
+
6199
3628
  type A2UIOperation = Record<string, unknown>;
6200
3629
 
6201
3630
  declare class CopilotA2UIActivityRenderer implements ActivityRenderer<unknown> {
6202
3631
  readonly activityType: _angular_core.InputSignal<string>;
6203
3632
  readonly content: _angular_core.InputSignal<unknown>;
6204
- readonly message: _angular_core.InputSignal<{
6205
- id: string;
6206
- role: "activity";
6207
- content: Record<string, any>;
6208
- activityType: string;
6209
- metadata?: Record<string, any> | undefined;
6210
- subagentRunId?: string | undefined;
6211
- }>;
3633
+ readonly message: _angular_core.InputSignal<ActivityMessage>;
6212
3634
  readonly agent: _angular_core.InputSignal<AbstractAgent | undefined>;
6213
- private readonly surfaceRef;
6214
- private readonly copilotKit;
6215
3635
  protected readonly config: _copilotkit_angular.CopilotKitConfig;
6216
3636
  private readonly platformId;
6217
3637
  private readonly zone;
@@ -6219,10 +3639,8 @@ declare class CopilotA2UIActivityRenderer implements ActivityRenderer<unknown> {
6219
3639
  protected readonly hasOperations: _angular_core.Signal<boolean>;
6220
3640
  protected readonly surfaceReady: _angular_core.WritableSignal<boolean>;
6221
3641
  protected readonly loaderContent: _angular_core.WritableSignal<unknown>;
6222
- private readonly markSurfaceReady;
6223
3642
  constructor();
6224
- protected handleAction(event: Event): Promise<void>;
6225
- protected handleError(event: Event): void;
3643
+ protected handleRendered(): void;
6226
3644
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotA2UIActivityRenderer, never>;
6227
3645
  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>;
6228
3646
  }
@@ -6285,16 +3703,10 @@ interface RenderA2UIArgs extends Record<string, unknown> {
6285
3703
  declare class CopilotA2UIToolRenderer implements ToolRenderer<RenderA2UIArgs> {
6286
3704
  readonly toolCall: _angular_core.InputSignal<AngularToolCall<RenderA2UIArgs>>;
6287
3705
  readonly agent: _angular_core.InputSignal<AbstractAgent | undefined>;
6288
- private readonly surfaceRef;
6289
- private readonly config;
6290
- private readonly copilotKit;
6291
3706
  protected readonly renderedOperations: _angular_core.Signal<A2UIOperation[]>;
6292
3707
  protected readonly tokens: _angular_core.Signal<number>;
6293
3708
  protected readonly phase: _angular_core.Signal<0 | 1 | 2 | 3>;
6294
3709
  protected readonly isHidden: _angular_core.Signal<boolean>;
6295
- constructor();
6296
- protected handleError(event: Event): void;
6297
- protected handleAction(event: Event): Promise<void>;
6298
3710
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotA2UIToolRenderer, never>;
6299
3711
  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>;
6300
3712
  }
@@ -6379,14 +3791,7 @@ declare class CopilotOpenGenerativeUIActivityRenderer implements ActivityRendere
6379
3791
  jsExpressions?: string[] | undefined;
6380
3792
  jsExpressionsComplete?: boolean | undefined;
6381
3793
  }>;
6382
- readonly message: _angular_core.InputSignal<{
6383
- id: string;
6384
- role: "activity";
6385
- content: Record<string, any>;
6386
- activityType: string;
6387
- metadata?: Record<string, any> | undefined;
6388
- subagentRunId?: string | undefined;
6389
- }>;
3794
+ readonly message: _angular_core.InputSignal<ActivityMessage>;
6390
3795
  readonly agent: _angular_core.InputSignal<AbstractAgent | undefined>;
6391
3796
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotOpenGenerativeUIActivityRenderer, never>;
6392
3797
  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>;
@@ -6412,6 +3817,6 @@ declare class CopilotOpenGenerativeUIToolRenderer implements ToolRenderer<Genera
6412
3817
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotOpenGenerativeUIToolRenderer, "copilot-open-generative-ui-tool-renderer", never, { "toolCall": { "alias": "toolCall"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
6413
3818
  }
6414
3819
 
6415
- export { AGUI_SEND_STATE_SNAPSHOT_TOOL_NAME, AgentStore, AudioRecorderError, COPILOT_CHAT_CONFIGURATION, COPILOT_CHAT_CONFIGURATION_OPTIONS, COPILOT_CHAT_DEFAULT_LABELS, COPILOT_CHAT_LABELS, COPILOT_KIT_CONFIG, ChatState, CopilotA2UIActivityRenderer, CopilotA2UIProgress, CopilotA2UIRecovery, CopilotA2UIToolRenderer, CopilotChat, CopilotChatAddFileButton, CopilotChatAssistantMessage, CopilotChatAssistantMessageCopyButton, CopilotChatAssistantMessageReadAloudButton, CopilotChatAssistantMessageRegenerateButton, CopilotChatAssistantMessageRenderer, CopilotChatAssistantMessageThumbsDownButton, CopilotChatAssistantMessageThumbsUpButton, CopilotChatAssistantMessageToolbar, CopilotChatAssistantMessageToolbarButton, CopilotChatAttachmentQueue, CopilotChatAttachmentRenderer, CopilotChatAttachmentsDirective, CopilotChatAudioRecorder, CopilotChatCancelTranscribeButton, CopilotChatConfiguration, CopilotChatFinishTranscribeButton, CopilotChatInput, CopilotChatInputDefaults, CopilotChatMessageView, CopilotChatMessageViewCursor, CopilotChatReasoningMessage, CopilotChatSendButton, CopilotChatStartTranscribeButton, CopilotChatSuggestionPill, CopilotChatSuggestionView, CopilotChatTextarea, CopilotChatToolCallsView, CopilotChatToolbar, CopilotChatToolbarButton, CopilotChatToolsMenu, CopilotChatUserMessage, CopilotChatUserMessageBranchNavigation, CopilotChatUserMessageCopyButton, CopilotChatUserMessageEditButton, CopilotChatUserMessageRenderer, CopilotChatUserMessageToolbar, CopilotChatUserMessageToolbarButton, CopilotChatView, CopilotChatViewDisclaimer, CopilotChatViewFeather, CopilotChatViewHandlers, CopilotChatViewInputContainer, 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 };
6416
- 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, SlotRegistryEntry, SlotValue, Thread, ThumbsDownButtonContext, ThumbsUpButtonContext, ToolCallHandler, ToolRenderer, ToolbarContext, ToolsMenuItem, TranscriptionErrorInfo, TranscriptionResult, UserMessageToolbarContext, WithSlots };
3820
+ 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 };
3821
+ 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 };
6417
3822
  //# sourceMappingURL=copilotkit-angular.d.ts.map