@genesislcap/ai-assistant 15.84.2-GENC-1737.1 → 15.84.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai-assistant.api.json +138 -2144
- package/dist/ai-assistant.d.ts +43 -396
- package/dist/chat-driver.cjs +210 -724
- package/dist/chat-driver.cjs.map +4 -4
- package/dist/chat-driver.mjs +209 -724
- package/dist/chat-driver.mjs.map +4 -4
- package/dist/custom-elements.json +662 -1661
- package/dist/dts/components/agent-session/agent-session.d.ts +2 -45
- package/dist/dts/components/agent-session/agent-session.d.ts.map +1 -1
- package/dist/dts/components/ai-driver/ai-driver.d.ts +1 -57
- package/dist/dts/components/ai-driver/ai-driver.d.ts.map +1 -1
- package/dist/dts/components/ai-driver/base-driver-decorator.d.ts +1 -12
- package/dist/dts/components/ai-driver/base-driver-decorator.d.ts.map +1 -1
- package/dist/dts/components/chat-driver/chat-driver.constants.d.ts +8 -0
- package/dist/dts/components/chat-driver/chat-driver.constants.d.ts.map +1 -1
- package/dist/dts/components/chat-driver/chat-driver.d.ts +15 -67
- package/dist/dts/components/chat-driver/chat-driver.d.ts.map +1 -1
- package/dist/dts/components/orchestrating-driver/orchestrating-driver.d.ts +22 -112
- package/dist/dts/components/orchestrating-driver/orchestrating-driver.d.ts.map +1 -1
- package/dist/dts/config/config.d.ts +0 -66
- package/dist/dts/config/config.d.ts.map +1 -1
- package/dist/dts/main/main.d.ts +0 -3
- package/dist/dts/main/main.d.ts.map +1 -1
- package/dist/dts/main/main.types.d.ts +0 -6
- package/dist/dts/main/main.types.d.ts.map +1 -1
- package/dist/dts/react.d.ts +1 -4
- package/dist/dts/state/persistence/session-persister.d.ts.map +1 -1
- package/dist/dts/state/persistence/session-snapshot.d.ts +1 -33
- package/dist/dts/state/persistence/session-snapshot.d.ts.map +1 -1
- package/dist/dts/utils/condense-history.d.ts +3 -10
- package/dist/dts/utils/condense-history.d.ts.map +1 -1
- package/dist/esm/components/agent-session/agent-session.js +7 -114
- package/dist/esm/components/ai-driver/ai-driver.js +0 -3
- package/dist/esm/components/ai-driver/base-driver-decorator.js +0 -24
- package/dist/esm/components/chat-driver/chat-driver.constants.js +8 -0
- package/dist/esm/components/chat-driver/chat-driver.js +73 -232
- package/dist/esm/components/orchestrating-driver/orchestrating-driver.js +299 -447
- package/dist/esm/main/main.js +6 -32
- package/dist/esm/main/main.types.js +0 -6
- package/dist/esm/state/persistence/session-persister.js +12 -55
- package/dist/esm/state/persistence/session-snapshot.js +6 -12
- package/dist/esm/utils/condense-history.js +4 -13
- package/dist/react.cjs +1 -16
- package/dist/react.mjs +1 -16
- package/docs/sub_agent.md +1 -1
- package/package.json +17 -17
- package/dist/dts/components/orchestrating-driver/hand-off.d.ts +0 -14
- package/dist/dts/components/orchestrating-driver/hand-off.d.ts.map +0 -1
- package/dist/esm/components/orchestrating-driver/hand-off.js +0 -53
|
@@ -2231,7 +2231,7 @@
|
|
|
2231
2231
|
{
|
|
2232
2232
|
"kind": "Class",
|
|
2233
2233
|
"canonicalReference": "@genesislcap/ai-assistant!AgentSession:class",
|
|
2234
|
-
"docComment": "/**\n * The stateful-agent contract: which agent is active, whether a flow or a user pin holds routing, and the `onActivate` / `onDeactivate` lifecycle around a swap. Either driver can own one.\n *\n * Knows nothing about routing, tool surfaces or transcripts — whether an agent is terminal, the
|
|
2234
|
+
"docComment": "/**\n * The stateful-agent contract: which agent is active, whether a flow or a user pin holds routing, and the `onActivate` / `onDeactivate` lifecycle around a swap. Either driver can own one.\n *\n * Knows nothing about routing, tool surfaces or transcripts — whether an agent is terminal, the continuation tool, the handoff marker in history all stay with the orchestrator, which is the only thing with agents to route between.\n *\n * @beta\n */\n",
|
|
2235
2235
|
"excerptTokens": [
|
|
2236
2236
|
{
|
|
2237
2237
|
"kind": "Content",
|
|
@@ -2376,42 +2376,6 @@
|
|
|
2376
2376
|
"isAbstract": false,
|
|
2377
2377
|
"name": "dispose"
|
|
2378
2378
|
},
|
|
2379
|
-
{
|
|
2380
|
-
"kind": "Method",
|
|
2381
|
-
"canonicalReference": "@genesislcap/ai-assistant!AgentSession#endSuspended:member(1)",
|
|
2382
|
-
"docComment": "/**\n * Deactivate the callers left waiting by hand-offs that ended without a hand-back, newest first, when no teardown follows to do it (GENC-1737).\n */\n",
|
|
2383
|
-
"excerptTokens": [
|
|
2384
|
-
{
|
|
2385
|
-
"kind": "Content",
|
|
2386
|
-
"text": "endSuspended(): "
|
|
2387
|
-
},
|
|
2388
|
-
{
|
|
2389
|
-
"kind": "Reference",
|
|
2390
|
-
"text": "Promise",
|
|
2391
|
-
"canonicalReference": "!Promise:interface"
|
|
2392
|
-
},
|
|
2393
|
-
{
|
|
2394
|
-
"kind": "Content",
|
|
2395
|
-
"text": "<void>"
|
|
2396
|
-
},
|
|
2397
|
-
{
|
|
2398
|
-
"kind": "Content",
|
|
2399
|
-
"text": ";"
|
|
2400
|
-
}
|
|
2401
|
-
],
|
|
2402
|
-
"isStatic": false,
|
|
2403
|
-
"returnTypeTokenRange": {
|
|
2404
|
-
"startIndex": 1,
|
|
2405
|
-
"endIndex": 3
|
|
2406
|
-
},
|
|
2407
|
-
"releaseTag": "Beta",
|
|
2408
|
-
"isProtected": false,
|
|
2409
|
-
"overloadIndex": 1,
|
|
2410
|
-
"parameters": [],
|
|
2411
|
-
"isOptional": false,
|
|
2412
|
-
"isAbstract": false,
|
|
2413
|
-
"name": "endSuspended"
|
|
2414
|
-
},
|
|
2415
2379
|
{
|
|
2416
2380
|
"kind": "Method",
|
|
2417
2381
|
"canonicalReference": "@genesislcap/ai-assistant!AgentSession#getActive:member(1)",
|
|
@@ -2479,54 +2443,6 @@
|
|
|
2479
2443
|
"isAbstract": false,
|
|
2480
2444
|
"name": "getFlowOwner"
|
|
2481
2445
|
},
|
|
2482
|
-
{
|
|
2483
|
-
"kind": "Method",
|
|
2484
|
-
"canonicalReference": "@genesislcap/ai-assistant!AgentSession#getHandOffData:member(1)",
|
|
2485
|
-
"docComment": "/**\n * The `data` of the hand-off that activated `agentName`, if one did and carried any.\n */\n",
|
|
2486
|
-
"excerptTokens": [
|
|
2487
|
-
{
|
|
2488
|
-
"kind": "Content",
|
|
2489
|
-
"text": "getHandOffData(agentName: "
|
|
2490
|
-
},
|
|
2491
|
-
{
|
|
2492
|
-
"kind": "Content",
|
|
2493
|
-
"text": "string"
|
|
2494
|
-
},
|
|
2495
|
-
{
|
|
2496
|
-
"kind": "Content",
|
|
2497
|
-
"text": "): "
|
|
2498
|
-
},
|
|
2499
|
-
{
|
|
2500
|
-
"kind": "Content",
|
|
2501
|
-
"text": "unknown"
|
|
2502
|
-
},
|
|
2503
|
-
{
|
|
2504
|
-
"kind": "Content",
|
|
2505
|
-
"text": ";"
|
|
2506
|
-
}
|
|
2507
|
-
],
|
|
2508
|
-
"isStatic": false,
|
|
2509
|
-
"returnTypeTokenRange": {
|
|
2510
|
-
"startIndex": 3,
|
|
2511
|
-
"endIndex": 4
|
|
2512
|
-
},
|
|
2513
|
-
"releaseTag": "Beta",
|
|
2514
|
-
"isProtected": false,
|
|
2515
|
-
"overloadIndex": 1,
|
|
2516
|
-
"parameters": [
|
|
2517
|
-
{
|
|
2518
|
-
"parameterName": "agentName",
|
|
2519
|
-
"parameterTypeTokenRange": {
|
|
2520
|
-
"startIndex": 1,
|
|
2521
|
-
"endIndex": 2
|
|
2522
|
-
},
|
|
2523
|
-
"isOptional": false
|
|
2524
|
-
}
|
|
2525
|
-
],
|
|
2526
|
-
"isOptional": false,
|
|
2527
|
-
"isAbstract": false,
|
|
2528
|
-
"name": "getHandOffData"
|
|
2529
|
-
},
|
|
2530
2446
|
{
|
|
2531
2447
|
"kind": "Method",
|
|
2532
2448
|
"canonicalReference": "@genesislcap/ai-assistant!AgentSession#getLockedName:member(1)",
|
|
@@ -2606,125 +2522,6 @@
|
|
|
2606
2522
|
"isAbstract": false,
|
|
2607
2523
|
"name": "getPinned"
|
|
2608
2524
|
},
|
|
2609
|
-
{
|
|
2610
|
-
"kind": "Method",
|
|
2611
|
-
"canonicalReference": "@genesislcap/ai-assistant!AgentSession#getSuspended:member(1)",
|
|
2612
|
-
"docComment": "/**\n * The callers waiting in a hand-off whose state is live, oldest first.\n */\n",
|
|
2613
|
-
"excerptTokens": [
|
|
2614
|
-
{
|
|
2615
|
-
"kind": "Content",
|
|
2616
|
-
"text": "getSuspended(): "
|
|
2617
|
-
},
|
|
2618
|
-
{
|
|
2619
|
-
"kind": "Content",
|
|
2620
|
-
"text": "readonly "
|
|
2621
|
-
},
|
|
2622
|
-
{
|
|
2623
|
-
"kind": "Reference",
|
|
2624
|
-
"text": "AgentConfig",
|
|
2625
|
-
"canonicalReference": "@genesislcap/ai-assistant!AgentConfig:type"
|
|
2626
|
-
},
|
|
2627
|
-
{
|
|
2628
|
-
"kind": "Content",
|
|
2629
|
-
"text": "[]"
|
|
2630
|
-
},
|
|
2631
|
-
{
|
|
2632
|
-
"kind": "Content",
|
|
2633
|
-
"text": ";"
|
|
2634
|
-
}
|
|
2635
|
-
],
|
|
2636
|
-
"isStatic": false,
|
|
2637
|
-
"returnTypeTokenRange": {
|
|
2638
|
-
"startIndex": 1,
|
|
2639
|
-
"endIndex": 4
|
|
2640
|
-
},
|
|
2641
|
-
"releaseTag": "Beta",
|
|
2642
|
-
"isProtected": false,
|
|
2643
|
-
"overloadIndex": 1,
|
|
2644
|
-
"parameters": [],
|
|
2645
|
-
"isOptional": false,
|
|
2646
|
-
"isAbstract": false,
|
|
2647
|
-
"name": "getSuspended"
|
|
2648
|
-
},
|
|
2649
|
-
{
|
|
2650
|
-
"kind": "Method",
|
|
2651
|
-
"canonicalReference": "@genesislcap/ai-assistant!AgentSession#handOff:member(1)",
|
|
2652
|
-
"docComment": "/**\n * Make `target` active for a hand-off (GENC-1737), holding the flow lock whatever kind of agent it is, since a waiting caller depends on it. With `suspendCaller` the active agent waits: it is not deactivated and keeps its state. Without it the active agent is deactivated as on any swap: a one-way hand-off from a target, whose waiting caller then waits for the new target. Queued with {@link AgentSession.activate}.\n */\n",
|
|
2653
|
-
"excerptTokens": [
|
|
2654
|
-
{
|
|
2655
|
-
"kind": "Content",
|
|
2656
|
-
"text": "handOff(target: "
|
|
2657
|
-
},
|
|
2658
|
-
{
|
|
2659
|
-
"kind": "Reference",
|
|
2660
|
-
"text": "AgentConfig",
|
|
2661
|
-
"canonicalReference": "@genesislcap/ai-assistant!AgentConfig:type"
|
|
2662
|
-
},
|
|
2663
|
-
{
|
|
2664
|
-
"kind": "Content",
|
|
2665
|
-
"text": ", options: "
|
|
2666
|
-
},
|
|
2667
|
-
{
|
|
2668
|
-
"kind": "Content",
|
|
2669
|
-
"text": "{\n suspendCaller: boolean;\n }"
|
|
2670
|
-
},
|
|
2671
|
-
{
|
|
2672
|
-
"kind": "Content",
|
|
2673
|
-
"text": "): "
|
|
2674
|
-
},
|
|
2675
|
-
{
|
|
2676
|
-
"kind": "Reference",
|
|
2677
|
-
"text": "Promise",
|
|
2678
|
-
"canonicalReference": "!Promise:interface"
|
|
2679
|
-
},
|
|
2680
|
-
{
|
|
2681
|
-
"kind": "Content",
|
|
2682
|
-
"text": "<"
|
|
2683
|
-
},
|
|
2684
|
-
{
|
|
2685
|
-
"kind": "Reference",
|
|
2686
|
-
"text": "AgentTransition",
|
|
2687
|
-
"canonicalReference": "@genesislcap/ai-assistant!AgentTransition:interface"
|
|
2688
|
-
},
|
|
2689
|
-
{
|
|
2690
|
-
"kind": "Content",
|
|
2691
|
-
"text": ">"
|
|
2692
|
-
},
|
|
2693
|
-
{
|
|
2694
|
-
"kind": "Content",
|
|
2695
|
-
"text": ";"
|
|
2696
|
-
}
|
|
2697
|
-
],
|
|
2698
|
-
"isStatic": false,
|
|
2699
|
-
"returnTypeTokenRange": {
|
|
2700
|
-
"startIndex": 5,
|
|
2701
|
-
"endIndex": 9
|
|
2702
|
-
},
|
|
2703
|
-
"releaseTag": "Beta",
|
|
2704
|
-
"isProtected": false,
|
|
2705
|
-
"overloadIndex": 1,
|
|
2706
|
-
"parameters": [
|
|
2707
|
-
{
|
|
2708
|
-
"parameterName": "target",
|
|
2709
|
-
"parameterTypeTokenRange": {
|
|
2710
|
-
"startIndex": 1,
|
|
2711
|
-
"endIndex": 2
|
|
2712
|
-
},
|
|
2713
|
-
"isOptional": false
|
|
2714
|
-
},
|
|
2715
|
-
{
|
|
2716
|
-
"parameterName": "options",
|
|
2717
|
-
"parameterTypeTokenRange": {
|
|
2718
|
-
"startIndex": 3,
|
|
2719
|
-
"endIndex": 4
|
|
2720
|
-
},
|
|
2721
|
-
"isOptional": false
|
|
2722
|
-
}
|
|
2723
|
-
],
|
|
2724
|
-
"isOptional": false,
|
|
2725
|
-
"isAbstract": false,
|
|
2726
|
-
"name": "handOff"
|
|
2727
|
-
},
|
|
2728
2525
|
{
|
|
2729
2526
|
"kind": "Method",
|
|
2730
2527
|
"canonicalReference": "@genesislcap/ai-assistant!AgentSession#hasRestoredState:member(1)",
|
|
@@ -2871,85 +2668,6 @@
|
|
|
2871
2668
|
"isAbstract": false,
|
|
2872
2669
|
"name": "release"
|
|
2873
2670
|
},
|
|
2874
|
-
{
|
|
2875
|
-
"kind": "Method",
|
|
2876
|
-
"canonicalReference": "@genesislcap/ai-assistant!AgentSession#resume:member(1)",
|
|
2877
|
-
"docComment": "/**\n * Make a waiting caller active again when its hand-off ends (GENC-1737). One whose state is live resumes without `onActivate`, since it was never deactivated; after a reload it is activated from its saved state like any other agent. `lock` keeps the flow lock on it: it held it before, or another caller is still waiting further down.\n */\n",
|
|
2878
|
-
"excerptTokens": [
|
|
2879
|
-
{
|
|
2880
|
-
"kind": "Content",
|
|
2881
|
-
"text": "resume(caller: "
|
|
2882
|
-
},
|
|
2883
|
-
{
|
|
2884
|
-
"kind": "Reference",
|
|
2885
|
-
"text": "AgentConfig",
|
|
2886
|
-
"canonicalReference": "@genesislcap/ai-assistant!AgentConfig:type"
|
|
2887
|
-
},
|
|
2888
|
-
{
|
|
2889
|
-
"kind": "Content",
|
|
2890
|
-
"text": ", lock: "
|
|
2891
|
-
},
|
|
2892
|
-
{
|
|
2893
|
-
"kind": "Content",
|
|
2894
|
-
"text": "boolean"
|
|
2895
|
-
},
|
|
2896
|
-
{
|
|
2897
|
-
"kind": "Content",
|
|
2898
|
-
"text": "): "
|
|
2899
|
-
},
|
|
2900
|
-
{
|
|
2901
|
-
"kind": "Reference",
|
|
2902
|
-
"text": "Promise",
|
|
2903
|
-
"canonicalReference": "!Promise:interface"
|
|
2904
|
-
},
|
|
2905
|
-
{
|
|
2906
|
-
"kind": "Content",
|
|
2907
|
-
"text": "<"
|
|
2908
|
-
},
|
|
2909
|
-
{
|
|
2910
|
-
"kind": "Reference",
|
|
2911
|
-
"text": "AgentTransition",
|
|
2912
|
-
"canonicalReference": "@genesislcap/ai-assistant!AgentTransition:interface"
|
|
2913
|
-
},
|
|
2914
|
-
{
|
|
2915
|
-
"kind": "Content",
|
|
2916
|
-
"text": ">"
|
|
2917
|
-
},
|
|
2918
|
-
{
|
|
2919
|
-
"kind": "Content",
|
|
2920
|
-
"text": ";"
|
|
2921
|
-
}
|
|
2922
|
-
],
|
|
2923
|
-
"isStatic": false,
|
|
2924
|
-
"returnTypeTokenRange": {
|
|
2925
|
-
"startIndex": 5,
|
|
2926
|
-
"endIndex": 9
|
|
2927
|
-
},
|
|
2928
|
-
"releaseTag": "Beta",
|
|
2929
|
-
"isProtected": false,
|
|
2930
|
-
"overloadIndex": 1,
|
|
2931
|
-
"parameters": [
|
|
2932
|
-
{
|
|
2933
|
-
"parameterName": "caller",
|
|
2934
|
-
"parameterTypeTokenRange": {
|
|
2935
|
-
"startIndex": 1,
|
|
2936
|
-
"endIndex": 2
|
|
2937
|
-
},
|
|
2938
|
-
"isOptional": false
|
|
2939
|
-
},
|
|
2940
|
-
{
|
|
2941
|
-
"parameterName": "lock",
|
|
2942
|
-
"parameterTypeTokenRange": {
|
|
2943
|
-
"startIndex": 3,
|
|
2944
|
-
"endIndex": 4
|
|
2945
|
-
},
|
|
2946
|
-
"isOptional": false
|
|
2947
|
-
}
|
|
2948
|
-
],
|
|
2949
|
-
"isOptional": false,
|
|
2950
|
-
"isAbstract": false,
|
|
2951
|
-
"name": "resume"
|
|
2952
|
-
},
|
|
2953
2671
|
{
|
|
2954
2672
|
"kind": "Method",
|
|
2955
2673
|
"canonicalReference": "@genesislcap/ai-assistant!AgentSession#setFlowOwner:member(1)",
|
|
@@ -2998,70 +2716,6 @@
|
|
|
2998
2716
|
"isAbstract": false,
|
|
2999
2717
|
"name": "setFlowOwner"
|
|
3000
2718
|
},
|
|
3001
|
-
{
|
|
3002
|
-
"kind": "Method",
|
|
3003
|
-
"canonicalReference": "@genesislcap/ai-assistant!AgentSession#setHandOffData:member(1)",
|
|
3004
|
-
"docComment": "/**\n * Record the `data` a hand-off activated `agentName` with, or restore it; `undefined` drops it.\n */\n",
|
|
3005
|
-
"excerptTokens": [
|
|
3006
|
-
{
|
|
3007
|
-
"kind": "Content",
|
|
3008
|
-
"text": "setHandOffData(agentName: "
|
|
3009
|
-
},
|
|
3010
|
-
{
|
|
3011
|
-
"kind": "Content",
|
|
3012
|
-
"text": "string"
|
|
3013
|
-
},
|
|
3014
|
-
{
|
|
3015
|
-
"kind": "Content",
|
|
3016
|
-
"text": ", data: "
|
|
3017
|
-
},
|
|
3018
|
-
{
|
|
3019
|
-
"kind": "Content",
|
|
3020
|
-
"text": "unknown"
|
|
3021
|
-
},
|
|
3022
|
-
{
|
|
3023
|
-
"kind": "Content",
|
|
3024
|
-
"text": "): "
|
|
3025
|
-
},
|
|
3026
|
-
{
|
|
3027
|
-
"kind": "Content",
|
|
3028
|
-
"text": "void"
|
|
3029
|
-
},
|
|
3030
|
-
{
|
|
3031
|
-
"kind": "Content",
|
|
3032
|
-
"text": ";"
|
|
3033
|
-
}
|
|
3034
|
-
],
|
|
3035
|
-
"isStatic": false,
|
|
3036
|
-
"returnTypeTokenRange": {
|
|
3037
|
-
"startIndex": 5,
|
|
3038
|
-
"endIndex": 6
|
|
3039
|
-
},
|
|
3040
|
-
"releaseTag": "Beta",
|
|
3041
|
-
"isProtected": false,
|
|
3042
|
-
"overloadIndex": 1,
|
|
3043
|
-
"parameters": [
|
|
3044
|
-
{
|
|
3045
|
-
"parameterName": "agentName",
|
|
3046
|
-
"parameterTypeTokenRange": {
|
|
3047
|
-
"startIndex": 1,
|
|
3048
|
-
"endIndex": 2
|
|
3049
|
-
},
|
|
3050
|
-
"isOptional": false
|
|
3051
|
-
},
|
|
3052
|
-
{
|
|
3053
|
-
"parameterName": "data",
|
|
3054
|
-
"parameterTypeTokenRange": {
|
|
3055
|
-
"startIndex": 3,
|
|
3056
|
-
"endIndex": 4
|
|
3057
|
-
},
|
|
3058
|
-
"isOptional": false
|
|
3059
|
-
}
|
|
3060
|
-
],
|
|
3061
|
-
"isOptional": false,
|
|
3062
|
-
"isAbstract": false,
|
|
3063
|
-
"name": "setHandOffData"
|
|
3064
|
-
},
|
|
3065
2719
|
{
|
|
3066
2720
|
"kind": "Method",
|
|
3067
2721
|
"canonicalReference": "@genesislcap/ai-assistant!AgentSession#setPinned:member(1)",
|
|
@@ -3516,7 +3170,7 @@
|
|
|
3516
3170
|
},
|
|
3517
3171
|
{
|
|
3518
3172
|
"kind": "Content",
|
|
3519
|
-
"text": "{\n readonly SessionCleared: \"session-cleared\";\n readonly ChatHeaderMouseDown: \"chat-header-mousedown\";\n
|
|
3173
|
+
"text": "{\n readonly SessionCleared: \"session-cleared\";\n readonly ChatHeaderMouseDown: \"chat-header-mousedown\";\n}"
|
|
3520
3174
|
}
|
|
3521
3175
|
],
|
|
3522
3176
|
"fileUrlPath": "src/main/main.types.ts",
|
|
@@ -4689,72 +4343,6 @@
|
|
|
4689
4343
|
"parameters": [],
|
|
4690
4344
|
"name": "getFlowOwner"
|
|
4691
4345
|
},
|
|
4692
|
-
{
|
|
4693
|
-
"kind": "MethodSignature",
|
|
4694
|
-
"canonicalReference": "@genesislcap/ai-assistant!AiDriver#getHandOffData:member(1)",
|
|
4695
|
-
"docComment": "/**\n * The `data` each hand-off target was activated with, by name, for the agents a reload resumes: the flow owner and the callers waiting in a hand-off. See the tool context's `handOffData`.\n *\n * @beta\n */\n",
|
|
4696
|
-
"excerptTokens": [
|
|
4697
|
-
{
|
|
4698
|
-
"kind": "Content",
|
|
4699
|
-
"text": "getHandOffData?(): "
|
|
4700
|
-
},
|
|
4701
|
-
{
|
|
4702
|
-
"kind": "Reference",
|
|
4703
|
-
"text": "Record",
|
|
4704
|
-
"canonicalReference": "!Record:type"
|
|
4705
|
-
},
|
|
4706
|
-
{
|
|
4707
|
-
"kind": "Content",
|
|
4708
|
-
"text": "<string, unknown>"
|
|
4709
|
-
},
|
|
4710
|
-
{
|
|
4711
|
-
"kind": "Content",
|
|
4712
|
-
"text": ";"
|
|
4713
|
-
}
|
|
4714
|
-
],
|
|
4715
|
-
"isOptional": true,
|
|
4716
|
-
"returnTypeTokenRange": {
|
|
4717
|
-
"startIndex": 1,
|
|
4718
|
-
"endIndex": 3
|
|
4719
|
-
},
|
|
4720
|
-
"releaseTag": "Beta",
|
|
4721
|
-
"overloadIndex": 1,
|
|
4722
|
-
"parameters": [],
|
|
4723
|
-
"name": "getHandOffData"
|
|
4724
|
-
},
|
|
4725
|
-
{
|
|
4726
|
-
"kind": "MethodSignature",
|
|
4727
|
-
"canonicalReference": "@genesislcap/ai-assistant!AiDriver#getHandOffStack:member(1)",
|
|
4728
|
-
"docComment": "/**\n * The hand-offs in progress, oldest first, to save with the session (GENC-1737). Copies: changing them changes nothing.\n *\n * @beta\n */\n",
|
|
4729
|
-
"excerptTokens": [
|
|
4730
|
-
{
|
|
4731
|
-
"kind": "Content",
|
|
4732
|
-
"text": "getHandOffStack?(): "
|
|
4733
|
-
},
|
|
4734
|
-
{
|
|
4735
|
-
"kind": "Reference",
|
|
4736
|
-
"text": "HandOffFrame",
|
|
4737
|
-
"canonicalReference": "@genesislcap/ai-assistant!HandOffFrame:interface"
|
|
4738
|
-
},
|
|
4739
|
-
{
|
|
4740
|
-
"kind": "Content",
|
|
4741
|
-
"text": "[]"
|
|
4742
|
-
},
|
|
4743
|
-
{
|
|
4744
|
-
"kind": "Content",
|
|
4745
|
-
"text": ";"
|
|
4746
|
-
}
|
|
4747
|
-
],
|
|
4748
|
-
"isOptional": true,
|
|
4749
|
-
"returnTypeTokenRange": {
|
|
4750
|
-
"startIndex": 1,
|
|
4751
|
-
"endIndex": 3
|
|
4752
|
-
},
|
|
4753
|
-
"releaseTag": "Beta",
|
|
4754
|
-
"overloadIndex": 1,
|
|
4755
|
-
"parameters": [],
|
|
4756
|
-
"name": "getHandOffStack"
|
|
4757
|
-
},
|
|
4758
4346
|
{
|
|
4759
4347
|
"kind": "MethodSignature",
|
|
4760
4348
|
"canonicalReference": "@genesislcap/ai-assistant!AiDriver#getHistoryForPersistence:member(1)",
|
|
@@ -5585,149 +5173,6 @@
|
|
|
5585
5173
|
],
|
|
5586
5174
|
"name": "restoreCondensePolicies"
|
|
5587
5175
|
},
|
|
5588
|
-
{
|
|
5589
|
-
"kind": "MethodSignature",
|
|
5590
|
-
"canonicalReference": "@genesislcap/ai-assistant!AiDriver#restoreHandOffData:member(1)",
|
|
5591
|
-
"docComment": "/**\n * Restore what {@link AiDriver.getHandOffData} saved, before the hand-off stack. Nothing comes back from a frozen (`interrupted`) session, whose flow does not resume.\n *\n * @beta\n */\n",
|
|
5592
|
-
"excerptTokens": [
|
|
5593
|
-
{
|
|
5594
|
-
"kind": "Content",
|
|
5595
|
-
"text": "restoreHandOffData?(saved: "
|
|
5596
|
-
},
|
|
5597
|
-
{
|
|
5598
|
-
"kind": "Content",
|
|
5599
|
-
"text": "unknown"
|
|
5600
|
-
},
|
|
5601
|
-
{
|
|
5602
|
-
"kind": "Content",
|
|
5603
|
-
"text": ", interrupted: "
|
|
5604
|
-
},
|
|
5605
|
-
{
|
|
5606
|
-
"kind": "Content",
|
|
5607
|
-
"text": "boolean"
|
|
5608
|
-
},
|
|
5609
|
-
{
|
|
5610
|
-
"kind": "Content",
|
|
5611
|
-
"text": "): "
|
|
5612
|
-
},
|
|
5613
|
-
{
|
|
5614
|
-
"kind": "Content",
|
|
5615
|
-
"text": "void"
|
|
5616
|
-
},
|
|
5617
|
-
{
|
|
5618
|
-
"kind": "Content",
|
|
5619
|
-
"text": ";"
|
|
5620
|
-
}
|
|
5621
|
-
],
|
|
5622
|
-
"isOptional": true,
|
|
5623
|
-
"returnTypeTokenRange": {
|
|
5624
|
-
"startIndex": 5,
|
|
5625
|
-
"endIndex": 6
|
|
5626
|
-
},
|
|
5627
|
-
"releaseTag": "Beta",
|
|
5628
|
-
"overloadIndex": 1,
|
|
5629
|
-
"parameters": [
|
|
5630
|
-
{
|
|
5631
|
-
"parameterName": "saved",
|
|
5632
|
-
"parameterTypeTokenRange": {
|
|
5633
|
-
"startIndex": 1,
|
|
5634
|
-
"endIndex": 2
|
|
5635
|
-
},
|
|
5636
|
-
"isOptional": false
|
|
5637
|
-
},
|
|
5638
|
-
{
|
|
5639
|
-
"parameterName": "interrupted",
|
|
5640
|
-
"parameterTypeTokenRange": {
|
|
5641
|
-
"startIndex": 3,
|
|
5642
|
-
"endIndex": 4
|
|
5643
|
-
},
|
|
5644
|
-
"isOptional": false
|
|
5645
|
-
}
|
|
5646
|
-
],
|
|
5647
|
-
"name": "restoreHandOffData"
|
|
5648
|
-
},
|
|
5649
|
-
{
|
|
5650
|
-
"kind": "MethodSignature",
|
|
5651
|
-
"canonicalReference": "@genesislcap/ai-assistant!AiDriver#restoreHandOffStack:member(1)",
|
|
5652
|
-
"docComment": "/**\n * Restore saved hand-offs, before the condense policies, against the agents configured now and the saved agent states. A frame whose caller has gone, or whose stateful caller has no saved state (`interrupted` drops them all), is unwound with `handoff-unwound`. When the top frame's target had finished, or has gone, its caller is due to resume: `resume` names it and the note its resumed turn needs, and {@link AiDriver.resumeRestoredFlow} hands back.\n *\n * @beta\n */\n",
|
|
5653
|
-
"excerptTokens": [
|
|
5654
|
-
{
|
|
5655
|
-
"kind": "Content",
|
|
5656
|
-
"text": "restoreHandOffStack?(saved: "
|
|
5657
|
-
},
|
|
5658
|
-
{
|
|
5659
|
-
"kind": "Content",
|
|
5660
|
-
"text": "unknown"
|
|
5661
|
-
},
|
|
5662
|
-
{
|
|
5663
|
-
"kind": "Content",
|
|
5664
|
-
"text": ", savedStates: "
|
|
5665
|
-
},
|
|
5666
|
-
{
|
|
5667
|
-
"kind": "Reference",
|
|
5668
|
-
"text": "Record",
|
|
5669
|
-
"canonicalReference": "!Record:type"
|
|
5670
|
-
},
|
|
5671
|
-
{
|
|
5672
|
-
"kind": "Content",
|
|
5673
|
-
"text": "<string, unknown>"
|
|
5674
|
-
},
|
|
5675
|
-
{
|
|
5676
|
-
"kind": "Content",
|
|
5677
|
-
"text": ", interrupted: "
|
|
5678
|
-
},
|
|
5679
|
-
{
|
|
5680
|
-
"kind": "Content",
|
|
5681
|
-
"text": "boolean"
|
|
5682
|
-
},
|
|
5683
|
-
{
|
|
5684
|
-
"kind": "Content",
|
|
5685
|
-
"text": "): "
|
|
5686
|
-
},
|
|
5687
|
-
{
|
|
5688
|
-
"kind": "Content",
|
|
5689
|
-
"text": "{\n resume?: {\n agent: string;\n note: string;\n };\n }"
|
|
5690
|
-
},
|
|
5691
|
-
{
|
|
5692
|
-
"kind": "Content",
|
|
5693
|
-
"text": ";"
|
|
5694
|
-
}
|
|
5695
|
-
],
|
|
5696
|
-
"isOptional": true,
|
|
5697
|
-
"returnTypeTokenRange": {
|
|
5698
|
-
"startIndex": 8,
|
|
5699
|
-
"endIndex": 9
|
|
5700
|
-
},
|
|
5701
|
-
"releaseTag": "Beta",
|
|
5702
|
-
"overloadIndex": 1,
|
|
5703
|
-
"parameters": [
|
|
5704
|
-
{
|
|
5705
|
-
"parameterName": "saved",
|
|
5706
|
-
"parameterTypeTokenRange": {
|
|
5707
|
-
"startIndex": 1,
|
|
5708
|
-
"endIndex": 2
|
|
5709
|
-
},
|
|
5710
|
-
"isOptional": false
|
|
5711
|
-
},
|
|
5712
|
-
{
|
|
5713
|
-
"parameterName": "savedStates",
|
|
5714
|
-
"parameterTypeTokenRange": {
|
|
5715
|
-
"startIndex": 3,
|
|
5716
|
-
"endIndex": 5
|
|
5717
|
-
},
|
|
5718
|
-
"isOptional": false
|
|
5719
|
-
},
|
|
5720
|
-
{
|
|
5721
|
-
"parameterName": "interrupted",
|
|
5722
|
-
"parameterTypeTokenRange": {
|
|
5723
|
-
"startIndex": 6,
|
|
5724
|
-
"endIndex": 7
|
|
5725
|
-
},
|
|
5726
|
-
"isOptional": false
|
|
5727
|
-
}
|
|
5728
|
-
],
|
|
5729
|
-
"name": "restoreHandOffStack"
|
|
5730
|
-
},
|
|
5731
5176
|
{
|
|
5732
5177
|
"kind": "MethodSignature",
|
|
5733
5178
|
"canonicalReference": "@genesislcap/ai-assistant!AiDriver#restoreInteractionCheckpoint:member(1)",
|
|
@@ -6005,39 +5450,6 @@
|
|
|
6005
5450
|
],
|
|
6006
5451
|
"name": "sendMessage"
|
|
6007
5452
|
},
|
|
6008
|
-
{
|
|
6009
|
-
"kind": "MethodSignature",
|
|
6010
|
-
"canonicalReference": "@genesislcap/ai-assistant!AiDriver#serializeWaitingCallers:member(1)",
|
|
6011
|
-
"docComment": "/**\n * The saved state of each caller waiting in a hand-off whose state is live, by name, from its `serialize`. Saved with the active agent's, so a reload can resume the caller.\n *\n * @beta\n */\n",
|
|
6012
|
-
"excerptTokens": [
|
|
6013
|
-
{
|
|
6014
|
-
"kind": "Content",
|
|
6015
|
-
"text": "serializeWaitingCallers?(): "
|
|
6016
|
-
},
|
|
6017
|
-
{
|
|
6018
|
-
"kind": "Reference",
|
|
6019
|
-
"text": "Record",
|
|
6020
|
-
"canonicalReference": "!Record:type"
|
|
6021
|
-
},
|
|
6022
|
-
{
|
|
6023
|
-
"kind": "Content",
|
|
6024
|
-
"text": "<string, unknown>"
|
|
6025
|
-
},
|
|
6026
|
-
{
|
|
6027
|
-
"kind": "Content",
|
|
6028
|
-
"text": ";"
|
|
6029
|
-
}
|
|
6030
|
-
],
|
|
6031
|
-
"isOptional": true,
|
|
6032
|
-
"returnTypeTokenRange": {
|
|
6033
|
-
"startIndex": 1,
|
|
6034
|
-
"endIndex": 3
|
|
6035
|
-
},
|
|
6036
|
-
"releaseTag": "Beta",
|
|
6037
|
-
"overloadIndex": 1,
|
|
6038
|
-
"parameters": [],
|
|
6039
|
-
"name": "serializeWaitingCallers"
|
|
6040
|
-
},
|
|
6041
5453
|
{
|
|
6042
5454
|
"kind": "MethodSignature",
|
|
6043
5455
|
"canonicalReference": "@genesislcap/ai-assistant!AiDriver#setContextGuard:member(1)",
|
|
@@ -6173,70 +5585,6 @@
|
|
|
6173
5585
|
}
|
|
6174
5586
|
],
|
|
6175
5587
|
"name": "setPinnedAgent"
|
|
6176
|
-
},
|
|
6177
|
-
{
|
|
6178
|
-
"kind": "MethodSignature",
|
|
6179
|
-
"canonicalReference": "@genesislcap/ai-assistant!AiDriver#unwindHandOffs:member(1)",
|
|
6180
|
-
"docComment": "/**\n * End every hand-off without a hand-back, newest first: the chat was cleared, or the agents changed. Each raises `handoff-unwound`; on Clear a waiting caller's `onHandOffReturn` is told.\n *\n * @beta\n */\n",
|
|
6181
|
-
"excerptTokens": [
|
|
6182
|
-
{
|
|
6183
|
-
"kind": "Content",
|
|
6184
|
-
"text": "unwindHandOffs?(kind: "
|
|
6185
|
-
},
|
|
6186
|
-
{
|
|
6187
|
-
"kind": "Reference",
|
|
6188
|
-
"text": "Extract",
|
|
6189
|
-
"canonicalReference": "!Extract:type"
|
|
6190
|
-
},
|
|
6191
|
-
{
|
|
6192
|
-
"kind": "Content",
|
|
6193
|
-
"text": "<"
|
|
6194
|
-
},
|
|
6195
|
-
{
|
|
6196
|
-
"kind": "Reference",
|
|
6197
|
-
"text": "HandOffOutcomeKind",
|
|
6198
|
-
"canonicalReference": "@genesislcap/ai-assistant!HandOffOutcomeKind:type"
|
|
6199
|
-
},
|
|
6200
|
-
{
|
|
6201
|
-
"kind": "Content",
|
|
6202
|
-
"text": ", 'cleared' | 'state-lost'>"
|
|
6203
|
-
},
|
|
6204
|
-
{
|
|
6205
|
-
"kind": "Content",
|
|
6206
|
-
"text": "): "
|
|
6207
|
-
},
|
|
6208
|
-
{
|
|
6209
|
-
"kind": "Reference",
|
|
6210
|
-
"text": "Promise",
|
|
6211
|
-
"canonicalReference": "!Promise:interface"
|
|
6212
|
-
},
|
|
6213
|
-
{
|
|
6214
|
-
"kind": "Content",
|
|
6215
|
-
"text": "<void>"
|
|
6216
|
-
},
|
|
6217
|
-
{
|
|
6218
|
-
"kind": "Content",
|
|
6219
|
-
"text": ";"
|
|
6220
|
-
}
|
|
6221
|
-
],
|
|
6222
|
-
"isOptional": true,
|
|
6223
|
-
"returnTypeTokenRange": {
|
|
6224
|
-
"startIndex": 6,
|
|
6225
|
-
"endIndex": 8
|
|
6226
|
-
},
|
|
6227
|
-
"releaseTag": "Beta",
|
|
6228
|
-
"overloadIndex": 1,
|
|
6229
|
-
"parameters": [
|
|
6230
|
-
{
|
|
6231
|
-
"parameterName": "kind",
|
|
6232
|
-
"parameterTypeTokenRange": {
|
|
6233
|
-
"startIndex": 1,
|
|
6234
|
-
"endIndex": 5
|
|
6235
|
-
},
|
|
6236
|
-
"isOptional": false
|
|
6237
|
-
}
|
|
6238
|
-
],
|
|
6239
|
-
"name": "unwindHandOffs"
|
|
6240
5588
|
}
|
|
6241
5589
|
],
|
|
6242
5590
|
"extendsTokenRanges": [
|
|
@@ -6439,129 +5787,6 @@
|
|
|
6439
5787
|
"endIndex": 3
|
|
6440
5788
|
}
|
|
6441
5789
|
},
|
|
6442
|
-
{
|
|
6443
|
-
"kind": "PropertySignature",
|
|
6444
|
-
"canonicalReference": "@genesislcap/ai-assistant!AiDriverEventMap#\"handoff-returned\":member",
|
|
6445
|
-
"docComment": "/**\n * A hand-off ended and its caller is active again; `detail.outcome` says how.\n */\n",
|
|
6446
|
-
"excerptTokens": [
|
|
6447
|
-
{
|
|
6448
|
-
"kind": "Content",
|
|
6449
|
-
"text": "'handoff-returned': "
|
|
6450
|
-
},
|
|
6451
|
-
{
|
|
6452
|
-
"kind": "Reference",
|
|
6453
|
-
"text": "CustomEvent",
|
|
6454
|
-
"canonicalReference": "!CustomEvent:interface"
|
|
6455
|
-
},
|
|
6456
|
-
{
|
|
6457
|
-
"kind": "Content",
|
|
6458
|
-
"text": "<"
|
|
6459
|
-
},
|
|
6460
|
-
{
|
|
6461
|
-
"kind": "Reference",
|
|
6462
|
-
"text": "HandOffFrame",
|
|
6463
|
-
"canonicalReference": "@genesislcap/ai-assistant!HandOffFrame:interface"
|
|
6464
|
-
},
|
|
6465
|
-
{
|
|
6466
|
-
"kind": "Content",
|
|
6467
|
-
"text": ">"
|
|
6468
|
-
},
|
|
6469
|
-
{
|
|
6470
|
-
"kind": "Content",
|
|
6471
|
-
"text": ";"
|
|
6472
|
-
}
|
|
6473
|
-
],
|
|
6474
|
-
"isReadonly": false,
|
|
6475
|
-
"isOptional": false,
|
|
6476
|
-
"releaseTag": "Beta",
|
|
6477
|
-
"name": "\"handoff-returned\"",
|
|
6478
|
-
"propertyTypeTokenRange": {
|
|
6479
|
-
"startIndex": 1,
|
|
6480
|
-
"endIndex": 5
|
|
6481
|
-
}
|
|
6482
|
-
},
|
|
6483
|
-
{
|
|
6484
|
-
"kind": "PropertySignature",
|
|
6485
|
-
"canonicalReference": "@genesislcap/ai-assistant!AiDriverEventMap#\"handoff-started\":member",
|
|
6486
|
-
"docComment": "/**\n * A hand-off started: its target is now active (GENC-1737).\n */\n",
|
|
6487
|
-
"excerptTokens": [
|
|
6488
|
-
{
|
|
6489
|
-
"kind": "Content",
|
|
6490
|
-
"text": "'handoff-started': "
|
|
6491
|
-
},
|
|
6492
|
-
{
|
|
6493
|
-
"kind": "Reference",
|
|
6494
|
-
"text": "CustomEvent",
|
|
6495
|
-
"canonicalReference": "!CustomEvent:interface"
|
|
6496
|
-
},
|
|
6497
|
-
{
|
|
6498
|
-
"kind": "Content",
|
|
6499
|
-
"text": "<"
|
|
6500
|
-
},
|
|
6501
|
-
{
|
|
6502
|
-
"kind": "Reference",
|
|
6503
|
-
"text": "HandOffFrame",
|
|
6504
|
-
"canonicalReference": "@genesislcap/ai-assistant!HandOffFrame:interface"
|
|
6505
|
-
},
|
|
6506
|
-
{
|
|
6507
|
-
"kind": "Content",
|
|
6508
|
-
"text": ">"
|
|
6509
|
-
},
|
|
6510
|
-
{
|
|
6511
|
-
"kind": "Content",
|
|
6512
|
-
"text": ";"
|
|
6513
|
-
}
|
|
6514
|
-
],
|
|
6515
|
-
"isReadonly": false,
|
|
6516
|
-
"isOptional": false,
|
|
6517
|
-
"releaseTag": "Beta",
|
|
6518
|
-
"name": "\"handoff-started\"",
|
|
6519
|
-
"propertyTypeTokenRange": {
|
|
6520
|
-
"startIndex": 1,
|
|
6521
|
-
"endIndex": 5
|
|
6522
|
-
}
|
|
6523
|
-
},
|
|
6524
|
-
{
|
|
6525
|
-
"kind": "PropertySignature",
|
|
6526
|
-
"canonicalReference": "@genesislcap/ai-assistant!AiDriverEventMap#\"handoff-unwound\":member",
|
|
6527
|
-
"docComment": "/**\n * A hand-off ended with no hand-back: cleared, or found unresumable.\n */\n",
|
|
6528
|
-
"excerptTokens": [
|
|
6529
|
-
{
|
|
6530
|
-
"kind": "Content",
|
|
6531
|
-
"text": "'handoff-unwound': "
|
|
6532
|
-
},
|
|
6533
|
-
{
|
|
6534
|
-
"kind": "Reference",
|
|
6535
|
-
"text": "CustomEvent",
|
|
6536
|
-
"canonicalReference": "!CustomEvent:interface"
|
|
6537
|
-
},
|
|
6538
|
-
{
|
|
6539
|
-
"kind": "Content",
|
|
6540
|
-
"text": "<"
|
|
6541
|
-
},
|
|
6542
|
-
{
|
|
6543
|
-
"kind": "Reference",
|
|
6544
|
-
"text": "HandOffFrame",
|
|
6545
|
-
"canonicalReference": "@genesislcap/ai-assistant!HandOffFrame:interface"
|
|
6546
|
-
},
|
|
6547
|
-
{
|
|
6548
|
-
"kind": "Content",
|
|
6549
|
-
"text": ">"
|
|
6550
|
-
},
|
|
6551
|
-
{
|
|
6552
|
-
"kind": "Content",
|
|
6553
|
-
"text": ";"
|
|
6554
|
-
}
|
|
6555
|
-
],
|
|
6556
|
-
"isReadonly": false,
|
|
6557
|
-
"isOptional": false,
|
|
6558
|
-
"releaseTag": "Beta",
|
|
6559
|
-
"name": "\"handoff-unwound\"",
|
|
6560
|
-
"propertyTypeTokenRange": {
|
|
6561
|
-
"startIndex": 1,
|
|
6562
|
-
"endIndex": 5
|
|
6563
|
-
}
|
|
6564
|
-
},
|
|
6565
5790
|
{
|
|
6566
5791
|
"kind": "PropertySignature",
|
|
6567
5792
|
"canonicalReference": "@genesislcap/ai-assistant!AiDriverEventMap#\"history-updated\":member",
|
|
@@ -11923,78 +11148,6 @@
|
|
|
11923
11148
|
"isAbstract": false,
|
|
11924
11149
|
"name": "getFlowOwner"
|
|
11925
11150
|
},
|
|
11926
|
-
{
|
|
11927
|
-
"kind": "Method",
|
|
11928
|
-
"canonicalReference": "@genesislcap/ai-assistant!BaseDriverDecorator#getHandOffData:member(1)",
|
|
11929
|
-
"docComment": "",
|
|
11930
|
-
"excerptTokens": [
|
|
11931
|
-
{
|
|
11932
|
-
"kind": "Content",
|
|
11933
|
-
"text": "getHandOffData(): "
|
|
11934
|
-
},
|
|
11935
|
-
{
|
|
11936
|
-
"kind": "Reference",
|
|
11937
|
-
"text": "Record",
|
|
11938
|
-
"canonicalReference": "!Record:type"
|
|
11939
|
-
},
|
|
11940
|
-
{
|
|
11941
|
-
"kind": "Content",
|
|
11942
|
-
"text": "<string, unknown>"
|
|
11943
|
-
},
|
|
11944
|
-
{
|
|
11945
|
-
"kind": "Content",
|
|
11946
|
-
"text": ";"
|
|
11947
|
-
}
|
|
11948
|
-
],
|
|
11949
|
-
"isStatic": false,
|
|
11950
|
-
"returnTypeTokenRange": {
|
|
11951
|
-
"startIndex": 1,
|
|
11952
|
-
"endIndex": 3
|
|
11953
|
-
},
|
|
11954
|
-
"releaseTag": "Beta",
|
|
11955
|
-
"isProtected": false,
|
|
11956
|
-
"overloadIndex": 1,
|
|
11957
|
-
"parameters": [],
|
|
11958
|
-
"isOptional": false,
|
|
11959
|
-
"isAbstract": false,
|
|
11960
|
-
"name": "getHandOffData"
|
|
11961
|
-
},
|
|
11962
|
-
{
|
|
11963
|
-
"kind": "Method",
|
|
11964
|
-
"canonicalReference": "@genesislcap/ai-assistant!BaseDriverDecorator#getHandOffStack:member(1)",
|
|
11965
|
-
"docComment": "",
|
|
11966
|
-
"excerptTokens": [
|
|
11967
|
-
{
|
|
11968
|
-
"kind": "Content",
|
|
11969
|
-
"text": "getHandOffStack(): "
|
|
11970
|
-
},
|
|
11971
|
-
{
|
|
11972
|
-
"kind": "Reference",
|
|
11973
|
-
"text": "HandOffFrame",
|
|
11974
|
-
"canonicalReference": "@genesislcap/ai-assistant!HandOffFrame:interface"
|
|
11975
|
-
},
|
|
11976
|
-
{
|
|
11977
|
-
"kind": "Content",
|
|
11978
|
-
"text": "[]"
|
|
11979
|
-
},
|
|
11980
|
-
{
|
|
11981
|
-
"kind": "Content",
|
|
11982
|
-
"text": ";"
|
|
11983
|
-
}
|
|
11984
|
-
],
|
|
11985
|
-
"isStatic": false,
|
|
11986
|
-
"returnTypeTokenRange": {
|
|
11987
|
-
"startIndex": 1,
|
|
11988
|
-
"endIndex": 3
|
|
11989
|
-
},
|
|
11990
|
-
"releaseTag": "Beta",
|
|
11991
|
-
"isProtected": false,
|
|
11992
|
-
"overloadIndex": 1,
|
|
11993
|
-
"parameters": [],
|
|
11994
|
-
"isOptional": false,
|
|
11995
|
-
"isAbstract": false,
|
|
11996
|
-
"name": "getHandOffStack"
|
|
11997
|
-
},
|
|
11998
11151
|
{
|
|
11999
11152
|
"kind": "Method",
|
|
12000
11153
|
"canonicalReference": "@genesislcap/ai-assistant!BaseDriverDecorator#getHistoryForPersistence:member(1)",
|
|
@@ -12951,155 +12104,6 @@
|
|
|
12951
12104
|
"isAbstract": false,
|
|
12952
12105
|
"name": "restoreCondensePolicies"
|
|
12953
12106
|
},
|
|
12954
|
-
{
|
|
12955
|
-
"kind": "Method",
|
|
12956
|
-
"canonicalReference": "@genesislcap/ai-assistant!BaseDriverDecorator#restoreHandOffData:member(1)",
|
|
12957
|
-
"docComment": "",
|
|
12958
|
-
"excerptTokens": [
|
|
12959
|
-
{
|
|
12960
|
-
"kind": "Content",
|
|
12961
|
-
"text": "restoreHandOffData(saved: "
|
|
12962
|
-
},
|
|
12963
|
-
{
|
|
12964
|
-
"kind": "Content",
|
|
12965
|
-
"text": "unknown"
|
|
12966
|
-
},
|
|
12967
|
-
{
|
|
12968
|
-
"kind": "Content",
|
|
12969
|
-
"text": ", interrupted: "
|
|
12970
|
-
},
|
|
12971
|
-
{
|
|
12972
|
-
"kind": "Content",
|
|
12973
|
-
"text": "boolean"
|
|
12974
|
-
},
|
|
12975
|
-
{
|
|
12976
|
-
"kind": "Content",
|
|
12977
|
-
"text": "): "
|
|
12978
|
-
},
|
|
12979
|
-
{
|
|
12980
|
-
"kind": "Content",
|
|
12981
|
-
"text": "void"
|
|
12982
|
-
},
|
|
12983
|
-
{
|
|
12984
|
-
"kind": "Content",
|
|
12985
|
-
"text": ";"
|
|
12986
|
-
}
|
|
12987
|
-
],
|
|
12988
|
-
"isStatic": false,
|
|
12989
|
-
"returnTypeTokenRange": {
|
|
12990
|
-
"startIndex": 5,
|
|
12991
|
-
"endIndex": 6
|
|
12992
|
-
},
|
|
12993
|
-
"releaseTag": "Beta",
|
|
12994
|
-
"isProtected": false,
|
|
12995
|
-
"overloadIndex": 1,
|
|
12996
|
-
"parameters": [
|
|
12997
|
-
{
|
|
12998
|
-
"parameterName": "saved",
|
|
12999
|
-
"parameterTypeTokenRange": {
|
|
13000
|
-
"startIndex": 1,
|
|
13001
|
-
"endIndex": 2
|
|
13002
|
-
},
|
|
13003
|
-
"isOptional": false
|
|
13004
|
-
},
|
|
13005
|
-
{
|
|
13006
|
-
"parameterName": "interrupted",
|
|
13007
|
-
"parameterTypeTokenRange": {
|
|
13008
|
-
"startIndex": 3,
|
|
13009
|
-
"endIndex": 4
|
|
13010
|
-
},
|
|
13011
|
-
"isOptional": false
|
|
13012
|
-
}
|
|
13013
|
-
],
|
|
13014
|
-
"isOptional": false,
|
|
13015
|
-
"isAbstract": false,
|
|
13016
|
-
"name": "restoreHandOffData"
|
|
13017
|
-
},
|
|
13018
|
-
{
|
|
13019
|
-
"kind": "Method",
|
|
13020
|
-
"canonicalReference": "@genesislcap/ai-assistant!BaseDriverDecorator#restoreHandOffStack:member(1)",
|
|
13021
|
-
"docComment": "",
|
|
13022
|
-
"excerptTokens": [
|
|
13023
|
-
{
|
|
13024
|
-
"kind": "Content",
|
|
13025
|
-
"text": "restoreHandOffStack(saved: "
|
|
13026
|
-
},
|
|
13027
|
-
{
|
|
13028
|
-
"kind": "Content",
|
|
13029
|
-
"text": "unknown"
|
|
13030
|
-
},
|
|
13031
|
-
{
|
|
13032
|
-
"kind": "Content",
|
|
13033
|
-
"text": ", savedStates: "
|
|
13034
|
-
},
|
|
13035
|
-
{
|
|
13036
|
-
"kind": "Reference",
|
|
13037
|
-
"text": "Record",
|
|
13038
|
-
"canonicalReference": "!Record:type"
|
|
13039
|
-
},
|
|
13040
|
-
{
|
|
13041
|
-
"kind": "Content",
|
|
13042
|
-
"text": "<string, unknown>"
|
|
13043
|
-
},
|
|
13044
|
-
{
|
|
13045
|
-
"kind": "Content",
|
|
13046
|
-
"text": ", interrupted: "
|
|
13047
|
-
},
|
|
13048
|
-
{
|
|
13049
|
-
"kind": "Content",
|
|
13050
|
-
"text": "boolean"
|
|
13051
|
-
},
|
|
13052
|
-
{
|
|
13053
|
-
"kind": "Content",
|
|
13054
|
-
"text": "): "
|
|
13055
|
-
},
|
|
13056
|
-
{
|
|
13057
|
-
"kind": "Content",
|
|
13058
|
-
"text": "{\n resume?: {\n agent: string;\n note: string;\n };\n }"
|
|
13059
|
-
},
|
|
13060
|
-
{
|
|
13061
|
-
"kind": "Content",
|
|
13062
|
-
"text": ";"
|
|
13063
|
-
}
|
|
13064
|
-
],
|
|
13065
|
-
"isStatic": false,
|
|
13066
|
-
"returnTypeTokenRange": {
|
|
13067
|
-
"startIndex": 8,
|
|
13068
|
-
"endIndex": 9
|
|
13069
|
-
},
|
|
13070
|
-
"releaseTag": "Beta",
|
|
13071
|
-
"isProtected": false,
|
|
13072
|
-
"overloadIndex": 1,
|
|
13073
|
-
"parameters": [
|
|
13074
|
-
{
|
|
13075
|
-
"parameterName": "saved",
|
|
13076
|
-
"parameterTypeTokenRange": {
|
|
13077
|
-
"startIndex": 1,
|
|
13078
|
-
"endIndex": 2
|
|
13079
|
-
},
|
|
13080
|
-
"isOptional": false
|
|
13081
|
-
},
|
|
13082
|
-
{
|
|
13083
|
-
"parameterName": "savedStates",
|
|
13084
|
-
"parameterTypeTokenRange": {
|
|
13085
|
-
"startIndex": 3,
|
|
13086
|
-
"endIndex": 5
|
|
13087
|
-
},
|
|
13088
|
-
"isOptional": false
|
|
13089
|
-
},
|
|
13090
|
-
{
|
|
13091
|
-
"parameterName": "interrupted",
|
|
13092
|
-
"parameterTypeTokenRange": {
|
|
13093
|
-
"startIndex": 6,
|
|
13094
|
-
"endIndex": 7
|
|
13095
|
-
},
|
|
13096
|
-
"isOptional": false
|
|
13097
|
-
}
|
|
13098
|
-
],
|
|
13099
|
-
"isOptional": false,
|
|
13100
|
-
"isAbstract": false,
|
|
13101
|
-
"name": "restoreHandOffStack"
|
|
13102
|
-
},
|
|
13103
12107
|
{
|
|
13104
12108
|
"kind": "Method",
|
|
13105
12109
|
"canonicalReference": "@genesislcap/ai-assistant!BaseDriverDecorator#restoreInteractionCheckpoint:member(1)",
|
|
@@ -13389,42 +12393,6 @@
|
|
|
13389
12393
|
"isAbstract": false,
|
|
13390
12394
|
"name": "sendMessage"
|
|
13391
12395
|
},
|
|
13392
|
-
{
|
|
13393
|
-
"kind": "Method",
|
|
13394
|
-
"canonicalReference": "@genesislcap/ai-assistant!BaseDriverDecorator#serializeWaitingCallers:member(1)",
|
|
13395
|
-
"docComment": "",
|
|
13396
|
-
"excerptTokens": [
|
|
13397
|
-
{
|
|
13398
|
-
"kind": "Content",
|
|
13399
|
-
"text": "serializeWaitingCallers(): "
|
|
13400
|
-
},
|
|
13401
|
-
{
|
|
13402
|
-
"kind": "Reference",
|
|
13403
|
-
"text": "Record",
|
|
13404
|
-
"canonicalReference": "!Record:type"
|
|
13405
|
-
},
|
|
13406
|
-
{
|
|
13407
|
-
"kind": "Content",
|
|
13408
|
-
"text": "<string, unknown>"
|
|
13409
|
-
},
|
|
13410
|
-
{
|
|
13411
|
-
"kind": "Content",
|
|
13412
|
-
"text": ";"
|
|
13413
|
-
}
|
|
13414
|
-
],
|
|
13415
|
-
"isStatic": false,
|
|
13416
|
-
"returnTypeTokenRange": {
|
|
13417
|
-
"startIndex": 1,
|
|
13418
|
-
"endIndex": 3
|
|
13419
|
-
},
|
|
13420
|
-
"releaseTag": "Beta",
|
|
13421
|
-
"isProtected": false,
|
|
13422
|
-
"overloadIndex": 1,
|
|
13423
|
-
"parameters": [],
|
|
13424
|
-
"isOptional": false,
|
|
13425
|
-
"isAbstract": false,
|
|
13426
|
-
"name": "serializeWaitingCallers"
|
|
13427
|
-
},
|
|
13428
12396
|
{
|
|
13429
12397
|
"kind": "Method",
|
|
13430
12398
|
"canonicalReference": "@genesislcap/ai-assistant!BaseDriverDecorator#setContextGuard:member(1)",
|
|
@@ -13569,73 +12537,6 @@
|
|
|
13569
12537
|
"isOptional": false,
|
|
13570
12538
|
"isAbstract": false,
|
|
13571
12539
|
"name": "setPinnedAgent"
|
|
13572
|
-
},
|
|
13573
|
-
{
|
|
13574
|
-
"kind": "Method",
|
|
13575
|
-
"canonicalReference": "@genesislcap/ai-assistant!BaseDriverDecorator#unwindHandOffs:member(1)",
|
|
13576
|
-
"docComment": "",
|
|
13577
|
-
"excerptTokens": [
|
|
13578
|
-
{
|
|
13579
|
-
"kind": "Content",
|
|
13580
|
-
"text": "unwindHandOffs(kind: "
|
|
13581
|
-
},
|
|
13582
|
-
{
|
|
13583
|
-
"kind": "Reference",
|
|
13584
|
-
"text": "Extract",
|
|
13585
|
-
"canonicalReference": "!Extract:type"
|
|
13586
|
-
},
|
|
13587
|
-
{
|
|
13588
|
-
"kind": "Content",
|
|
13589
|
-
"text": "<"
|
|
13590
|
-
},
|
|
13591
|
-
{
|
|
13592
|
-
"kind": "Reference",
|
|
13593
|
-
"text": "HandOffOutcomeKind",
|
|
13594
|
-
"canonicalReference": "@genesislcap/ai-assistant!HandOffOutcomeKind:type"
|
|
13595
|
-
},
|
|
13596
|
-
{
|
|
13597
|
-
"kind": "Content",
|
|
13598
|
-
"text": ", 'cleared' | 'state-lost'>"
|
|
13599
|
-
},
|
|
13600
|
-
{
|
|
13601
|
-
"kind": "Content",
|
|
13602
|
-
"text": "): "
|
|
13603
|
-
},
|
|
13604
|
-
{
|
|
13605
|
-
"kind": "Reference",
|
|
13606
|
-
"text": "Promise",
|
|
13607
|
-
"canonicalReference": "!Promise:interface"
|
|
13608
|
-
},
|
|
13609
|
-
{
|
|
13610
|
-
"kind": "Content",
|
|
13611
|
-
"text": "<void>"
|
|
13612
|
-
},
|
|
13613
|
-
{
|
|
13614
|
-
"kind": "Content",
|
|
13615
|
-
"text": ";"
|
|
13616
|
-
}
|
|
13617
|
-
],
|
|
13618
|
-
"isStatic": false,
|
|
13619
|
-
"returnTypeTokenRange": {
|
|
13620
|
-
"startIndex": 6,
|
|
13621
|
-
"endIndex": 8
|
|
13622
|
-
},
|
|
13623
|
-
"releaseTag": "Beta",
|
|
13624
|
-
"isProtected": false,
|
|
13625
|
-
"overloadIndex": 1,
|
|
13626
|
-
"parameters": [
|
|
13627
|
-
{
|
|
13628
|
-
"parameterName": "kind",
|
|
13629
|
-
"parameterTypeTokenRange": {
|
|
13630
|
-
"startIndex": 1,
|
|
13631
|
-
"endIndex": 5
|
|
13632
|
-
},
|
|
13633
|
-
"isOptional": false
|
|
13634
|
-
}
|
|
13635
|
-
],
|
|
13636
|
-
"isOptional": false,
|
|
13637
|
-
"isAbstract": false,
|
|
13638
|
-
"name": "unwindHandOffs"
|
|
13639
12540
|
}
|
|
13640
12541
|
],
|
|
13641
12542
|
"extendsTokenRange": {
|
|
@@ -14192,37 +13093,6 @@
|
|
|
14192
13093
|
"isAbstract": false,
|
|
14193
13094
|
"name": "dispose"
|
|
14194
13095
|
},
|
|
14195
|
-
{
|
|
14196
|
-
"kind": "Method",
|
|
14197
|
-
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#endSuspendedActivations:member(1)",
|
|
14198
|
-
"docComment": "/**\n * End every suspension: the hand-offs were unwound, so their callers' activations are over.\n */\n",
|
|
14199
|
-
"excerptTokens": [
|
|
14200
|
-
{
|
|
14201
|
-
"kind": "Content",
|
|
14202
|
-
"text": "endSuspendedActivations(): "
|
|
14203
|
-
},
|
|
14204
|
-
{
|
|
14205
|
-
"kind": "Content",
|
|
14206
|
-
"text": "void"
|
|
14207
|
-
},
|
|
14208
|
-
{
|
|
14209
|
-
"kind": "Content",
|
|
14210
|
-
"text": ";"
|
|
14211
|
-
}
|
|
14212
|
-
],
|
|
14213
|
-
"isStatic": false,
|
|
14214
|
-
"returnTypeTokenRange": {
|
|
14215
|
-
"startIndex": 1,
|
|
14216
|
-
"endIndex": 2
|
|
14217
|
-
},
|
|
14218
|
-
"releaseTag": "Public",
|
|
14219
|
-
"isProtected": false,
|
|
14220
|
-
"overloadIndex": 1,
|
|
14221
|
-
"parameters": [],
|
|
14222
|
-
"isOptional": false,
|
|
14223
|
-
"isAbstract": false,
|
|
14224
|
-
"name": "endSuspendedActivations"
|
|
14225
|
-
},
|
|
14226
13096
|
{
|
|
14227
13097
|
"kind": "Method",
|
|
14228
13098
|
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#getActiveAgent:member(1)",
|
|
@@ -14546,21 +13416,30 @@
|
|
|
14546
13416
|
},
|
|
14547
13417
|
{
|
|
14548
13418
|
"kind": "Method",
|
|
14549
|
-
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#
|
|
14550
|
-
"docComment": "
|
|
13419
|
+
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#getHistory:member(1)",
|
|
13420
|
+
"docComment": "",
|
|
14551
13421
|
"excerptTokens": [
|
|
14552
13422
|
{
|
|
14553
13423
|
"kind": "Content",
|
|
14554
|
-
"text": "
|
|
13424
|
+
"text": "getHistory(): "
|
|
14555
13425
|
},
|
|
14556
13426
|
{
|
|
14557
13427
|
"kind": "Reference",
|
|
14558
|
-
"text": "
|
|
14559
|
-
"canonicalReference": "
|
|
13428
|
+
"text": "ReadonlyArray",
|
|
13429
|
+
"canonicalReference": "!ReadonlyArray:interface"
|
|
14560
13430
|
},
|
|
14561
13431
|
{
|
|
14562
13432
|
"kind": "Content",
|
|
14563
|
-
"text": "
|
|
13433
|
+
"text": "<"
|
|
13434
|
+
},
|
|
13435
|
+
{
|
|
13436
|
+
"kind": "Reference",
|
|
13437
|
+
"text": "ChatMessage",
|
|
13438
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatMessage:interface"
|
|
13439
|
+
},
|
|
13440
|
+
{
|
|
13441
|
+
"kind": "Content",
|
|
13442
|
+
"text": ">"
|
|
14564
13443
|
},
|
|
14565
13444
|
{
|
|
14566
13445
|
"kind": "Content",
|
|
@@ -14570,7 +13449,7 @@
|
|
|
14570
13449
|
"isStatic": false,
|
|
14571
13450
|
"returnTypeTokenRange": {
|
|
14572
13451
|
"startIndex": 1,
|
|
14573
|
-
"endIndex":
|
|
13452
|
+
"endIndex": 5
|
|
14574
13453
|
},
|
|
14575
13454
|
"releaseTag": "Public",
|
|
14576
13455
|
"isProtected": false,
|
|
@@ -14578,25 +13457,25 @@
|
|
|
14578
13457
|
"parameters": [],
|
|
14579
13458
|
"isOptional": false,
|
|
14580
13459
|
"isAbstract": false,
|
|
14581
|
-
"name": "
|
|
13460
|
+
"name": "getHistory"
|
|
14582
13461
|
},
|
|
14583
13462
|
{
|
|
14584
13463
|
"kind": "Method",
|
|
14585
|
-
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#
|
|
14586
|
-
"docComment": "/**\n * The
|
|
13464
|
+
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#getHistoryForPersistence:member(1)",
|
|
13465
|
+
"docComment": "/**\n * The transcript as it should be **stored**: every tool payload the model has already stopped seeing replaced by the same stub it was sent (GENC-1566). Live history is untouched — this returns a copy.\n *\n * Condensation deliberately spares stored history, because the live transcript and the debug export both read it. A host writing that transcript to durable storage inherits the other half of that decision: it stores payloads the driver has already retired, on every autosave, for the life of the session. Measured on one small Create session — 58,187 chars, 7.4% of a 790 KB session object, across five payloads worth 14,434 tokens of context, written 86 times.\n *\n * Only already-collapsed payloads are touched, so this can never store a stub for something the model can still see, and it has no side effects (see `condenseForPersistence`, which is internal). A host that wants the unredacted transcript still calls {@link ChatDriver.getRawHistory}, and a diagnostics stream that keeps full payloads is unaffected — which is what makes the elision recoverable.\n */\n",
|
|
14587
13466
|
"excerptTokens": [
|
|
14588
13467
|
{
|
|
14589
13468
|
"kind": "Content",
|
|
14590
|
-
"text": "
|
|
13469
|
+
"text": "getHistoryForPersistence(): "
|
|
14591
13470
|
},
|
|
14592
13471
|
{
|
|
14593
13472
|
"kind": "Reference",
|
|
14594
|
-
"text": "
|
|
14595
|
-
"canonicalReference": "@genesislcap/foundation-ai!
|
|
13473
|
+
"text": "ChatMessage",
|
|
13474
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatMessage:interface"
|
|
14596
13475
|
},
|
|
14597
13476
|
{
|
|
14598
13477
|
"kind": "Content",
|
|
14599
|
-
"text": "
|
|
13478
|
+
"text": "[]"
|
|
14600
13479
|
},
|
|
14601
13480
|
{
|
|
14602
13481
|
"kind": "Content",
|
|
@@ -14614,34 +13493,25 @@
|
|
|
14614
13493
|
"parameters": [],
|
|
14615
13494
|
"isOptional": false,
|
|
14616
13495
|
"isAbstract": false,
|
|
14617
|
-
"name": "
|
|
13496
|
+
"name": "getHistoryForPersistence"
|
|
14618
13497
|
},
|
|
14619
13498
|
{
|
|
14620
13499
|
"kind": "Method",
|
|
14621
|
-
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#
|
|
14622
|
-
"docComment": "",
|
|
13500
|
+
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#getInteractionCheckpoint:member(1)",
|
|
13501
|
+
"docComment": "/**\n * One checkpoint to save: the long action in flight's, else the newest a reload cut.\n *\n * @deprecated\n *\n * Use `getInteractionCheckpoints`.\n */\n",
|
|
14623
13502
|
"excerptTokens": [
|
|
14624
13503
|
{
|
|
14625
13504
|
"kind": "Content",
|
|
14626
|
-
"text": "
|
|
14627
|
-
},
|
|
14628
|
-
{
|
|
14629
|
-
"kind": "Reference",
|
|
14630
|
-
"text": "ReadonlyArray",
|
|
14631
|
-
"canonicalReference": "!ReadonlyArray:interface"
|
|
14632
|
-
},
|
|
14633
|
-
{
|
|
14634
|
-
"kind": "Content",
|
|
14635
|
-
"text": "<"
|
|
13505
|
+
"text": "getInteractionCheckpoint(): "
|
|
14636
13506
|
},
|
|
14637
13507
|
{
|
|
14638
13508
|
"kind": "Reference",
|
|
14639
|
-
"text": "
|
|
14640
|
-
"canonicalReference": "@genesislcap/
|
|
13509
|
+
"text": "PersistedInteractionCheckpoint",
|
|
13510
|
+
"canonicalReference": "@genesislcap/ai-assistant!PersistedInteractionCheckpoint:interface"
|
|
14641
13511
|
},
|
|
14642
13512
|
{
|
|
14643
13513
|
"kind": "Content",
|
|
14644
|
-
"text": "
|
|
13514
|
+
"text": " | undefined"
|
|
14645
13515
|
},
|
|
14646
13516
|
{
|
|
14647
13517
|
"kind": "Content",
|
|
@@ -14651,7 +13521,7 @@
|
|
|
14651
13521
|
"isStatic": false,
|
|
14652
13522
|
"returnTypeTokenRange": {
|
|
14653
13523
|
"startIndex": 1,
|
|
14654
|
-
"endIndex":
|
|
13524
|
+
"endIndex": 3
|
|
14655
13525
|
},
|
|
14656
13526
|
"releaseTag": "Public",
|
|
14657
13527
|
"isProtected": false,
|
|
@@ -14659,21 +13529,25 @@
|
|
|
14659
13529
|
"parameters": [],
|
|
14660
13530
|
"isOptional": false,
|
|
14661
13531
|
"isAbstract": false,
|
|
14662
|
-
"name": "
|
|
13532
|
+
"name": "getInteractionCheckpoint"
|
|
14663
13533
|
},
|
|
14664
13534
|
{
|
|
14665
13535
|
"kind": "Method",
|
|
14666
|
-
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#
|
|
14667
|
-
"docComment": "/**\n *
|
|
13536
|
+
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#getInteractionCheckpoints:member(1)",
|
|
13537
|
+
"docComment": "/**\n * Every checkpoint to save with the session (GENC-1660 §4.12): those a reload cut that nothing has taken over yet, oldest first, then the long action in flight's, if it has saved one.\n *\n * Optional, so a third-party driver need not implement it; every shipped driver does.\n */\n",
|
|
14668
13538
|
"excerptTokens": [
|
|
14669
13539
|
{
|
|
14670
13540
|
"kind": "Content",
|
|
14671
|
-
"text": "
|
|
13541
|
+
"text": "getInteractionCheckpoints(): "
|
|
13542
|
+
},
|
|
13543
|
+
{
|
|
13544
|
+
"kind": "Content",
|
|
13545
|
+
"text": "readonly "
|
|
14672
13546
|
},
|
|
14673
13547
|
{
|
|
14674
13548
|
"kind": "Reference",
|
|
14675
|
-
"text": "
|
|
14676
|
-
"canonicalReference": "@genesislcap/
|
|
13549
|
+
"text": "PersistedInteractionCheckpoint",
|
|
13550
|
+
"canonicalReference": "@genesislcap/ai-assistant!PersistedInteractionCheckpoint:interface"
|
|
14677
13551
|
},
|
|
14678
13552
|
{
|
|
14679
13553
|
"kind": "Content",
|
|
@@ -14687,7 +13561,7 @@
|
|
|
14687
13561
|
"isStatic": false,
|
|
14688
13562
|
"returnTypeTokenRange": {
|
|
14689
13563
|
"startIndex": 1,
|
|
14690
|
-
"endIndex":
|
|
13564
|
+
"endIndex": 4
|
|
14691
13565
|
},
|
|
14692
13566
|
"releaseTag": "Public",
|
|
14693
13567
|
"isProtected": false,
|
|
@@ -14695,21 +13569,29 @@
|
|
|
14695
13569
|
"parameters": [],
|
|
14696
13570
|
"isOptional": false,
|
|
14697
13571
|
"isAbstract": false,
|
|
14698
|
-
"name": "
|
|
13572
|
+
"name": "getInteractionCheckpoints"
|
|
14699
13573
|
},
|
|
14700
13574
|
{
|
|
14701
13575
|
"kind": "Method",
|
|
14702
|
-
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#
|
|
14703
|
-
"docComment": "/**\n *
|
|
13576
|
+
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#getInteractionContext:member(1)",
|
|
13577
|
+
"docComment": "/**\n * The live {@link InteractionContext} for a pending interaction (GENC-1390), or `undefined` once resolved/evicted. Read by `AiChatInteractionWrapper` (via the host) to build the widget's pending `interaction` descriptor.\n */\n",
|
|
14704
13578
|
"excerptTokens": [
|
|
14705
13579
|
{
|
|
14706
13580
|
"kind": "Content",
|
|
14707
|
-
"text": "
|
|
13581
|
+
"text": "getInteractionContext(interactionId: "
|
|
13582
|
+
},
|
|
13583
|
+
{
|
|
13584
|
+
"kind": "Content",
|
|
13585
|
+
"text": "string"
|
|
13586
|
+
},
|
|
13587
|
+
{
|
|
13588
|
+
"kind": "Content",
|
|
13589
|
+
"text": "): "
|
|
14708
13590
|
},
|
|
14709
13591
|
{
|
|
14710
13592
|
"kind": "Reference",
|
|
14711
|
-
"text": "
|
|
14712
|
-
"canonicalReference": "@genesislcap/ai-assistant!
|
|
13593
|
+
"text": "InteractionContext",
|
|
13594
|
+
"canonicalReference": "@genesislcap/ai-assistant!InteractionContext:interface"
|
|
14713
13595
|
},
|
|
14714
13596
|
{
|
|
14715
13597
|
"kind": "Content",
|
|
@@ -14721,9 +13603,49 @@
|
|
|
14721
13603
|
}
|
|
14722
13604
|
],
|
|
14723
13605
|
"isStatic": false,
|
|
13606
|
+
"returnTypeTokenRange": {
|
|
13607
|
+
"startIndex": 3,
|
|
13608
|
+
"endIndex": 5
|
|
13609
|
+
},
|
|
13610
|
+
"releaseTag": "Public",
|
|
13611
|
+
"isProtected": false,
|
|
13612
|
+
"overloadIndex": 1,
|
|
13613
|
+
"parameters": [
|
|
13614
|
+
{
|
|
13615
|
+
"parameterName": "interactionId",
|
|
13616
|
+
"parameterTypeTokenRange": {
|
|
13617
|
+
"startIndex": 1,
|
|
13618
|
+
"endIndex": 2
|
|
13619
|
+
},
|
|
13620
|
+
"isOptional": false
|
|
13621
|
+
}
|
|
13622
|
+
],
|
|
13623
|
+
"isOptional": false,
|
|
13624
|
+
"isAbstract": false,
|
|
13625
|
+
"name": "getInteractionContext"
|
|
13626
|
+
},
|
|
13627
|
+
{
|
|
13628
|
+
"kind": "Method",
|
|
13629
|
+
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#getPreambleTokens:member(1)",
|
|
13630
|
+
"docComment": "/**\n * Token cost of the last request's preamble — system prompt, tool definitions and framed tail (GENC-1582). `undefined` before the first call of a turn.\n *\n * A live getter rather than a field stamped on each message, deliberately: every consumer wants the CURRENT preamble, never its history, and a message field would mean a type change in `@genesislcap/foundation-ai` plus churn in every persisted session for a value nobody reads twice.\n *\n * It exists because the preamble cannot be derived reliably. Inferring it as \"first measured prompt minus the messages it covered\" is accurate once and then goes stale, since each agent brings its own prompt and tool surface — and every attempt to compensate downstream ended up comparing stored characters against wire tokens. The driver is the only place that knows what it just sent.\n *\n * Optional — only drivers that build requests implement it.\n */\n",
|
|
13631
|
+
"excerptTokens": [
|
|
13632
|
+
{
|
|
13633
|
+
"kind": "Content",
|
|
13634
|
+
"text": "getPreambleTokens(): "
|
|
13635
|
+
},
|
|
13636
|
+
{
|
|
13637
|
+
"kind": "Content",
|
|
13638
|
+
"text": "number | undefined"
|
|
13639
|
+
},
|
|
13640
|
+
{
|
|
13641
|
+
"kind": "Content",
|
|
13642
|
+
"text": ";"
|
|
13643
|
+
}
|
|
13644
|
+
],
|
|
13645
|
+
"isStatic": false,
|
|
14724
13646
|
"returnTypeTokenRange": {
|
|
14725
13647
|
"startIndex": 1,
|
|
14726
|
-
"endIndex":
|
|
13648
|
+
"endIndex": 2
|
|
14727
13649
|
},
|
|
14728
13650
|
"releaseTag": "Public",
|
|
14729
13651
|
"isProtected": false,
|
|
@@ -14731,16 +13653,16 @@
|
|
|
14731
13653
|
"parameters": [],
|
|
14732
13654
|
"isOptional": false,
|
|
14733
13655
|
"isAbstract": false,
|
|
14734
|
-
"name": "
|
|
13656
|
+
"name": "getPreambleTokens"
|
|
14735
13657
|
},
|
|
14736
13658
|
{
|
|
14737
13659
|
"kind": "Method",
|
|
14738
|
-
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#
|
|
14739
|
-
"docComment": "
|
|
13660
|
+
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#getRawHistory:member(1)",
|
|
13661
|
+
"docComment": "",
|
|
14740
13662
|
"excerptTokens": [
|
|
14741
13663
|
{
|
|
14742
13664
|
"kind": "Content",
|
|
14743
|
-
"text": "
|
|
13665
|
+
"text": "getRawHistory(): "
|
|
14744
13666
|
},
|
|
14745
13667
|
{
|
|
14746
13668
|
"kind": "Content",
|
|
@@ -14748,132 +13670,8 @@
|
|
|
14748
13670
|
},
|
|
14749
13671
|
{
|
|
14750
13672
|
"kind": "Reference",
|
|
14751
|
-
"text": "
|
|
14752
|
-
"canonicalReference": "@genesislcap/ai
|
|
14753
|
-
},
|
|
14754
|
-
{
|
|
14755
|
-
"kind": "Content",
|
|
14756
|
-
"text": "[]"
|
|
14757
|
-
},
|
|
14758
|
-
{
|
|
14759
|
-
"kind": "Content",
|
|
14760
|
-
"text": ";"
|
|
14761
|
-
}
|
|
14762
|
-
],
|
|
14763
|
-
"isStatic": false,
|
|
14764
|
-
"returnTypeTokenRange": {
|
|
14765
|
-
"startIndex": 1,
|
|
14766
|
-
"endIndex": 4
|
|
14767
|
-
},
|
|
14768
|
-
"releaseTag": "Public",
|
|
14769
|
-
"isProtected": false,
|
|
14770
|
-
"overloadIndex": 1,
|
|
14771
|
-
"parameters": [],
|
|
14772
|
-
"isOptional": false,
|
|
14773
|
-
"isAbstract": false,
|
|
14774
|
-
"name": "getInteractionCheckpoints"
|
|
14775
|
-
},
|
|
14776
|
-
{
|
|
14777
|
-
"kind": "Method",
|
|
14778
|
-
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#getInteractionContext:member(1)",
|
|
14779
|
-
"docComment": "/**\n * The live {@link InteractionContext} for a pending interaction (GENC-1390), or `undefined` once resolved/evicted. Read by `AiChatInteractionWrapper` (via the host) to build the widget's pending `interaction` descriptor.\n */\n",
|
|
14780
|
-
"excerptTokens": [
|
|
14781
|
-
{
|
|
14782
|
-
"kind": "Content",
|
|
14783
|
-
"text": "getInteractionContext(interactionId: "
|
|
14784
|
-
},
|
|
14785
|
-
{
|
|
14786
|
-
"kind": "Content",
|
|
14787
|
-
"text": "string"
|
|
14788
|
-
},
|
|
14789
|
-
{
|
|
14790
|
-
"kind": "Content",
|
|
14791
|
-
"text": "): "
|
|
14792
|
-
},
|
|
14793
|
-
{
|
|
14794
|
-
"kind": "Reference",
|
|
14795
|
-
"text": "InteractionContext",
|
|
14796
|
-
"canonicalReference": "@genesislcap/ai-assistant!InteractionContext:interface"
|
|
14797
|
-
},
|
|
14798
|
-
{
|
|
14799
|
-
"kind": "Content",
|
|
14800
|
-
"text": " | undefined"
|
|
14801
|
-
},
|
|
14802
|
-
{
|
|
14803
|
-
"kind": "Content",
|
|
14804
|
-
"text": ";"
|
|
14805
|
-
}
|
|
14806
|
-
],
|
|
14807
|
-
"isStatic": false,
|
|
14808
|
-
"returnTypeTokenRange": {
|
|
14809
|
-
"startIndex": 3,
|
|
14810
|
-
"endIndex": 5
|
|
14811
|
-
},
|
|
14812
|
-
"releaseTag": "Public",
|
|
14813
|
-
"isProtected": false,
|
|
14814
|
-
"overloadIndex": 1,
|
|
14815
|
-
"parameters": [
|
|
14816
|
-
{
|
|
14817
|
-
"parameterName": "interactionId",
|
|
14818
|
-
"parameterTypeTokenRange": {
|
|
14819
|
-
"startIndex": 1,
|
|
14820
|
-
"endIndex": 2
|
|
14821
|
-
},
|
|
14822
|
-
"isOptional": false
|
|
14823
|
-
}
|
|
14824
|
-
],
|
|
14825
|
-
"isOptional": false,
|
|
14826
|
-
"isAbstract": false,
|
|
14827
|
-
"name": "getInteractionContext"
|
|
14828
|
-
},
|
|
14829
|
-
{
|
|
14830
|
-
"kind": "Method",
|
|
14831
|
-
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#getPreambleTokens:member(1)",
|
|
14832
|
-
"docComment": "/**\n * Token cost of the last request's preamble — system prompt, tool definitions and framed tail (GENC-1582). `undefined` before the first call of a turn.\n *\n * A live getter rather than a field stamped on each message, deliberately: every consumer wants the CURRENT preamble, never its history, and a message field would mean a type change in `@genesislcap/foundation-ai` plus churn in every persisted session for a value nobody reads twice.\n *\n * It exists because the preamble cannot be derived reliably. Inferring it as \"first measured prompt minus the messages it covered\" is accurate once and then goes stale, since each agent brings its own prompt and tool surface — and every attempt to compensate downstream ended up comparing stored characters against wire tokens. The driver is the only place that knows what it just sent.\n *\n * Optional — only drivers that build requests implement it.\n */\n",
|
|
14833
|
-
"excerptTokens": [
|
|
14834
|
-
{
|
|
14835
|
-
"kind": "Content",
|
|
14836
|
-
"text": "getPreambleTokens(): "
|
|
14837
|
-
},
|
|
14838
|
-
{
|
|
14839
|
-
"kind": "Content",
|
|
14840
|
-
"text": "number | undefined"
|
|
14841
|
-
},
|
|
14842
|
-
{
|
|
14843
|
-
"kind": "Content",
|
|
14844
|
-
"text": ";"
|
|
14845
|
-
}
|
|
14846
|
-
],
|
|
14847
|
-
"isStatic": false,
|
|
14848
|
-
"returnTypeTokenRange": {
|
|
14849
|
-
"startIndex": 1,
|
|
14850
|
-
"endIndex": 2
|
|
14851
|
-
},
|
|
14852
|
-
"releaseTag": "Public",
|
|
14853
|
-
"isProtected": false,
|
|
14854
|
-
"overloadIndex": 1,
|
|
14855
|
-
"parameters": [],
|
|
14856
|
-
"isOptional": false,
|
|
14857
|
-
"isAbstract": false,
|
|
14858
|
-
"name": "getPreambleTokens"
|
|
14859
|
-
},
|
|
14860
|
-
{
|
|
14861
|
-
"kind": "Method",
|
|
14862
|
-
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#getRawHistory:member(1)",
|
|
14863
|
-
"docComment": "",
|
|
14864
|
-
"excerptTokens": [
|
|
14865
|
-
{
|
|
14866
|
-
"kind": "Content",
|
|
14867
|
-
"text": "getRawHistory(): "
|
|
14868
|
-
},
|
|
14869
|
-
{
|
|
14870
|
-
"kind": "Content",
|
|
14871
|
-
"text": "readonly "
|
|
14872
|
-
},
|
|
14873
|
-
{
|
|
14874
|
-
"kind": "Reference",
|
|
14875
|
-
"text": "ChatMessage",
|
|
14876
|
-
"canonicalReference": "@genesislcap/foundation-ai!ChatMessage:interface"
|
|
13673
|
+
"text": "ChatMessage",
|
|
13674
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatMessage:interface"
|
|
14877
13675
|
},
|
|
14878
13676
|
{
|
|
14879
13677
|
"kind": "Content",
|
|
@@ -16571,102 +15369,6 @@
|
|
|
16571
15369
|
"isOptional": false,
|
|
16572
15370
|
"isAbstract": false,
|
|
16573
15371
|
"name": "setProviderHistoryTransform"
|
|
16574
|
-
},
|
|
16575
|
-
{
|
|
16576
|
-
"kind": "Method",
|
|
16577
|
-
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#suspendActivation:member(1)",
|
|
16578
|
-
"docComment": "/**\n * Suspend the active agent's activation for a hand-off it made (GENC-1737): installing the target advances the `agentEnd` clock as any swap does, but this caller's payloads stay live.\n */\n",
|
|
16579
|
-
"excerptTokens": [
|
|
16580
|
-
{
|
|
16581
|
-
"kind": "Content",
|
|
16582
|
-
"text": "suspendActivation(agentName: "
|
|
16583
|
-
},
|
|
16584
|
-
{
|
|
16585
|
-
"kind": "Content",
|
|
16586
|
-
"text": "string"
|
|
16587
|
-
},
|
|
16588
|
-
{
|
|
16589
|
-
"kind": "Content",
|
|
16590
|
-
"text": "): "
|
|
16591
|
-
},
|
|
16592
|
-
{
|
|
16593
|
-
"kind": "Content",
|
|
16594
|
-
"text": "void"
|
|
16595
|
-
},
|
|
16596
|
-
{
|
|
16597
|
-
"kind": "Content",
|
|
16598
|
-
"text": ";"
|
|
16599
|
-
}
|
|
16600
|
-
],
|
|
16601
|
-
"isStatic": false,
|
|
16602
|
-
"returnTypeTokenRange": {
|
|
16603
|
-
"startIndex": 3,
|
|
16604
|
-
"endIndex": 4
|
|
16605
|
-
},
|
|
16606
|
-
"releaseTag": "Public",
|
|
16607
|
-
"isProtected": false,
|
|
16608
|
-
"overloadIndex": 1,
|
|
16609
|
-
"parameters": [
|
|
16610
|
-
{
|
|
16611
|
-
"parameterName": "agentName",
|
|
16612
|
-
"parameterTypeTokenRange": {
|
|
16613
|
-
"startIndex": 1,
|
|
16614
|
-
"endIndex": 2
|
|
16615
|
-
},
|
|
16616
|
-
"isOptional": false
|
|
16617
|
-
}
|
|
16618
|
-
],
|
|
16619
|
-
"isOptional": false,
|
|
16620
|
-
"isAbstract": false,
|
|
16621
|
-
"name": "suspendActivation"
|
|
16622
|
-
},
|
|
16623
|
-
{
|
|
16624
|
-
"kind": "Method",
|
|
16625
|
-
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#suspendRestoredActivations:member(1)",
|
|
16626
|
-
"docComment": "/**\n * Suspend restored callers before their condense policies are restored, so entries still live at save time stay live instead of waiting for \"the next activation\", which is the target's.\n */\n",
|
|
16627
|
-
"excerptTokens": [
|
|
16628
|
-
{
|
|
16629
|
-
"kind": "Content",
|
|
16630
|
-
"text": "suspendRestoredActivations(agentNames: "
|
|
16631
|
-
},
|
|
16632
|
-
{
|
|
16633
|
-
"kind": "Content",
|
|
16634
|
-
"text": "readonly string[]"
|
|
16635
|
-
},
|
|
16636
|
-
{
|
|
16637
|
-
"kind": "Content",
|
|
16638
|
-
"text": "): "
|
|
16639
|
-
},
|
|
16640
|
-
{
|
|
16641
|
-
"kind": "Content",
|
|
16642
|
-
"text": "void"
|
|
16643
|
-
},
|
|
16644
|
-
{
|
|
16645
|
-
"kind": "Content",
|
|
16646
|
-
"text": ";"
|
|
16647
|
-
}
|
|
16648
|
-
],
|
|
16649
|
-
"isStatic": false,
|
|
16650
|
-
"returnTypeTokenRange": {
|
|
16651
|
-
"startIndex": 3,
|
|
16652
|
-
"endIndex": 4
|
|
16653
|
-
},
|
|
16654
|
-
"releaseTag": "Public",
|
|
16655
|
-
"isProtected": false,
|
|
16656
|
-
"overloadIndex": 1,
|
|
16657
|
-
"parameters": [
|
|
16658
|
-
{
|
|
16659
|
-
"parameterName": "agentNames",
|
|
16660
|
-
"parameterTypeTokenRange": {
|
|
16661
|
-
"startIndex": 1,
|
|
16662
|
-
"endIndex": 2
|
|
16663
|
-
},
|
|
16664
|
-
"isOptional": false
|
|
16665
|
-
}
|
|
16666
|
-
],
|
|
16667
|
-
"isOptional": false,
|
|
16668
|
-
"isAbstract": false,
|
|
16669
|
-
"name": "suspendRestoredActivations"
|
|
16670
15372
|
}
|
|
16671
15373
|
],
|
|
16672
15374
|
"extendsTokenRange": {
|
|
@@ -16830,7 +15532,7 @@
|
|
|
16830
15532
|
{
|
|
16831
15533
|
"kind": "PropertySignature",
|
|
16832
15534
|
"canonicalReference": "@genesislcap/ai-assistant!ChatDriverConfig#deferAgentRelease:member",
|
|
16833
|
-
"docComment": "/**\n * Leave acting on `releaseAgent` to the owner of this driver.\n *\n * Set by `OrchestratingDriver` for its inner driver, which performs the release itself after the
|
|
15535
|
+
"docComment": "/**\n * Leave acting on `releaseAgent` to the owner of this driver.\n *\n * Set by `OrchestratingDriver` for its inner driver, which performs the release itself after the turn, because a release ends its handoff loop and it reads the flag to know. Both drivers share one `AgentSession`, and releasing here first would clear the flag before the orchestrator saw it. The host-facing `agent-released` / `agent-changed` / `flow-owner-changed` events fire from the session's transition either way (GENC-1485).\n *\n * Left unset, a driver releases its own agent, which is what a bare `ChatDriver` needs: nothing else is watching the flag.\n */\n",
|
|
16834
15536
|
"excerptTokens": [
|
|
16835
15537
|
{
|
|
16836
15538
|
"kind": "Content",
|
|
@@ -19597,7 +18299,7 @@
|
|
|
19597
18299
|
{
|
|
19598
18300
|
"kind": "Class",
|
|
19599
18301
|
"canonicalReference": "@genesislcap/ai-assistant!FoundationAiAssistant:class",
|
|
19600
|
-
"docComment": "/**\n * Foundation AI Assistant component.\n *\n * @remarks\n *\n * Register one or more AI providers via `registerAIProviders` from `@genesislcap/foundation-ai`; this element resolves the `AIProviderRegistry` through the DI container. Pass agent configuration via the `agents` property — each agent can override which registered provider it uses via `provider:`. The component creates a `ChatDriver` (single agent) or `OrchestratingDriver` (multiple agents) to manage the conversation loop.\n *\n * Popout/collapse coordination uses `agenticActivityBus` topics `chat-popout` and `chat-popin` — not DOM `CustomEvent`s on this element.\n *\n * **Cost build history:** opt-in via `chatConfig.costHistory.enabled`. When enabled, each session's usage is kept as exactly ONE row per session key in `localStorage` (scoped by `costHistory.scope`, the element `id`, or `'default'`), upserted as spend accrues. So a row is a project's lifetime usage rather than a visit to it, and the Usage tab's total is the sum of the rows alone — the live session is never added on top, because the active project's own row already reflects it. Hosts may call {@link FoundationAiAssistant.finalizeCostSession} to flush early; it is idempotent.\n *\n * @fires\n *\n * chat-header-mousedown - Fired when the user presses the chat header in `popout-mode=\"expand\"` (for drag-to-popout hosts). Bubbles and composed. detail: `ChatHeaderMouseDownDetail`\n *\n * @fires\n *\n * session-cleared - Fired after the session is wiped (the lifecycle menu's Clear). The payload is captured before teardown so the host can clean up any external state the active agent was working on. Bubbles and composed. detail: `SessionClearedDetail`\n *\n * @
|
|
18302
|
+
"docComment": "/**\n * Foundation AI Assistant component.\n *\n * @remarks\n *\n * Register one or more AI providers via `registerAIProviders` from `@genesislcap/foundation-ai`; this element resolves the `AIProviderRegistry` through the DI container. Pass agent configuration via the `agents` property — each agent can override which registered provider it uses via `provider:`. The component creates a `ChatDriver` (single agent) or `OrchestratingDriver` (multiple agents) to manage the conversation loop.\n *\n * Popout/collapse coordination uses `agenticActivityBus` topics `chat-popout` and `chat-popin` — not DOM `CustomEvent`s on this element.\n *\n * **Cost build history:** opt-in via `chatConfig.costHistory.enabled`. When enabled, each session's usage is kept as exactly ONE row per session key in `localStorage` (scoped by `costHistory.scope`, the element `id`, or `'default'`), upserted as spend accrues. So a row is a project's lifetime usage rather than a visit to it, and the Usage tab's total is the sum of the rows alone — the live session is never added on top, because the active project's own row already reflects it. Hosts may call {@link FoundationAiAssistant.finalizeCostSession} to flush early; it is idempotent.\n *\n * @fires\n *\n * chat-header-mousedown - Fired when the user presses the chat header in `popout-mode=\"expand\"` (for drag-to-popout hosts). Bubbles and composed. detail: `ChatHeaderMouseDownDetail`\n *\n * @fires\n *\n * session-cleared - Fired after the session is wiped (the lifecycle menu's Clear). The payload is captured before teardown so the host can clean up any external state the active agent was working on. Bubbles and composed. detail: `SessionClearedDetail`\n *\n * @beta\n */\n",
|
|
19601
18303
|
"excerptTokens": [
|
|
19602
18304
|
{
|
|
19603
18305
|
"kind": "Content",
|
|
@@ -28980,367 +27682,6 @@
|
|
|
28980
27682
|
],
|
|
28981
27683
|
"extendsTokenRanges": []
|
|
28982
27684
|
},
|
|
28983
|
-
{
|
|
28984
|
-
"kind": "Interface",
|
|
28985
|
-
"canonicalReference": "@genesislcap/ai-assistant!HandOffFrame:interface",
|
|
28986
|
-
"docComment": "/**\n * One hand-off on the stack, saved with the session: who waits, for whom, and why. `outcome` is set when the target finishes, until the caller has resumed, so a reload in between still hands back. Also the `detail` of the `handoff-started`, `handoff-returned` and `handoff-unwound` events.\n *\n * @beta\n */\n",
|
|
28987
|
-
"excerptTokens": [
|
|
28988
|
-
{
|
|
28989
|
-
"kind": "Content",
|
|
28990
|
-
"text": "export interface HandOffFrame "
|
|
28991
|
-
}
|
|
28992
|
-
],
|
|
28993
|
-
"fileUrlPath": "src/config/config.ts",
|
|
28994
|
-
"releaseTag": "Beta",
|
|
28995
|
-
"name": "HandOffFrame",
|
|
28996
|
-
"preserveMemberOrder": false,
|
|
28997
|
-
"members": [
|
|
28998
|
-
{
|
|
28999
|
-
"kind": "PropertySignature",
|
|
29000
|
-
"canonicalReference": "@genesislcap/ai-assistant!HandOffFrame#caller:member",
|
|
29001
|
-
"docComment": "/**\n * The agent waiting for the hand-back.\n */\n",
|
|
29002
|
-
"excerptTokens": [
|
|
29003
|
-
{
|
|
29004
|
-
"kind": "Content",
|
|
29005
|
-
"text": "caller: "
|
|
29006
|
-
},
|
|
29007
|
-
{
|
|
29008
|
-
"kind": "Content",
|
|
29009
|
-
"text": "string"
|
|
29010
|
-
},
|
|
29011
|
-
{
|
|
29012
|
-
"kind": "Content",
|
|
29013
|
-
"text": ";"
|
|
29014
|
-
}
|
|
29015
|
-
],
|
|
29016
|
-
"isReadonly": false,
|
|
29017
|
-
"isOptional": false,
|
|
29018
|
-
"releaseTag": "Beta",
|
|
29019
|
-
"name": "caller",
|
|
29020
|
-
"propertyTypeTokenRange": {
|
|
29021
|
-
"startIndex": 1,
|
|
29022
|
-
"endIndex": 2
|
|
29023
|
-
}
|
|
29024
|
-
},
|
|
29025
|
-
{
|
|
29026
|
-
"kind": "PropertySignature",
|
|
29027
|
-
"canonicalReference": "@genesislcap/ai-assistant!HandOffFrame#data:member",
|
|
29028
|
-
"docComment": "/**\n * JSON only.\n */\n",
|
|
29029
|
-
"excerptTokens": [
|
|
29030
|
-
{
|
|
29031
|
-
"kind": "Content",
|
|
29032
|
-
"text": "data?: "
|
|
29033
|
-
},
|
|
29034
|
-
{
|
|
29035
|
-
"kind": "Content",
|
|
29036
|
-
"text": "unknown"
|
|
29037
|
-
},
|
|
29038
|
-
{
|
|
29039
|
-
"kind": "Content",
|
|
29040
|
-
"text": ";"
|
|
29041
|
-
}
|
|
29042
|
-
],
|
|
29043
|
-
"isReadonly": false,
|
|
29044
|
-
"isOptional": true,
|
|
29045
|
-
"releaseTag": "Beta",
|
|
29046
|
-
"name": "data",
|
|
29047
|
-
"propertyTypeTokenRange": {
|
|
29048
|
-
"startIndex": 1,
|
|
29049
|
-
"endIndex": 2
|
|
29050
|
-
}
|
|
29051
|
-
},
|
|
29052
|
-
{
|
|
29053
|
-
"kind": "PropertySignature",
|
|
29054
|
-
"canonicalReference": "@genesislcap/ai-assistant!HandOffFrame#id:member",
|
|
29055
|
-
"docComment": "",
|
|
29056
|
-
"excerptTokens": [
|
|
29057
|
-
{
|
|
29058
|
-
"kind": "Content",
|
|
29059
|
-
"text": "id: "
|
|
29060
|
-
},
|
|
29061
|
-
{
|
|
29062
|
-
"kind": "Content",
|
|
29063
|
-
"text": "string"
|
|
29064
|
-
},
|
|
29065
|
-
{
|
|
29066
|
-
"kind": "Content",
|
|
29067
|
-
"text": ";"
|
|
29068
|
-
}
|
|
29069
|
-
],
|
|
29070
|
-
"isReadonly": false,
|
|
29071
|
-
"isOptional": false,
|
|
29072
|
-
"releaseTag": "Beta",
|
|
29073
|
-
"name": "id",
|
|
29074
|
-
"propertyTypeTokenRange": {
|
|
29075
|
-
"startIndex": 1,
|
|
29076
|
-
"endIndex": 2
|
|
29077
|
-
}
|
|
29078
|
-
},
|
|
29079
|
-
{
|
|
29080
|
-
"kind": "PropertySignature",
|
|
29081
|
-
"canonicalReference": "@genesislcap/ai-assistant!HandOffFrame#message:member",
|
|
29082
|
-
"docComment": "/**\n * The brief.\n */\n",
|
|
29083
|
-
"excerptTokens": [
|
|
29084
|
-
{
|
|
29085
|
-
"kind": "Content",
|
|
29086
|
-
"text": "message: "
|
|
29087
|
-
},
|
|
29088
|
-
{
|
|
29089
|
-
"kind": "Content",
|
|
29090
|
-
"text": "string"
|
|
29091
|
-
},
|
|
29092
|
-
{
|
|
29093
|
-
"kind": "Content",
|
|
29094
|
-
"text": ";"
|
|
29095
|
-
}
|
|
29096
|
-
],
|
|
29097
|
-
"isReadonly": false,
|
|
29098
|
-
"isOptional": false,
|
|
29099
|
-
"releaseTag": "Beta",
|
|
29100
|
-
"name": "message",
|
|
29101
|
-
"propertyTypeTokenRange": {
|
|
29102
|
-
"startIndex": 1,
|
|
29103
|
-
"endIndex": 2
|
|
29104
|
-
}
|
|
29105
|
-
},
|
|
29106
|
-
{
|
|
29107
|
-
"kind": "PropertySignature",
|
|
29108
|
-
"canonicalReference": "@genesislcap/ai-assistant!HandOffFrame#outcome:member",
|
|
29109
|
-
"docComment": "",
|
|
29110
|
-
"excerptTokens": [
|
|
29111
|
-
{
|
|
29112
|
-
"kind": "Content",
|
|
29113
|
-
"text": "outcome?: "
|
|
29114
|
-
},
|
|
29115
|
-
{
|
|
29116
|
-
"kind": "Reference",
|
|
29117
|
-
"text": "HandOffOutcome",
|
|
29118
|
-
"canonicalReference": "@genesislcap/ai-assistant!HandOffOutcome:interface"
|
|
29119
|
-
},
|
|
29120
|
-
{
|
|
29121
|
-
"kind": "Content",
|
|
29122
|
-
"text": ";"
|
|
29123
|
-
}
|
|
29124
|
-
],
|
|
29125
|
-
"isReadonly": false,
|
|
29126
|
-
"isOptional": true,
|
|
29127
|
-
"releaseTag": "Beta",
|
|
29128
|
-
"name": "outcome",
|
|
29129
|
-
"propertyTypeTokenRange": {
|
|
29130
|
-
"startIndex": 1,
|
|
29131
|
-
"endIndex": 2
|
|
29132
|
-
}
|
|
29133
|
-
},
|
|
29134
|
-
{
|
|
29135
|
-
"kind": "PropertySignature",
|
|
29136
|
-
"canonicalReference": "@genesislcap/ai-assistant!HandOffFrame#returnTo:member",
|
|
29137
|
-
"docComment": "",
|
|
29138
|
-
"excerptTokens": [
|
|
29139
|
-
{
|
|
29140
|
-
"kind": "Content",
|
|
29141
|
-
"text": "returnTo: "
|
|
29142
|
-
},
|
|
29143
|
-
{
|
|
29144
|
-
"kind": "Content",
|
|
29145
|
-
"text": "boolean"
|
|
29146
|
-
},
|
|
29147
|
-
{
|
|
29148
|
-
"kind": "Content",
|
|
29149
|
-
"text": ";"
|
|
29150
|
-
}
|
|
29151
|
-
],
|
|
29152
|
-
"isReadonly": false,
|
|
29153
|
-
"isOptional": false,
|
|
29154
|
-
"releaseTag": "Beta",
|
|
29155
|
-
"name": "returnTo",
|
|
29156
|
-
"propertyTypeTokenRange": {
|
|
29157
|
-
"startIndex": 1,
|
|
29158
|
-
"endIndex": 2
|
|
29159
|
-
}
|
|
29160
|
-
},
|
|
29161
|
-
{
|
|
29162
|
-
"kind": "PropertySignature",
|
|
29163
|
-
"canonicalReference": "@genesislcap/ai-assistant!HandOffFrame#startedAt:member",
|
|
29164
|
-
"docComment": "/**\n * ISO time the hand-off started.\n */\n",
|
|
29165
|
-
"excerptTokens": [
|
|
29166
|
-
{
|
|
29167
|
-
"kind": "Content",
|
|
29168
|
-
"text": "startedAt: "
|
|
29169
|
-
},
|
|
29170
|
-
{
|
|
29171
|
-
"kind": "Content",
|
|
29172
|
-
"text": "string"
|
|
29173
|
-
},
|
|
29174
|
-
{
|
|
29175
|
-
"kind": "Content",
|
|
29176
|
-
"text": ";"
|
|
29177
|
-
}
|
|
29178
|
-
],
|
|
29179
|
-
"isReadonly": false,
|
|
29180
|
-
"isOptional": false,
|
|
29181
|
-
"releaseTag": "Beta",
|
|
29182
|
-
"name": "startedAt",
|
|
29183
|
-
"propertyTypeTokenRange": {
|
|
29184
|
-
"startIndex": 1,
|
|
29185
|
-
"endIndex": 2
|
|
29186
|
-
}
|
|
29187
|
-
},
|
|
29188
|
-
{
|
|
29189
|
-
"kind": "PropertySignature",
|
|
29190
|
-
"canonicalReference": "@genesislcap/ai-assistant!HandOffFrame#target:member",
|
|
29191
|
-
"docComment": "",
|
|
29192
|
-
"excerptTokens": [
|
|
29193
|
-
{
|
|
29194
|
-
"kind": "Content",
|
|
29195
|
-
"text": "target: "
|
|
29196
|
-
},
|
|
29197
|
-
{
|
|
29198
|
-
"kind": "Content",
|
|
29199
|
-
"text": "string"
|
|
29200
|
-
},
|
|
29201
|
-
{
|
|
29202
|
-
"kind": "Content",
|
|
29203
|
-
"text": ";"
|
|
29204
|
-
}
|
|
29205
|
-
],
|
|
29206
|
-
"isReadonly": false,
|
|
29207
|
-
"isOptional": false,
|
|
29208
|
-
"releaseTag": "Beta",
|
|
29209
|
-
"name": "target",
|
|
29210
|
-
"propertyTypeTokenRange": {
|
|
29211
|
-
"startIndex": 1,
|
|
29212
|
-
"endIndex": 2
|
|
29213
|
-
}
|
|
29214
|
-
}
|
|
29215
|
-
],
|
|
29216
|
-
"extendsTokenRanges": []
|
|
29217
|
-
},
|
|
29218
|
-
{
|
|
29219
|
-
"kind": "Interface",
|
|
29220
|
-
"canonicalReference": "@genesislcap/ai-assistant!HandOffOutcome:interface",
|
|
29221
|
-
"docComment": "/**\n * What a hand-off's caller gets back. `message` is the target's `completeHandOff` summary, or for `released` its final reply since the brief; `data` is what `completeHandOff` passed.\n *\n * @beta\n */\n",
|
|
29222
|
-
"excerptTokens": [
|
|
29223
|
-
{
|
|
29224
|
-
"kind": "Content",
|
|
29225
|
-
"text": "export interface HandOffOutcome "
|
|
29226
|
-
}
|
|
29227
|
-
],
|
|
29228
|
-
"fileUrlPath": "src/config/config.ts",
|
|
29229
|
-
"releaseTag": "Beta",
|
|
29230
|
-
"name": "HandOffOutcome",
|
|
29231
|
-
"preserveMemberOrder": false,
|
|
29232
|
-
"members": [
|
|
29233
|
-
{
|
|
29234
|
-
"kind": "PropertySignature",
|
|
29235
|
-
"canonicalReference": "@genesislcap/ai-assistant!HandOffOutcome#data:member",
|
|
29236
|
-
"docComment": "",
|
|
29237
|
-
"excerptTokens": [
|
|
29238
|
-
{
|
|
29239
|
-
"kind": "Content",
|
|
29240
|
-
"text": "data?: "
|
|
29241
|
-
},
|
|
29242
|
-
{
|
|
29243
|
-
"kind": "Content",
|
|
29244
|
-
"text": "unknown"
|
|
29245
|
-
},
|
|
29246
|
-
{
|
|
29247
|
-
"kind": "Content",
|
|
29248
|
-
"text": ";"
|
|
29249
|
-
}
|
|
29250
|
-
],
|
|
29251
|
-
"isReadonly": false,
|
|
29252
|
-
"isOptional": true,
|
|
29253
|
-
"releaseTag": "Beta",
|
|
29254
|
-
"name": "data",
|
|
29255
|
-
"propertyTypeTokenRange": {
|
|
29256
|
-
"startIndex": 1,
|
|
29257
|
-
"endIndex": 2
|
|
29258
|
-
}
|
|
29259
|
-
},
|
|
29260
|
-
{
|
|
29261
|
-
"kind": "PropertySignature",
|
|
29262
|
-
"canonicalReference": "@genesislcap/ai-assistant!HandOffOutcome#kind:member",
|
|
29263
|
-
"docComment": "",
|
|
29264
|
-
"excerptTokens": [
|
|
29265
|
-
{
|
|
29266
|
-
"kind": "Content",
|
|
29267
|
-
"text": "kind: "
|
|
29268
|
-
},
|
|
29269
|
-
{
|
|
29270
|
-
"kind": "Reference",
|
|
29271
|
-
"text": "HandOffOutcomeKind",
|
|
29272
|
-
"canonicalReference": "@genesislcap/ai-assistant!HandOffOutcomeKind:type"
|
|
29273
|
-
},
|
|
29274
|
-
{
|
|
29275
|
-
"kind": "Content",
|
|
29276
|
-
"text": ";"
|
|
29277
|
-
}
|
|
29278
|
-
],
|
|
29279
|
-
"isReadonly": false,
|
|
29280
|
-
"isOptional": false,
|
|
29281
|
-
"releaseTag": "Beta",
|
|
29282
|
-
"name": "kind",
|
|
29283
|
-
"propertyTypeTokenRange": {
|
|
29284
|
-
"startIndex": 1,
|
|
29285
|
-
"endIndex": 2
|
|
29286
|
-
}
|
|
29287
|
-
},
|
|
29288
|
-
{
|
|
29289
|
-
"kind": "PropertySignature",
|
|
29290
|
-
"canonicalReference": "@genesislcap/ai-assistant!HandOffOutcome#message:member",
|
|
29291
|
-
"docComment": "",
|
|
29292
|
-
"excerptTokens": [
|
|
29293
|
-
{
|
|
29294
|
-
"kind": "Content",
|
|
29295
|
-
"text": "message?: "
|
|
29296
|
-
},
|
|
29297
|
-
{
|
|
29298
|
-
"kind": "Content",
|
|
29299
|
-
"text": "string"
|
|
29300
|
-
},
|
|
29301
|
-
{
|
|
29302
|
-
"kind": "Content",
|
|
29303
|
-
"text": ";"
|
|
29304
|
-
}
|
|
29305
|
-
],
|
|
29306
|
-
"isReadonly": false,
|
|
29307
|
-
"isOptional": true,
|
|
29308
|
-
"releaseTag": "Beta",
|
|
29309
|
-
"name": "message",
|
|
29310
|
-
"propertyTypeTokenRange": {
|
|
29311
|
-
"startIndex": 1,
|
|
29312
|
-
"endIndex": 2
|
|
29313
|
-
}
|
|
29314
|
-
}
|
|
29315
|
-
],
|
|
29316
|
-
"extendsTokenRanges": []
|
|
29317
|
-
},
|
|
29318
|
-
{
|
|
29319
|
-
"kind": "TypeAlias",
|
|
29320
|
-
"canonicalReference": "@genesislcap/ai-assistant!HandOffOutcomeKind:type",
|
|
29321
|
-
"docComment": "/**\n * How a hand-off ended (GENC-1737): - `completed`: the target called `completeHandOff`; - `released`: the target called `releaseAgent`, or, a plain one, ended its turn; - `cleared`: the user cleared the chat; - `agent-removed`: the caller or the target is no longer in the agent list, found on restore; - `state-lost`: the caller's saved state is gone, so it cannot resume: a session saved while its flow could not be resumed, or a change to the agents, which disposes them.\n *\n * @beta\n */\n",
|
|
29322
|
-
"excerptTokens": [
|
|
29323
|
-
{
|
|
29324
|
-
"kind": "Content",
|
|
29325
|
-
"text": "export type HandOffOutcomeKind = "
|
|
29326
|
-
},
|
|
29327
|
-
{
|
|
29328
|
-
"kind": "Content",
|
|
29329
|
-
"text": "'completed' | 'released' | 'cleared' | 'agent-removed' | 'state-lost'"
|
|
29330
|
-
},
|
|
29331
|
-
{
|
|
29332
|
-
"kind": "Content",
|
|
29333
|
-
"text": ";"
|
|
29334
|
-
}
|
|
29335
|
-
],
|
|
29336
|
-
"fileUrlPath": "src/config/config.ts",
|
|
29337
|
-
"releaseTag": "Beta",
|
|
29338
|
-
"name": "HandOffOutcomeKind",
|
|
29339
|
-
"typeTokenRange": {
|
|
29340
|
-
"startIndex": 1,
|
|
29341
|
-
"endIndex": 2
|
|
29342
|
-
}
|
|
29343
|
-
},
|
|
29344
27685
|
{
|
|
29345
27686
|
"kind": "TypeAlias",
|
|
29346
27687
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionCompletedEventDetail:type",
|
|
@@ -32034,7 +30375,7 @@
|
|
|
32034
30375
|
},
|
|
32035
30376
|
{
|
|
32036
30377
|
"kind": "Content",
|
|
32037
|
-
"text": "{\n sessionKey?: string;\n maxHandoffs?: number;\n
|
|
30378
|
+
"text": "{\n sessionKey?: string;\n maxHandoffs?: number;\n classifierHistoryLength?: number;\n classifierRetries?: number;\n maxToolIterations?: number;\n maxFoldOperations?: number;\n maxTurnSnapshots?: number;\n activityBus?: "
|
|
32038
30379
|
},
|
|
32039
30380
|
{
|
|
32040
30381
|
"kind": "Reference",
|
|
@@ -32145,7 +30486,7 @@
|
|
|
32145
30486
|
{
|
|
32146
30487
|
"kind": "Method",
|
|
32147
30488
|
"canonicalReference": "@genesislcap/ai-assistant!OrchestratingDriver#cancel:member(1)",
|
|
32148
|
-
"docComment": "/**\n * Stop the current turn (user \"stop\" button). Cancels the inner chat driver's in-flight request
|
|
30489
|
+
"docComment": "/**\n * Stop the current turn (user \"stop\" button). Cancels the inner chat driver's in-flight request and breaks the handoff loop so no further agent turn or classify runs. The driver stays usable for the next message.\n */\n",
|
|
32149
30490
|
"excerptTokens": [
|
|
32150
30491
|
{
|
|
32151
30492
|
"kind": "Content",
|
|
@@ -32425,78 +30766,6 @@
|
|
|
32425
30766
|
"isAbstract": false,
|
|
32426
30767
|
"name": "getContextReserve"
|
|
32427
30768
|
},
|
|
32428
|
-
{
|
|
32429
|
-
"kind": "Method",
|
|
32430
|
-
"canonicalReference": "@genesislcap/ai-assistant!OrchestratingDriver#getHandOffData:member(1)",
|
|
32431
|
-
"docComment": "/**\n * The `data` each hand-off target was activated with, by name, for the agents a reload resumes: the flow owner and the callers waiting in a hand-off. See the tool context's `handOffData`.\n */\n",
|
|
32432
|
-
"excerptTokens": [
|
|
32433
|
-
{
|
|
32434
|
-
"kind": "Content",
|
|
32435
|
-
"text": "getHandOffData(): "
|
|
32436
|
-
},
|
|
32437
|
-
{
|
|
32438
|
-
"kind": "Reference",
|
|
32439
|
-
"text": "Record",
|
|
32440
|
-
"canonicalReference": "!Record:type"
|
|
32441
|
-
},
|
|
32442
|
-
{
|
|
32443
|
-
"kind": "Content",
|
|
32444
|
-
"text": "<string, unknown>"
|
|
32445
|
-
},
|
|
32446
|
-
{
|
|
32447
|
-
"kind": "Content",
|
|
32448
|
-
"text": ";"
|
|
32449
|
-
}
|
|
32450
|
-
],
|
|
32451
|
-
"isStatic": false,
|
|
32452
|
-
"returnTypeTokenRange": {
|
|
32453
|
-
"startIndex": 1,
|
|
32454
|
-
"endIndex": 3
|
|
32455
|
-
},
|
|
32456
|
-
"releaseTag": "Beta",
|
|
32457
|
-
"isProtected": false,
|
|
32458
|
-
"overloadIndex": 1,
|
|
32459
|
-
"parameters": [],
|
|
32460
|
-
"isOptional": false,
|
|
32461
|
-
"isAbstract": false,
|
|
32462
|
-
"name": "getHandOffData"
|
|
32463
|
-
},
|
|
32464
|
-
{
|
|
32465
|
-
"kind": "Method",
|
|
32466
|
-
"canonicalReference": "@genesislcap/ai-assistant!OrchestratingDriver#getHandOffStack:member(1)",
|
|
32467
|
-
"docComment": "/**\n * The hand-offs in progress, oldest first, to save with the session (GENC-1737). Copies: changing them changes nothing.\n */\n",
|
|
32468
|
-
"excerptTokens": [
|
|
32469
|
-
{
|
|
32470
|
-
"kind": "Content",
|
|
32471
|
-
"text": "getHandOffStack(): "
|
|
32472
|
-
},
|
|
32473
|
-
{
|
|
32474
|
-
"kind": "Reference",
|
|
32475
|
-
"text": "HandOffFrame",
|
|
32476
|
-
"canonicalReference": "@genesislcap/ai-assistant!HandOffFrame:interface"
|
|
32477
|
-
},
|
|
32478
|
-
{
|
|
32479
|
-
"kind": "Content",
|
|
32480
|
-
"text": "[]"
|
|
32481
|
-
},
|
|
32482
|
-
{
|
|
32483
|
-
"kind": "Content",
|
|
32484
|
-
"text": ";"
|
|
32485
|
-
}
|
|
32486
|
-
],
|
|
32487
|
-
"isStatic": false,
|
|
32488
|
-
"returnTypeTokenRange": {
|
|
32489
|
-
"startIndex": 1,
|
|
32490
|
-
"endIndex": 3
|
|
32491
|
-
},
|
|
32492
|
-
"releaseTag": "Beta",
|
|
32493
|
-
"isProtected": false,
|
|
32494
|
-
"overloadIndex": 1,
|
|
32495
|
-
"parameters": [],
|
|
32496
|
-
"isOptional": false,
|
|
32497
|
-
"isAbstract": false,
|
|
32498
|
-
"name": "getHandOffStack"
|
|
32499
|
-
},
|
|
32500
30769
|
{
|
|
32501
30770
|
"kind": "Method",
|
|
32502
30771
|
"canonicalReference": "@genesislcap/ai-assistant!OrchestratingDriver#getSuggestions:member(1)",
|
|
@@ -32608,155 +30877,6 @@
|
|
|
32608
30877
|
"isAbstract": false,
|
|
32609
30878
|
"name": "getSuggestions"
|
|
32610
30879
|
},
|
|
32611
|
-
{
|
|
32612
|
-
"kind": "Method",
|
|
32613
|
-
"canonicalReference": "@genesislcap/ai-assistant!OrchestratingDriver#restoreHandOffData:member(1)",
|
|
32614
|
-
"docComment": "/**\n * Restore what {@link AiDriver.getHandOffData} saved, before the hand-off stack. Nothing comes back from a frozen (`interrupted`) session, whose flow does not resume.\n */\n",
|
|
32615
|
-
"excerptTokens": [
|
|
32616
|
-
{
|
|
32617
|
-
"kind": "Content",
|
|
32618
|
-
"text": "restoreHandOffData(saved: "
|
|
32619
|
-
},
|
|
32620
|
-
{
|
|
32621
|
-
"kind": "Content",
|
|
32622
|
-
"text": "unknown"
|
|
32623
|
-
},
|
|
32624
|
-
{
|
|
32625
|
-
"kind": "Content",
|
|
32626
|
-
"text": ", interrupted: "
|
|
32627
|
-
},
|
|
32628
|
-
{
|
|
32629
|
-
"kind": "Content",
|
|
32630
|
-
"text": "boolean"
|
|
32631
|
-
},
|
|
32632
|
-
{
|
|
32633
|
-
"kind": "Content",
|
|
32634
|
-
"text": "): "
|
|
32635
|
-
},
|
|
32636
|
-
{
|
|
32637
|
-
"kind": "Content",
|
|
32638
|
-
"text": "void"
|
|
32639
|
-
},
|
|
32640
|
-
{
|
|
32641
|
-
"kind": "Content",
|
|
32642
|
-
"text": ";"
|
|
32643
|
-
}
|
|
32644
|
-
],
|
|
32645
|
-
"isStatic": false,
|
|
32646
|
-
"returnTypeTokenRange": {
|
|
32647
|
-
"startIndex": 5,
|
|
32648
|
-
"endIndex": 6
|
|
32649
|
-
},
|
|
32650
|
-
"releaseTag": "Beta",
|
|
32651
|
-
"isProtected": false,
|
|
32652
|
-
"overloadIndex": 1,
|
|
32653
|
-
"parameters": [
|
|
32654
|
-
{
|
|
32655
|
-
"parameterName": "saved",
|
|
32656
|
-
"parameterTypeTokenRange": {
|
|
32657
|
-
"startIndex": 1,
|
|
32658
|
-
"endIndex": 2
|
|
32659
|
-
},
|
|
32660
|
-
"isOptional": false
|
|
32661
|
-
},
|
|
32662
|
-
{
|
|
32663
|
-
"parameterName": "interrupted",
|
|
32664
|
-
"parameterTypeTokenRange": {
|
|
32665
|
-
"startIndex": 3,
|
|
32666
|
-
"endIndex": 4
|
|
32667
|
-
},
|
|
32668
|
-
"isOptional": false
|
|
32669
|
-
}
|
|
32670
|
-
],
|
|
32671
|
-
"isOptional": false,
|
|
32672
|
-
"isAbstract": false,
|
|
32673
|
-
"name": "restoreHandOffData"
|
|
32674
|
-
},
|
|
32675
|
-
{
|
|
32676
|
-
"kind": "Method",
|
|
32677
|
-
"canonicalReference": "@genesislcap/ai-assistant!OrchestratingDriver#restoreHandOffStack:member(1)",
|
|
32678
|
-
"docComment": "/**\n * Restore saved hand-offs, before the condense policies, against the agents configured now and the saved agent states. A frame whose caller has gone, or whose stateful caller has no saved state (`interrupted` drops them all), is unwound with `handoff-unwound`. When the top frame's target had finished, or has gone, its caller is due to resume: `resume` names it and the note its resumed turn needs, and {@link AiDriver.resumeRestoredFlow} hands back.\n */\n",
|
|
32679
|
-
"excerptTokens": [
|
|
32680
|
-
{
|
|
32681
|
-
"kind": "Content",
|
|
32682
|
-
"text": "restoreHandOffStack(saved: "
|
|
32683
|
-
},
|
|
32684
|
-
{
|
|
32685
|
-
"kind": "Content",
|
|
32686
|
-
"text": "unknown"
|
|
32687
|
-
},
|
|
32688
|
-
{
|
|
32689
|
-
"kind": "Content",
|
|
32690
|
-
"text": ", savedStates: "
|
|
32691
|
-
},
|
|
32692
|
-
{
|
|
32693
|
-
"kind": "Reference",
|
|
32694
|
-
"text": "Record",
|
|
32695
|
-
"canonicalReference": "!Record:type"
|
|
32696
|
-
},
|
|
32697
|
-
{
|
|
32698
|
-
"kind": "Content",
|
|
32699
|
-
"text": "<string, unknown>"
|
|
32700
|
-
},
|
|
32701
|
-
{
|
|
32702
|
-
"kind": "Content",
|
|
32703
|
-
"text": ", interrupted: "
|
|
32704
|
-
},
|
|
32705
|
-
{
|
|
32706
|
-
"kind": "Content",
|
|
32707
|
-
"text": "boolean"
|
|
32708
|
-
},
|
|
32709
|
-
{
|
|
32710
|
-
"kind": "Content",
|
|
32711
|
-
"text": "): "
|
|
32712
|
-
},
|
|
32713
|
-
{
|
|
32714
|
-
"kind": "Content",
|
|
32715
|
-
"text": "{\n resume?: {\n agent: string;\n note: string;\n };\n }"
|
|
32716
|
-
},
|
|
32717
|
-
{
|
|
32718
|
-
"kind": "Content",
|
|
32719
|
-
"text": ";"
|
|
32720
|
-
}
|
|
32721
|
-
],
|
|
32722
|
-
"isStatic": false,
|
|
32723
|
-
"returnTypeTokenRange": {
|
|
32724
|
-
"startIndex": 8,
|
|
32725
|
-
"endIndex": 9
|
|
32726
|
-
},
|
|
32727
|
-
"releaseTag": "Beta",
|
|
32728
|
-
"isProtected": false,
|
|
32729
|
-
"overloadIndex": 1,
|
|
32730
|
-
"parameters": [
|
|
32731
|
-
{
|
|
32732
|
-
"parameterName": "saved",
|
|
32733
|
-
"parameterTypeTokenRange": {
|
|
32734
|
-
"startIndex": 1,
|
|
32735
|
-
"endIndex": 2
|
|
32736
|
-
},
|
|
32737
|
-
"isOptional": false
|
|
32738
|
-
},
|
|
32739
|
-
{
|
|
32740
|
-
"parameterName": "savedStates",
|
|
32741
|
-
"parameterTypeTokenRange": {
|
|
32742
|
-
"startIndex": 3,
|
|
32743
|
-
"endIndex": 5
|
|
32744
|
-
},
|
|
32745
|
-
"isOptional": false
|
|
32746
|
-
},
|
|
32747
|
-
{
|
|
32748
|
-
"parameterName": "interrupted",
|
|
32749
|
-
"parameterTypeTokenRange": {
|
|
32750
|
-
"startIndex": 6,
|
|
32751
|
-
"endIndex": 7
|
|
32752
|
-
},
|
|
32753
|
-
"isOptional": false
|
|
32754
|
-
}
|
|
32755
|
-
],
|
|
32756
|
-
"isOptional": false,
|
|
32757
|
-
"isAbstract": false,
|
|
32758
|
-
"name": "restoreHandOffStack"
|
|
32759
|
-
},
|
|
32760
30880
|
{
|
|
32761
30881
|
"kind": "Method",
|
|
32762
30882
|
"canonicalReference": "@genesislcap/ai-assistant!OrchestratingDriver#resumeRestoredFlow:member(1)",
|
|
@@ -32918,95 +31038,6 @@
|
|
|
32918
31038
|
"isOptional": false,
|
|
32919
31039
|
"isAbstract": false,
|
|
32920
31040
|
"name": "sendMessage"
|
|
32921
|
-
},
|
|
32922
|
-
{
|
|
32923
|
-
"kind": "Method",
|
|
32924
|
-
"canonicalReference": "@genesislcap/ai-assistant!OrchestratingDriver#serializeWaitingCallers:member(1)",
|
|
32925
|
-
"docComment": "/**\n * The saved state of each caller waiting in a hand-off whose state is live, by name, from its `serialize`. Saved with the active agent's, so a reload can resume the caller.\n */\n",
|
|
32926
|
-
"excerptTokens": [
|
|
32927
|
-
{
|
|
32928
|
-
"kind": "Content",
|
|
32929
|
-
"text": "serializeWaitingCallers(): "
|
|
32930
|
-
},
|
|
32931
|
-
{
|
|
32932
|
-
"kind": "Reference",
|
|
32933
|
-
"text": "Record",
|
|
32934
|
-
"canonicalReference": "!Record:type"
|
|
32935
|
-
},
|
|
32936
|
-
{
|
|
32937
|
-
"kind": "Content",
|
|
32938
|
-
"text": "<string, unknown>"
|
|
32939
|
-
},
|
|
32940
|
-
{
|
|
32941
|
-
"kind": "Content",
|
|
32942
|
-
"text": ";"
|
|
32943
|
-
}
|
|
32944
|
-
],
|
|
32945
|
-
"isStatic": false,
|
|
32946
|
-
"returnTypeTokenRange": {
|
|
32947
|
-
"startIndex": 1,
|
|
32948
|
-
"endIndex": 3
|
|
32949
|
-
},
|
|
32950
|
-
"releaseTag": "Beta",
|
|
32951
|
-
"isProtected": false,
|
|
32952
|
-
"overloadIndex": 1,
|
|
32953
|
-
"parameters": [],
|
|
32954
|
-
"isOptional": false,
|
|
32955
|
-
"isAbstract": false,
|
|
32956
|
-
"name": "serializeWaitingCallers"
|
|
32957
|
-
},
|
|
32958
|
-
{
|
|
32959
|
-
"kind": "Method",
|
|
32960
|
-
"canonicalReference": "@genesislcap/ai-assistant!OrchestratingDriver#unwindHandOffs:member(1)",
|
|
32961
|
-
"docComment": "/**\n * End every hand-off without a hand-back, newest first: the chat was cleared, or the agents changed. Each raises `handoff-unwound`; on Clear a waiting caller's `onHandOffReturn` is told.\n */\n",
|
|
32962
|
-
"excerptTokens": [
|
|
32963
|
-
{
|
|
32964
|
-
"kind": "Content",
|
|
32965
|
-
"text": "unwindHandOffs(kind: "
|
|
32966
|
-
},
|
|
32967
|
-
{
|
|
32968
|
-
"kind": "Content",
|
|
32969
|
-
"text": "'cleared' | 'state-lost'"
|
|
32970
|
-
},
|
|
32971
|
-
{
|
|
32972
|
-
"kind": "Content",
|
|
32973
|
-
"text": "): "
|
|
32974
|
-
},
|
|
32975
|
-
{
|
|
32976
|
-
"kind": "Reference",
|
|
32977
|
-
"text": "Promise",
|
|
32978
|
-
"canonicalReference": "!Promise:interface"
|
|
32979
|
-
},
|
|
32980
|
-
{
|
|
32981
|
-
"kind": "Content",
|
|
32982
|
-
"text": "<void>"
|
|
32983
|
-
},
|
|
32984
|
-
{
|
|
32985
|
-
"kind": "Content",
|
|
32986
|
-
"text": ";"
|
|
32987
|
-
}
|
|
32988
|
-
],
|
|
32989
|
-
"isStatic": false,
|
|
32990
|
-
"returnTypeTokenRange": {
|
|
32991
|
-
"startIndex": 3,
|
|
32992
|
-
"endIndex": 5
|
|
32993
|
-
},
|
|
32994
|
-
"releaseTag": "Beta",
|
|
32995
|
-
"isProtected": false,
|
|
32996
|
-
"overloadIndex": 1,
|
|
32997
|
-
"parameters": [
|
|
32998
|
-
{
|
|
32999
|
-
"parameterName": "kind",
|
|
33000
|
-
"parameterTypeTokenRange": {
|
|
33001
|
-
"startIndex": 1,
|
|
33002
|
-
"endIndex": 2
|
|
33003
|
-
},
|
|
33004
|
-
"isOptional": false
|
|
33005
|
-
}
|
|
33006
|
-
],
|
|
33007
|
-
"isOptional": false,
|
|
33008
|
-
"isAbstract": false,
|
|
33009
|
-
"name": "unwindHandOffs"
|
|
33010
31041
|
}
|
|
33011
31042
|
],
|
|
33012
31043
|
"extendsTokenRange": {
|
|
@@ -33640,70 +31671,6 @@
|
|
|
33640
31671
|
"endIndex": 2
|
|
33641
31672
|
}
|
|
33642
31673
|
},
|
|
33643
|
-
{
|
|
33644
|
-
"kind": "PropertySignature",
|
|
33645
|
-
"canonicalReference": "@genesislcap/ai-assistant!PersistedSession#handOffData:member",
|
|
33646
|
-
"docComment": "/**\n * The `data` each hand-off target was activated with, by agent name (GENC-1737), for the agents a restore resumes: the flow owner and the waiting callers. Not written for a frozen session. Optional and additive, like `handoffStack`; omitted when there is none.\n */\n",
|
|
33647
|
-
"excerptTokens": [
|
|
33648
|
-
{
|
|
33649
|
-
"kind": "Content",
|
|
33650
|
-
"text": "handOffData?: "
|
|
33651
|
-
},
|
|
33652
|
-
{
|
|
33653
|
-
"kind": "Reference",
|
|
33654
|
-
"text": "Record",
|
|
33655
|
-
"canonicalReference": "!Record:type"
|
|
33656
|
-
},
|
|
33657
|
-
{
|
|
33658
|
-
"kind": "Content",
|
|
33659
|
-
"text": "<string, unknown>"
|
|
33660
|
-
},
|
|
33661
|
-
{
|
|
33662
|
-
"kind": "Content",
|
|
33663
|
-
"text": ";"
|
|
33664
|
-
}
|
|
33665
|
-
],
|
|
33666
|
-
"isReadonly": false,
|
|
33667
|
-
"isOptional": true,
|
|
33668
|
-
"releaseTag": "Public",
|
|
33669
|
-
"name": "handOffData",
|
|
33670
|
-
"propertyTypeTokenRange": {
|
|
33671
|
-
"startIndex": 1,
|
|
33672
|
-
"endIndex": 3
|
|
33673
|
-
}
|
|
33674
|
-
},
|
|
33675
|
-
{
|
|
33676
|
-
"kind": "PropertySignature",
|
|
33677
|
-
"canonicalReference": "@genesislcap/ai-assistant!PersistedSession#handoffStack:member",
|
|
33678
|
-
"docComment": "/**\n * The hand-offs in progress, oldest first (GENC-1737): who waits for whom, and why. A frame with an `outcome` was finished by its target but its caller had not resumed yet, so a restore hands back. Each agent's own state is in `agentSnapshots`, the waiting callers' included. Optional and additive, like `condensePolicies`; omitted when there are none. The frame's shape, written out here as for `checkpoints`.\n */\n",
|
|
33679
|
-
"excerptTokens": [
|
|
33680
|
-
{
|
|
33681
|
-
"kind": "Content",
|
|
33682
|
-
"text": "handoffStack?: "
|
|
33683
|
-
},
|
|
33684
|
-
{
|
|
33685
|
-
"kind": "Reference",
|
|
33686
|
-
"text": "Array",
|
|
33687
|
-
"canonicalReference": "!Array:interface"
|
|
33688
|
-
},
|
|
33689
|
-
{
|
|
33690
|
-
"kind": "Content",
|
|
33691
|
-
"text": "<{\n id: string;\n caller: string;\n target: string;\n returnTo: boolean;\n message: string;\n data?: unknown;\n startedAt: string;\n outcome?: {\n kind: string;\n message?: string;\n data?: unknown;\n };\n }>"
|
|
33692
|
-
},
|
|
33693
|
-
{
|
|
33694
|
-
"kind": "Content",
|
|
33695
|
-
"text": ";"
|
|
33696
|
-
}
|
|
33697
|
-
],
|
|
33698
|
-
"isReadonly": false,
|
|
33699
|
-
"isOptional": true,
|
|
33700
|
-
"releaseTag": "Public",
|
|
33701
|
-
"name": "handoffStack",
|
|
33702
|
-
"propertyTypeTokenRange": {
|
|
33703
|
-
"startIndex": 1,
|
|
33704
|
-
"endIndex": 3
|
|
33705
|
-
}
|
|
33706
|
-
},
|
|
33707
31674
|
{
|
|
33708
31675
|
"kind": "PropertySignature",
|
|
33709
31676
|
"canonicalReference": "@genesislcap/ai-assistant!PersistedSession#host:member",
|
|
@@ -34162,6 +32129,33 @@
|
|
|
34162
32129
|
],
|
|
34163
32130
|
"name": "registerTieredAIProviders"
|
|
34164
32131
|
},
|
|
32132
|
+
{
|
|
32133
|
+
"kind": "Variable",
|
|
32134
|
+
"canonicalReference": "@genesislcap/ai-assistant!REQUEST_CONTINUATION_TOOL:var",
|
|
32135
|
+
"docComment": "/**\n * Name reserved for the cross-agent handoff tool — injected by OrchestratingDriver.\n *\n * @beta\n */\n",
|
|
32136
|
+
"excerptTokens": [
|
|
32137
|
+
{
|
|
32138
|
+
"kind": "Content",
|
|
32139
|
+
"text": "REQUEST_CONTINUATION_TOOL = "
|
|
32140
|
+
},
|
|
32141
|
+
{
|
|
32142
|
+
"kind": "Content",
|
|
32143
|
+
"text": "\"request_continuation\""
|
|
32144
|
+
}
|
|
32145
|
+
],
|
|
32146
|
+
"fileUrlPath": "src/components/chat-driver/chat-driver.constants.ts",
|
|
32147
|
+
"initializerTokenRange": {
|
|
32148
|
+
"startIndex": 1,
|
|
32149
|
+
"endIndex": 2
|
|
32150
|
+
},
|
|
32151
|
+
"isReadonly": true,
|
|
32152
|
+
"releaseTag": "Beta",
|
|
32153
|
+
"name": "REQUEST_CONTINUATION_TOOL",
|
|
32154
|
+
"variableTypeTokenRange": {
|
|
32155
|
+
"startIndex": 0,
|
|
32156
|
+
"endIndex": 0
|
|
32157
|
+
}
|
|
32158
|
+
},
|
|
34165
32159
|
{
|
|
34166
32160
|
"kind": "Function",
|
|
34167
32161
|
"canonicalReference": "@genesislcap/ai-assistant!requestAgentNotificationPermission:function(1)",
|
|
@@ -34435,7 +32429,7 @@
|
|
|
34435
32429
|
},
|
|
34436
32430
|
{
|
|
34437
32431
|
"kind": "Content",
|
|
34438
|
-
"text": "'classified'\n/** The classifier ran and answered -1: nothing listed covers the request. */\n | 'no-match'\n/** One viable specialist and no fallback — no point asking. */\n | 'single-candidate'\n/** Nothing classifier-eligible was configured. */\n | 'no-specialists'\n/** The registry default exposes no `chat()`, so no classification is possible. */\n | 'provider-unavailable'\n/** Every attempt threw. `detail.error` carries the last message. */\n | 'classifier-failed'\n/** A pin or an active flow owned the turn; the classifier was skipped. */\n | 'pinned'"
|
|
32432
|
+
"text": "'classified'\n/** The classifier ran and answered -1: nothing listed covers the request. */\n | 'no-match'\n/**\n * Every classifier-eligible specialist had already handled part of this turn and handed on, so\n * the ballot was empty and no call was made. Distinct from `'no-match'`, which means a\n * classifier RAN and declined — conflating the two re-creates exactly the \"did anything actually\n * get asked?\" ambiguity this event exists to remove.\n */\n | 'ballot-exhausted'\n/** One viable specialist and no fallback — no point asking. */\n | 'single-candidate'\n/** Nothing classifier-eligible was configured. */\n | 'no-specialists'\n/** The registry default exposes no `chat()`, so no classification is possible. */\n | 'provider-unavailable'\n/** Every attempt threw. `detail.error` carries the last message. */\n | 'classifier-failed'\n/** A pin or an active flow owned the turn; the classifier was skipped. */\n | 'pinned'"
|
|
34439
32433
|
},
|
|
34440
32434
|
{
|
|
34441
32435
|
"kind": "Content",
|
|
@@ -41046,7 +39040,7 @@
|
|
|
41046
39040
|
{
|
|
41047
39041
|
"kind": "Variable",
|
|
41048
39042
|
"canonicalReference": "@genesislcap/ai-assistant!UNROUTABLE_INSTRUCTION:var",
|
|
41049
|
-
"docComment": "/**\n * The instruction a fallback agent needs and, left to itself, tends not to have.\n *\n * A fallback prompt written by a consumer reliably covers two cases — small talk, and a request that belongs to a specialist — because those are the ones you think of when you write it. The case it exists FOR is the third: a substantive request that no specialist covers, and no way to act on it, because a fallback holds no tools.\n *\n * Create's fallback prompt is the worked example (GENC-1573). It covered chit-chat and \"out of scope, here are the specialists\", said nothing about a request nothing can serve, and nothing about a terse follow-up (\"fix it\", \"try again\") aimed at an answer already given. Asked to fix a Kotlin null pointer no agent could touch, it returned nine blank turns across three page loads — a model with no instruction covering its situation and no tool to reach for.\n *\n * So the framework supplies it. Appended to a string-form prompt (or substituted at {@link UNROUTABLE_PLACEHOLDER} if the consumer positions it), because a fallback with no answer for its own reason to exist is a defect in every host, not a matter of taste. It is additive and static: being fixed it cannot destabilise a cached prefix, and the fallback prompt already changes whenever the agents array does (`{{agents}}` interpolates the specialist list). The function form still passes through untouched — a consumer that wants full control has it there.\n *\n * DELIBERATELY CONFINED TO WHAT A TERSE PROMPT CAN ALSO OBEY, and it must stay that way. Since this is appended by default it lands on top of prompts written with their own tone rules, and an earlier draft asked the model to \"state what you can establish… and suggest what the user could do next\" — a direct contradiction of {@link strictFallbackAgent}, a preset THIS PACKAGE ships, whose whole instruction is \"a single short sentence… Do not elaborate\". What is left here is compatible with brevity: say so, don't promise work you cannot do, read a short follow-up in context, and never answer with nothing. Adding anything that presumes room to elaborate breaks a shipped preset — put it in the consumer's own prompt instead.\n *\n * @beta\n */\n",
|
|
39043
|
+
"docComment": "/**\n * The instruction a fallback agent needs and, left to itself, tends not to have.\n *\n * A fallback prompt written by a consumer reliably covers two cases — small talk, and a request that belongs to a specialist — because those are the ones you think of when you write it. The case it exists FOR is the third: a substantive request that no specialist covers, and no way to act on it, because a fallback holds no tools and is denied the continuation tool as a leaf.\n *\n * Create's fallback prompt is the worked example (GENC-1573). It covered chit-chat and \"out of scope, here are the specialists\", said nothing about a request nothing can serve, and nothing about a terse follow-up (\"fix it\", \"try again\") aimed at an answer already given. Asked to fix a Kotlin null pointer no agent could touch, it returned nine blank turns across three page loads — a model with no instruction covering its situation and no tool to reach for.\n *\n * So the framework supplies it. Appended to a string-form prompt (or substituted at {@link UNROUTABLE_PLACEHOLDER} if the consumer positions it), because a fallback with no answer for its own reason to exist is a defect in every host, not a matter of taste. It is additive and static: being fixed it cannot destabilise a cached prefix, and the fallback prompt already changes whenever the agents array does (`{{agents}}` interpolates the specialist list). The function form still passes through untouched — a consumer that wants full control has it there.\n *\n * DELIBERATELY CONFINED TO WHAT A TERSE PROMPT CAN ALSO OBEY, and it must stay that way. Since this is appended by default it lands on top of prompts written with their own tone rules, and an earlier draft asked the model to \"state what you can establish… and suggest what the user could do next\" — a direct contradiction of {@link strictFallbackAgent}, a preset THIS PACKAGE ships, whose whole instruction is \"a single short sentence… Do not elaborate\". What is left here is compatible with brevity: say so, don't promise work you cannot do, read a short follow-up in context, and never answer with nothing. Adding anything that presumes room to elaborate breaks a shipped preset — put it in the consumer's own prompt instead.\n *\n * @beta\n */\n",
|
|
41050
39044
|
"excerptTokens": [
|
|
41051
39045
|
{
|
|
41052
39046
|
"kind": "Content",
|