@genesislcap/ai-assistant 14.409.0-FUI-2495.6 → 14.409.0-FUI-2495.7
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 +592 -8
- package/dist/ai-assistant.d.ts +223 -9
- package/dist/dts/channel/ai-activity-channel.d.ts +19 -1
- package/dist/dts/channel/ai-activity-channel.d.ts.map +1 -1
- package/dist/dts/components/chat-driver/chat-driver.d.ts +37 -4
- package/dist/dts/components/chat-driver/chat-driver.d.ts.map +1 -1
- package/dist/dts/components/orchestrating-driver/orchestrating-driver.d.ts +1 -0
- package/dist/dts/components/orchestrating-driver/orchestrating-driver.d.ts.map +1 -1
- package/dist/dts/index.d.ts +1 -0
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/main/main.d.ts +30 -5
- package/dist/dts/main/main.d.ts.map +1 -1
- package/dist/dts/main/main.styles.d.ts.map +1 -1
- package/dist/dts/main/main.template.d.ts.map +1 -1
- package/dist/dts/utils/index.d.ts +1 -0
- package/dist/dts/utils/index.d.ts.map +1 -1
- package/dist/dts/utils/tool-fold.d.ts +133 -0
- package/dist/dts/utils/tool-fold.d.ts.map +1 -0
- package/dist/esm/components/chat-driver/chat-driver.js +288 -32
- package/dist/esm/components/orchestrating-driver/orchestrating-driver.js +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/main/main.js +67 -11
- package/dist/esm/main/main.styles.js +35 -0
- package/dist/esm/main/main.template.js +38 -1
- package/dist/esm/utils/index.js +1 -0
- package/dist/esm/utils/tool-fold.js +92 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/docs/multi-agent-architecture.md +93 -0
- package/package.json +15 -15
- package/src/channel/ai-activity-channel.ts +20 -1
- package/src/components/chat-driver/chat-driver.ts +331 -28
- package/src/components/orchestrating-driver/orchestrating-driver.ts +2 -0
- package/src/index.ts +1 -0
- package/src/main/main.styles.ts +35 -0
- package/src/main/main.template.ts +50 -2
- package/src/main/main.ts +56 -6
- package/src/utils/index.ts +1 -0
- package/src/utils/tool-fold.ts +181 -0
|
@@ -937,6 +937,38 @@
|
|
|
937
937
|
"endIndex": 3
|
|
938
938
|
}
|
|
939
939
|
},
|
|
940
|
+
{
|
|
941
|
+
"kind": "PropertySignature",
|
|
942
|
+
"canonicalReference": "@genesislcap/ai-assistant!AiAssistantSerializedState#foldStack:member",
|
|
943
|
+
"docComment": "/**\n * Active fold stack at the time of serialization. Restored by the driver on `applyState` so the model has the correct tool set.\n */\n",
|
|
944
|
+
"excerptTokens": [
|
|
945
|
+
{
|
|
946
|
+
"kind": "Content",
|
|
947
|
+
"text": "foldStack?: "
|
|
948
|
+
},
|
|
949
|
+
{
|
|
950
|
+
"kind": "Reference",
|
|
951
|
+
"text": "SerializedFoldFrame",
|
|
952
|
+
"canonicalReference": "@genesislcap/ai-assistant!SerializedFoldFrame:interface"
|
|
953
|
+
},
|
|
954
|
+
{
|
|
955
|
+
"kind": "Content",
|
|
956
|
+
"text": "[]"
|
|
957
|
+
},
|
|
958
|
+
{
|
|
959
|
+
"kind": "Content",
|
|
960
|
+
"text": ";"
|
|
961
|
+
}
|
|
962
|
+
],
|
|
963
|
+
"isReadonly": false,
|
|
964
|
+
"isOptional": true,
|
|
965
|
+
"releaseTag": "Beta",
|
|
966
|
+
"name": "foldStack",
|
|
967
|
+
"propertyTypeTokenRange": {
|
|
968
|
+
"startIndex": 1,
|
|
969
|
+
"endIndex": 3
|
|
970
|
+
}
|
|
971
|
+
},
|
|
940
972
|
{
|
|
941
973
|
"kind": "PropertySignature",
|
|
942
974
|
"canonicalReference": "@genesislcap/ai-assistant!AiAssistantSerializedState#messages:member",
|
|
@@ -1950,6 +1982,14 @@
|
|
|
1950
1982
|
"kind": "Content",
|
|
1951
1983
|
"text": "number"
|
|
1952
1984
|
},
|
|
1985
|
+
{
|
|
1986
|
+
"kind": "Content",
|
|
1987
|
+
"text": ", maxFoldOperations?: "
|
|
1988
|
+
},
|
|
1989
|
+
{
|
|
1990
|
+
"kind": "Content",
|
|
1991
|
+
"text": "number"
|
|
1992
|
+
},
|
|
1953
1993
|
{
|
|
1954
1994
|
"kind": "Content",
|
|
1955
1995
|
"text": ");"
|
|
@@ -2006,6 +2046,14 @@
|
|
|
2006
2046
|
"endIndex": 14
|
|
2007
2047
|
},
|
|
2008
2048
|
"isOptional": true
|
|
2049
|
+
},
|
|
2050
|
+
{
|
|
2051
|
+
"parameterName": "maxFoldOperations",
|
|
2052
|
+
"parameterTypeTokenRange": {
|
|
2053
|
+
"startIndex": 15,
|
|
2054
|
+
"endIndex": 16
|
|
2055
|
+
},
|
|
2056
|
+
"isOptional": true
|
|
2009
2057
|
}
|
|
2010
2058
|
]
|
|
2011
2059
|
},
|
|
@@ -2061,7 +2109,7 @@
|
|
|
2061
2109
|
{
|
|
2062
2110
|
"kind": "Method",
|
|
2063
2111
|
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#continueFromHistory:member(1)",
|
|
2064
|
-
"docComment": "/**\n * Continue the tool loop from current history without appending a new user message. Used by OrchestratingDriver after an agent handoff
|
|
2112
|
+
"docComment": "/**\n * Continue the tool loop from current history without appending a new user message. Used by OrchestratingDriver after an agent handoff.\n */\n",
|
|
2065
2113
|
"excerptTokens": [
|
|
2066
2114
|
{
|
|
2067
2115
|
"kind": "Content",
|
|
@@ -2125,6 +2173,42 @@
|
|
|
2125
2173
|
"isAbstract": false,
|
|
2126
2174
|
"name": "continueFromHistory"
|
|
2127
2175
|
},
|
|
2176
|
+
{
|
|
2177
|
+
"kind": "Method",
|
|
2178
|
+
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#getFoldStack:member(1)",
|
|
2179
|
+
"docComment": "/**\n * Returns a serializable snapshot of the fold stack for pop-in/pop-out state transfer. Handler functions are omitted — they are re-resolved from agent config on restore.\n */\n",
|
|
2180
|
+
"excerptTokens": [
|
|
2181
|
+
{
|
|
2182
|
+
"kind": "Content",
|
|
2183
|
+
"text": "getFoldStack(): "
|
|
2184
|
+
},
|
|
2185
|
+
{
|
|
2186
|
+
"kind": "Reference",
|
|
2187
|
+
"text": "SerializedFoldFrame",
|
|
2188
|
+
"canonicalReference": "@genesislcap/ai-assistant!SerializedFoldFrame:interface"
|
|
2189
|
+
},
|
|
2190
|
+
{
|
|
2191
|
+
"kind": "Content",
|
|
2192
|
+
"text": "[]"
|
|
2193
|
+
},
|
|
2194
|
+
{
|
|
2195
|
+
"kind": "Content",
|
|
2196
|
+
"text": ";"
|
|
2197
|
+
}
|
|
2198
|
+
],
|
|
2199
|
+
"isStatic": false,
|
|
2200
|
+
"returnTypeTokenRange": {
|
|
2201
|
+
"startIndex": 1,
|
|
2202
|
+
"endIndex": 3
|
|
2203
|
+
},
|
|
2204
|
+
"releaseTag": "Beta",
|
|
2205
|
+
"isProtected": false,
|
|
2206
|
+
"overloadIndex": 1,
|
|
2207
|
+
"parameters": [],
|
|
2208
|
+
"isOptional": false,
|
|
2209
|
+
"isAbstract": false,
|
|
2210
|
+
"name": "getFoldStack"
|
|
2211
|
+
},
|
|
2128
2212
|
{
|
|
2129
2213
|
"kind": "Method",
|
|
2130
2214
|
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#getHistory:member(1)",
|
|
@@ -2551,6 +2635,59 @@
|
|
|
2551
2635
|
"isAbstract": false,
|
|
2552
2636
|
"name": "resolveInteraction"
|
|
2553
2637
|
},
|
|
2638
|
+
{
|
|
2639
|
+
"kind": "Method",
|
|
2640
|
+
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#restoreFoldStack:member(1)",
|
|
2641
|
+
"docComment": "/**\n * Restores the fold stack from a serialized snapshot. Re-opens each fold in order so the driver has the correct tool set.\n */\n",
|
|
2642
|
+
"excerptTokens": [
|
|
2643
|
+
{
|
|
2644
|
+
"kind": "Content",
|
|
2645
|
+
"text": "restoreFoldStack(frames: "
|
|
2646
|
+
},
|
|
2647
|
+
{
|
|
2648
|
+
"kind": "Reference",
|
|
2649
|
+
"text": "SerializedFoldFrame",
|
|
2650
|
+
"canonicalReference": "@genesislcap/ai-assistant!SerializedFoldFrame:interface"
|
|
2651
|
+
},
|
|
2652
|
+
{
|
|
2653
|
+
"kind": "Content",
|
|
2654
|
+
"text": "[]"
|
|
2655
|
+
},
|
|
2656
|
+
{
|
|
2657
|
+
"kind": "Content",
|
|
2658
|
+
"text": "): "
|
|
2659
|
+
},
|
|
2660
|
+
{
|
|
2661
|
+
"kind": "Content",
|
|
2662
|
+
"text": "void"
|
|
2663
|
+
},
|
|
2664
|
+
{
|
|
2665
|
+
"kind": "Content",
|
|
2666
|
+
"text": ";"
|
|
2667
|
+
}
|
|
2668
|
+
],
|
|
2669
|
+
"isStatic": false,
|
|
2670
|
+
"returnTypeTokenRange": {
|
|
2671
|
+
"startIndex": 4,
|
|
2672
|
+
"endIndex": 5
|
|
2673
|
+
},
|
|
2674
|
+
"releaseTag": "Beta",
|
|
2675
|
+
"isProtected": false,
|
|
2676
|
+
"overloadIndex": 1,
|
|
2677
|
+
"parameters": [
|
|
2678
|
+
{
|
|
2679
|
+
"parameterName": "frames",
|
|
2680
|
+
"parameterTypeTokenRange": {
|
|
2681
|
+
"startIndex": 1,
|
|
2682
|
+
"endIndex": 3
|
|
2683
|
+
},
|
|
2684
|
+
"isOptional": false
|
|
2685
|
+
}
|
|
2686
|
+
],
|
|
2687
|
+
"isOptional": false,
|
|
2688
|
+
"isAbstract": false,
|
|
2689
|
+
"name": "restoreFoldStack"
|
|
2690
|
+
},
|
|
2554
2691
|
{
|
|
2555
2692
|
"kind": "Method",
|
|
2556
2693
|
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#sendMessage:member(1)",
|
|
@@ -2761,6 +2898,142 @@
|
|
|
2761
2898
|
"endIndex": 7
|
|
2762
2899
|
}
|
|
2763
2900
|
},
|
|
2901
|
+
{
|
|
2902
|
+
"kind": "Function",
|
|
2903
|
+
"canonicalReference": "@genesislcap/ai-assistant!createToolFold:function(1)",
|
|
2904
|
+
"docComment": "/**\n * Creates a tool fold — a facade that hides a group of related tools behind a single named entry, revealing them progressively when the model invokes the facade.\n *\n * The `tools` and `handlers` parameters accept the exact same types as `AgentConfig.toolDefinitions` and `AgentConfig.toolHandlers`, so existing tool creation functions can be passed in unchanged.\n *\n * @example\n * ```typescript\n * const tradingTools = createToolFold({\n * name: 'trading_tools',\n * tools: createTradesToolDefinitions(),\n * handlers: createTradesToolHandlers(connect),\n * });\n *\n * const agent: AgentConfig = {\n * name: 'Trades',\n * systemPrompt: '...',\n * toolDefinitions: [getCurrentDateDef, tradingTools.definition],\n * toolHandlers: { get_current_date: handler, ...tradingTools.handler },\n * };\n * ```\n *\n * @example\n *\n * Nesting folds\n * ```typescript\n * const insertFold = createToolFold({\n * name: 'trade_insertion',\n * tools: [validateDef, insertDef],\n * handlers: { validate_trade: vHandler, insert_trade: iHandler },\n * });\n *\n * const tradingFold = createToolFold({\n * name: 'trading_tools',\n * tools: [searchDef, insertFold.definition],\n * handlers: { search_trades: sHandler, ...insertFold.handler },\n * });\n * ```\n *\n * @beta\n */\n",
|
|
2905
|
+
"excerptTokens": [
|
|
2906
|
+
{
|
|
2907
|
+
"kind": "Content",
|
|
2908
|
+
"text": "export declare function createToolFold(config: "
|
|
2909
|
+
},
|
|
2910
|
+
{
|
|
2911
|
+
"kind": "Content",
|
|
2912
|
+
"text": "{\n name: string;\n description?: string;\n usageNotes?: string;\n tools: "
|
|
2913
|
+
},
|
|
2914
|
+
{
|
|
2915
|
+
"kind": "Reference",
|
|
2916
|
+
"text": "ChatToolDefinition",
|
|
2917
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatToolDefinition:interface"
|
|
2918
|
+
},
|
|
2919
|
+
{
|
|
2920
|
+
"kind": "Content",
|
|
2921
|
+
"text": "[];\n handlers: "
|
|
2922
|
+
},
|
|
2923
|
+
{
|
|
2924
|
+
"kind": "Reference",
|
|
2925
|
+
"text": "ChatToolHandlers",
|
|
2926
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatToolHandlers:type"
|
|
2927
|
+
},
|
|
2928
|
+
{
|
|
2929
|
+
"kind": "Content",
|
|
2930
|
+
"text": ";\n exclusive?: boolean;\n}"
|
|
2931
|
+
},
|
|
2932
|
+
{
|
|
2933
|
+
"kind": "Content",
|
|
2934
|
+
"text": "): "
|
|
2935
|
+
},
|
|
2936
|
+
{
|
|
2937
|
+
"kind": "Reference",
|
|
2938
|
+
"text": "ToolFoldResult",
|
|
2939
|
+
"canonicalReference": "@genesislcap/ai-assistant!ToolFoldResult:interface"
|
|
2940
|
+
},
|
|
2941
|
+
{
|
|
2942
|
+
"kind": "Content",
|
|
2943
|
+
"text": ";"
|
|
2944
|
+
}
|
|
2945
|
+
],
|
|
2946
|
+
"fileUrlPath": "src/utils/tool-fold.ts",
|
|
2947
|
+
"returnTypeTokenRange": {
|
|
2948
|
+
"startIndex": 7,
|
|
2949
|
+
"endIndex": 8
|
|
2950
|
+
},
|
|
2951
|
+
"releaseTag": "Beta",
|
|
2952
|
+
"overloadIndex": 1,
|
|
2953
|
+
"parameters": [
|
|
2954
|
+
{
|
|
2955
|
+
"parameterName": "config",
|
|
2956
|
+
"parameterTypeTokenRange": {
|
|
2957
|
+
"startIndex": 1,
|
|
2958
|
+
"endIndex": 6
|
|
2959
|
+
},
|
|
2960
|
+
"isOptional": false
|
|
2961
|
+
}
|
|
2962
|
+
],
|
|
2963
|
+
"name": "createToolFold"
|
|
2964
|
+
},
|
|
2965
|
+
{
|
|
2966
|
+
"kind": "Function",
|
|
2967
|
+
"canonicalReference": "@genesislcap/ai-assistant!expandToolTree:function(1)",
|
|
2968
|
+
"docComment": "/**\n * Expands a flat list of tool definitions into a nested tree by resolving fold metadata from the corresponding handlers. Use this for debug output so the full tool hierarchy is visible rather than just the top-level facade names.\n *\n * @beta\n */\n",
|
|
2969
|
+
"excerptTokens": [
|
|
2970
|
+
{
|
|
2971
|
+
"kind": "Content",
|
|
2972
|
+
"text": "export declare function expandToolTree(definitions: "
|
|
2973
|
+
},
|
|
2974
|
+
{
|
|
2975
|
+
"kind": "Reference",
|
|
2976
|
+
"text": "ChatToolDefinition",
|
|
2977
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatToolDefinition:interface"
|
|
2978
|
+
},
|
|
2979
|
+
{
|
|
2980
|
+
"kind": "Content",
|
|
2981
|
+
"text": "[]"
|
|
2982
|
+
},
|
|
2983
|
+
{
|
|
2984
|
+
"kind": "Content",
|
|
2985
|
+
"text": ", handlers: "
|
|
2986
|
+
},
|
|
2987
|
+
{
|
|
2988
|
+
"kind": "Reference",
|
|
2989
|
+
"text": "ChatToolHandlers",
|
|
2990
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatToolHandlers:type"
|
|
2991
|
+
},
|
|
2992
|
+
{
|
|
2993
|
+
"kind": "Content",
|
|
2994
|
+
"text": "): "
|
|
2995
|
+
},
|
|
2996
|
+
{
|
|
2997
|
+
"kind": "Reference",
|
|
2998
|
+
"text": "ToolTreeNode",
|
|
2999
|
+
"canonicalReference": "@genesislcap/ai-assistant!ToolTreeNode:interface"
|
|
3000
|
+
},
|
|
3001
|
+
{
|
|
3002
|
+
"kind": "Content",
|
|
3003
|
+
"text": "[]"
|
|
3004
|
+
},
|
|
3005
|
+
{
|
|
3006
|
+
"kind": "Content",
|
|
3007
|
+
"text": ";"
|
|
3008
|
+
}
|
|
3009
|
+
],
|
|
3010
|
+
"fileUrlPath": "src/utils/tool-fold.ts",
|
|
3011
|
+
"returnTypeTokenRange": {
|
|
3012
|
+
"startIndex": 6,
|
|
3013
|
+
"endIndex": 8
|
|
3014
|
+
},
|
|
3015
|
+
"releaseTag": "Beta",
|
|
3016
|
+
"overloadIndex": 1,
|
|
3017
|
+
"parameters": [
|
|
3018
|
+
{
|
|
3019
|
+
"parameterName": "definitions",
|
|
3020
|
+
"parameterTypeTokenRange": {
|
|
3021
|
+
"startIndex": 1,
|
|
3022
|
+
"endIndex": 3
|
|
3023
|
+
},
|
|
3024
|
+
"isOptional": false
|
|
3025
|
+
},
|
|
3026
|
+
{
|
|
3027
|
+
"parameterName": "handlers",
|
|
3028
|
+
"parameterTypeTokenRange": {
|
|
3029
|
+
"startIndex": 4,
|
|
3030
|
+
"endIndex": 5
|
|
3031
|
+
},
|
|
3032
|
+
"isOptional": false
|
|
3033
|
+
}
|
|
3034
|
+
],
|
|
3035
|
+
"name": "expandToolTree"
|
|
3036
|
+
},
|
|
2764
3037
|
{
|
|
2765
3038
|
"kind": "Interface",
|
|
2766
3039
|
"canonicalReference": "@genesislcap/ai-assistant!FallbackAgentConfig:interface",
|
|
@@ -3176,6 +3449,66 @@
|
|
|
3176
3449
|
"isAbstract": false,
|
|
3177
3450
|
"name": "connectedCallback"
|
|
3178
3451
|
},
|
|
3452
|
+
{
|
|
3453
|
+
"kind": "Property",
|
|
3454
|
+
"canonicalReference": "@genesislcap/ai-assistant!FoundationAiAssistant#contextLimit:member",
|
|
3455
|
+
"docComment": "/**\n * Context window size for the active model, if known.\n */\n",
|
|
3456
|
+
"excerptTokens": [
|
|
3457
|
+
{
|
|
3458
|
+
"kind": "Content",
|
|
3459
|
+
"text": "contextLimit: "
|
|
3460
|
+
},
|
|
3461
|
+
{
|
|
3462
|
+
"kind": "Content",
|
|
3463
|
+
"text": "number | undefined"
|
|
3464
|
+
},
|
|
3465
|
+
{
|
|
3466
|
+
"kind": "Content",
|
|
3467
|
+
"text": ";"
|
|
3468
|
+
}
|
|
3469
|
+
],
|
|
3470
|
+
"isReadonly": false,
|
|
3471
|
+
"isOptional": false,
|
|
3472
|
+
"releaseTag": "Beta",
|
|
3473
|
+
"name": "contextLimit",
|
|
3474
|
+
"propertyTypeTokenRange": {
|
|
3475
|
+
"startIndex": 1,
|
|
3476
|
+
"endIndex": 2
|
|
3477
|
+
},
|
|
3478
|
+
"isStatic": false,
|
|
3479
|
+
"isProtected": false,
|
|
3480
|
+
"isAbstract": false
|
|
3481
|
+
},
|
|
3482
|
+
{
|
|
3483
|
+
"kind": "Property",
|
|
3484
|
+
"canonicalReference": "@genesislcap/ai-assistant!FoundationAiAssistant#contextTokens:member",
|
|
3485
|
+
"docComment": "/**\n * Most recent prompt token count from the AI provider, if available.\n */\n",
|
|
3486
|
+
"excerptTokens": [
|
|
3487
|
+
{
|
|
3488
|
+
"kind": "Content",
|
|
3489
|
+
"text": "contextTokens: "
|
|
3490
|
+
},
|
|
3491
|
+
{
|
|
3492
|
+
"kind": "Content",
|
|
3493
|
+
"text": "number | undefined"
|
|
3494
|
+
},
|
|
3495
|
+
{
|
|
3496
|
+
"kind": "Content",
|
|
3497
|
+
"text": ";"
|
|
3498
|
+
}
|
|
3499
|
+
],
|
|
3500
|
+
"isReadonly": false,
|
|
3501
|
+
"isOptional": false,
|
|
3502
|
+
"releaseTag": "Beta",
|
|
3503
|
+
"name": "contextTokens",
|
|
3504
|
+
"propertyTypeTokenRange": {
|
|
3505
|
+
"startIndex": 1,
|
|
3506
|
+
"endIndex": 2
|
|
3507
|
+
},
|
|
3508
|
+
"isStatic": false,
|
|
3509
|
+
"isProtected": false,
|
|
3510
|
+
"isAbstract": false
|
|
3511
|
+
},
|
|
3179
3512
|
{
|
|
3180
3513
|
"kind": "Property",
|
|
3181
3514
|
"canonicalReference": "@genesislcap/ai-assistant!FoundationAiAssistant#debugStateFactory:member",
|
|
@@ -3353,16 +3686,34 @@
|
|
|
3353
3686
|
},
|
|
3354
3687
|
{
|
|
3355
3688
|
"kind": "Content",
|
|
3356
|
-
"text": "[];\n agentSummary: "
|
|
3689
|
+
"text": "[];\n meta: {\n timestamp: string;\n host: string;\n agentSummary: ({\n toolDefinitions: import(\"../utils/tool-fold\")."
|
|
3357
3690
|
},
|
|
3358
3691
|
{
|
|
3359
3692
|
"kind": "Reference",
|
|
3360
|
-
"text": "
|
|
3361
|
-
"canonicalReference": "@genesislcap/ai-assistant!
|
|
3693
|
+
"text": "ToolTreeNode",
|
|
3694
|
+
"canonicalReference": "@genesislcap/ai-assistant!ToolTreeNode:interface"
|
|
3695
|
+
},
|
|
3696
|
+
{
|
|
3697
|
+
"kind": "Content",
|
|
3698
|
+
"text": "[];\n toolHandlers: any;\n description: string;\n fallback?: never;\n name: string;\n systemPrompt?: string;\n primerHistory?: "
|
|
3699
|
+
},
|
|
3700
|
+
{
|
|
3701
|
+
"kind": "Reference",
|
|
3702
|
+
"text": "ChatMessage",
|
|
3703
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatMessage:interface"
|
|
3362
3704
|
},
|
|
3363
3705
|
{
|
|
3364
3706
|
"kind": "Content",
|
|
3365
|
-
"text": "[];\n
|
|
3707
|
+
"text": "[];\n } | {\n toolDefinitions: import(\"../utils/tool-fold\")."
|
|
3708
|
+
},
|
|
3709
|
+
{
|
|
3710
|
+
"kind": "Reference",
|
|
3711
|
+
"text": "ToolTreeNode",
|
|
3712
|
+
"canonicalReference": "@genesislcap/ai-assistant!ToolTreeNode:interface"
|
|
3713
|
+
},
|
|
3714
|
+
{
|
|
3715
|
+
"kind": "Content",
|
|
3716
|
+
"text": "[];\n toolHandlers: any;\n fallback: true;\n description?: never;\n name: string;\n systemPrompt?: string;\n primerHistory?: "
|
|
3366
3717
|
},
|
|
3367
3718
|
{
|
|
3368
3719
|
"kind": "Reference",
|
|
@@ -3371,7 +3722,25 @@
|
|
|
3371
3722
|
},
|
|
3372
3723
|
{
|
|
3373
3724
|
"kind": "Content",
|
|
3374
|
-
"text": "[];\n
|
|
3725
|
+
"text": "[];\n })[];\n activeSystemPrompt: string;\n activePrimerHistory: "
|
|
3726
|
+
},
|
|
3727
|
+
{
|
|
3728
|
+
"kind": "Reference",
|
|
3729
|
+
"text": "ChatMessage",
|
|
3730
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatMessage:interface"
|
|
3731
|
+
},
|
|
3732
|
+
{
|
|
3733
|
+
"kind": "Content",
|
|
3734
|
+
"text": "[];\n activeFoldStack: import(\"../channel/ai-activity-channel\")."
|
|
3735
|
+
},
|
|
3736
|
+
{
|
|
3737
|
+
"kind": "Reference",
|
|
3738
|
+
"text": "SerializedFoldFrame",
|
|
3739
|
+
"canonicalReference": "@genesislcap/ai-assistant!SerializedFoldFrame:interface"
|
|
3740
|
+
},
|
|
3741
|
+
{
|
|
3742
|
+
"kind": "Content",
|
|
3743
|
+
"text": "[];\n debug: unknown;\n };\n }"
|
|
3375
3744
|
},
|
|
3376
3745
|
{
|
|
3377
3746
|
"kind": "Content",
|
|
@@ -3381,7 +3750,7 @@
|
|
|
3381
3750
|
"isStatic": false,
|
|
3382
3751
|
"returnTypeTokenRange": {
|
|
3383
3752
|
"startIndex": 1,
|
|
3384
|
-
"endIndex":
|
|
3753
|
+
"endIndex": 16
|
|
3385
3754
|
},
|
|
3386
3755
|
"releaseTag": "Beta",
|
|
3387
3756
|
"isProtected": false,
|
|
@@ -5033,7 +5402,7 @@
|
|
|
5033
5402
|
},
|
|
5034
5403
|
{
|
|
5035
5404
|
"kind": "Content",
|
|
5036
|
-
"text": "{\n maxHandoffs?: number;\n classifierHistoryLength?: number;\n classifierRetries?: number;\n maxToolIterations?: number;\n }"
|
|
5405
|
+
"text": "{\n maxHandoffs?: number;\n classifierHistoryLength?: number;\n classifierRetries?: number;\n maxToolIterations?: number;\n maxFoldOperations?: number;\n }"
|
|
5037
5406
|
},
|
|
5038
5407
|
{
|
|
5039
5408
|
"kind": "Content",
|
|
@@ -5584,6 +5953,83 @@
|
|
|
5584
5953
|
"endIndex": 0
|
|
5585
5954
|
}
|
|
5586
5955
|
},
|
|
5956
|
+
{
|
|
5957
|
+
"kind": "Interface",
|
|
5958
|
+
"canonicalReference": "@genesislcap/ai-assistant!SerializedFoldFrame:interface",
|
|
5959
|
+
"docComment": "/**\n * A single frame on the serialized fold stack. Handler functions are not serializable — they are re-resolved on restore by the driver walking the agent config's fold metadata.\n *\n * @beta\n */\n",
|
|
5960
|
+
"excerptTokens": [
|
|
5961
|
+
{
|
|
5962
|
+
"kind": "Content",
|
|
5963
|
+
"text": "export interface SerializedFoldFrame "
|
|
5964
|
+
}
|
|
5965
|
+
],
|
|
5966
|
+
"fileUrlPath": "src/channel/ai-activity-channel.ts",
|
|
5967
|
+
"releaseTag": "Beta",
|
|
5968
|
+
"name": "SerializedFoldFrame",
|
|
5969
|
+
"preserveMemberOrder": false,
|
|
5970
|
+
"members": [
|
|
5971
|
+
{
|
|
5972
|
+
"kind": "PropertySignature",
|
|
5973
|
+
"canonicalReference": "@genesislcap/ai-assistant!SerializedFoldFrame#foldName:member",
|
|
5974
|
+
"docComment": "/**\n * Name of the fold that was opened at this level.\n */\n",
|
|
5975
|
+
"excerptTokens": [
|
|
5976
|
+
{
|
|
5977
|
+
"kind": "Content",
|
|
5978
|
+
"text": "foldName: "
|
|
5979
|
+
},
|
|
5980
|
+
{
|
|
5981
|
+
"kind": "Content",
|
|
5982
|
+
"text": "string"
|
|
5983
|
+
},
|
|
5984
|
+
{
|
|
5985
|
+
"kind": "Content",
|
|
5986
|
+
"text": ";"
|
|
5987
|
+
}
|
|
5988
|
+
],
|
|
5989
|
+
"isReadonly": false,
|
|
5990
|
+
"isOptional": false,
|
|
5991
|
+
"releaseTag": "Beta",
|
|
5992
|
+
"name": "foldName",
|
|
5993
|
+
"propertyTypeTokenRange": {
|
|
5994
|
+
"startIndex": 1,
|
|
5995
|
+
"endIndex": 2
|
|
5996
|
+
}
|
|
5997
|
+
},
|
|
5998
|
+
{
|
|
5999
|
+
"kind": "PropertySignature",
|
|
6000
|
+
"canonicalReference": "@genesislcap/ai-assistant!SerializedFoldFrame#previousDefinitions:member",
|
|
6001
|
+
"docComment": "/**\n * Tool definitions that were active before this fold opened.\n */\n",
|
|
6002
|
+
"excerptTokens": [
|
|
6003
|
+
{
|
|
6004
|
+
"kind": "Content",
|
|
6005
|
+
"text": "previousDefinitions: "
|
|
6006
|
+
},
|
|
6007
|
+
{
|
|
6008
|
+
"kind": "Reference",
|
|
6009
|
+
"text": "ChatToolDefinition",
|
|
6010
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatToolDefinition:interface"
|
|
6011
|
+
},
|
|
6012
|
+
{
|
|
6013
|
+
"kind": "Content",
|
|
6014
|
+
"text": "[]"
|
|
6015
|
+
},
|
|
6016
|
+
{
|
|
6017
|
+
"kind": "Content",
|
|
6018
|
+
"text": ";"
|
|
6019
|
+
}
|
|
6020
|
+
],
|
|
6021
|
+
"isReadonly": false,
|
|
6022
|
+
"isOptional": false,
|
|
6023
|
+
"releaseTag": "Beta",
|
|
6024
|
+
"name": "previousDefinitions",
|
|
6025
|
+
"propertyTypeTokenRange": {
|
|
6026
|
+
"startIndex": 1,
|
|
6027
|
+
"endIndex": 3
|
|
6028
|
+
}
|
|
6029
|
+
}
|
|
6030
|
+
],
|
|
6031
|
+
"extendsTokenRanges": []
|
|
6032
|
+
},
|
|
5587
6033
|
{
|
|
5588
6034
|
"kind": "Interface",
|
|
5589
6035
|
"canonicalReference": "@genesislcap/ai-assistant!SpecialistAgentConfig:interface",
|
|
@@ -5719,6 +6165,144 @@
|
|
|
5719
6165
|
"startIndex": 1,
|
|
5720
6166
|
"endIndex": 2
|
|
5721
6167
|
}
|
|
6168
|
+
},
|
|
6169
|
+
{
|
|
6170
|
+
"kind": "Interface",
|
|
6171
|
+
"canonicalReference": "@genesislcap/ai-assistant!ToolFoldResult:interface",
|
|
6172
|
+
"docComment": "/**\n * The value returned by `createToolFold`.\n *\n * @beta\n */\n",
|
|
6173
|
+
"excerptTokens": [
|
|
6174
|
+
{
|
|
6175
|
+
"kind": "Content",
|
|
6176
|
+
"text": "export interface ToolFoldResult "
|
|
6177
|
+
}
|
|
6178
|
+
],
|
|
6179
|
+
"fileUrlPath": "src/utils/tool-fold.ts",
|
|
6180
|
+
"releaseTag": "Beta",
|
|
6181
|
+
"name": "ToolFoldResult",
|
|
6182
|
+
"preserveMemberOrder": false,
|
|
6183
|
+
"members": [
|
|
6184
|
+
{
|
|
6185
|
+
"kind": "PropertySignature",
|
|
6186
|
+
"canonicalReference": "@genesislcap/ai-assistant!ToolFoldResult#definition:member",
|
|
6187
|
+
"docComment": "/**\n * The facade tool definition. Add this to your agent's `toolDefinitions`. It is a regular `ChatToolDefinition` with an empty parameter schema.\n */\n",
|
|
6188
|
+
"excerptTokens": [
|
|
6189
|
+
{
|
|
6190
|
+
"kind": "Content",
|
|
6191
|
+
"text": "definition: "
|
|
6192
|
+
},
|
|
6193
|
+
{
|
|
6194
|
+
"kind": "Reference",
|
|
6195
|
+
"text": "ChatToolDefinition",
|
|
6196
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatToolDefinition:interface"
|
|
6197
|
+
},
|
|
6198
|
+
{
|
|
6199
|
+
"kind": "Content",
|
|
6200
|
+
"text": ";"
|
|
6201
|
+
}
|
|
6202
|
+
],
|
|
6203
|
+
"isReadonly": false,
|
|
6204
|
+
"isOptional": false,
|
|
6205
|
+
"releaseTag": "Beta",
|
|
6206
|
+
"name": "definition",
|
|
6207
|
+
"propertyTypeTokenRange": {
|
|
6208
|
+
"startIndex": 1,
|
|
6209
|
+
"endIndex": 2
|
|
6210
|
+
}
|
|
6211
|
+
},
|
|
6212
|
+
{
|
|
6213
|
+
"kind": "PropertySignature",
|
|
6214
|
+
"canonicalReference": "@genesislcap/ai-assistant!ToolFoldResult#handler:member",
|
|
6215
|
+
"docComment": "/**\n * The facade handler — a single-entry map keyed by the fold name. Spread this into your agent's `toolHandlers`. Inner tool handlers are NOT included here — they are encapsulated inside the fold metadata and installed by the driver only when the fold opens.\n */\n",
|
|
6216
|
+
"excerptTokens": [
|
|
6217
|
+
{
|
|
6218
|
+
"kind": "Content",
|
|
6219
|
+
"text": "handler: "
|
|
6220
|
+
},
|
|
6221
|
+
{
|
|
6222
|
+
"kind": "Reference",
|
|
6223
|
+
"text": "ChatToolHandlers",
|
|
6224
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatToolHandlers:type"
|
|
6225
|
+
},
|
|
6226
|
+
{
|
|
6227
|
+
"kind": "Content",
|
|
6228
|
+
"text": ";"
|
|
6229
|
+
}
|
|
6230
|
+
],
|
|
6231
|
+
"isReadonly": false,
|
|
6232
|
+
"isOptional": false,
|
|
6233
|
+
"releaseTag": "Beta",
|
|
6234
|
+
"name": "handler",
|
|
6235
|
+
"propertyTypeTokenRange": {
|
|
6236
|
+
"startIndex": 1,
|
|
6237
|
+
"endIndex": 2
|
|
6238
|
+
}
|
|
6239
|
+
}
|
|
6240
|
+
],
|
|
6241
|
+
"extendsTokenRanges": []
|
|
6242
|
+
},
|
|
6243
|
+
{
|
|
6244
|
+
"kind": "Interface",
|
|
6245
|
+
"canonicalReference": "@genesislcap/ai-assistant!ToolTreeNode:interface",
|
|
6246
|
+
"docComment": "/**\n * A tool entry in the expanded debug tree. Folds are represented as nodes with a `tools` array; regular tools have none.\n *\n * @beta\n */\n",
|
|
6247
|
+
"excerptTokens": [
|
|
6248
|
+
{
|
|
6249
|
+
"kind": "Content",
|
|
6250
|
+
"text": "export interface ToolTreeNode extends "
|
|
6251
|
+
},
|
|
6252
|
+
{
|
|
6253
|
+
"kind": "Reference",
|
|
6254
|
+
"text": "ChatToolDefinition",
|
|
6255
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatToolDefinition:interface"
|
|
6256
|
+
},
|
|
6257
|
+
{
|
|
6258
|
+
"kind": "Content",
|
|
6259
|
+
"text": " "
|
|
6260
|
+
}
|
|
6261
|
+
],
|
|
6262
|
+
"fileUrlPath": "src/utils/tool-fold.ts",
|
|
6263
|
+
"releaseTag": "Beta",
|
|
6264
|
+
"name": "ToolTreeNode",
|
|
6265
|
+
"preserveMemberOrder": false,
|
|
6266
|
+
"members": [
|
|
6267
|
+
{
|
|
6268
|
+
"kind": "PropertySignature",
|
|
6269
|
+
"canonicalReference": "@genesislcap/ai-assistant!ToolTreeNode#tools:member",
|
|
6270
|
+
"docComment": "/**\n * Present when this tool is a fold — contains its inner tools recursively expanded.\n */\n",
|
|
6271
|
+
"excerptTokens": [
|
|
6272
|
+
{
|
|
6273
|
+
"kind": "Content",
|
|
6274
|
+
"text": "tools?: "
|
|
6275
|
+
},
|
|
6276
|
+
{
|
|
6277
|
+
"kind": "Reference",
|
|
6278
|
+
"text": "ToolTreeNode",
|
|
6279
|
+
"canonicalReference": "@genesislcap/ai-assistant!ToolTreeNode:interface"
|
|
6280
|
+
},
|
|
6281
|
+
{
|
|
6282
|
+
"kind": "Content",
|
|
6283
|
+
"text": "[]"
|
|
6284
|
+
},
|
|
6285
|
+
{
|
|
6286
|
+
"kind": "Content",
|
|
6287
|
+
"text": ";"
|
|
6288
|
+
}
|
|
6289
|
+
],
|
|
6290
|
+
"isReadonly": false,
|
|
6291
|
+
"isOptional": true,
|
|
6292
|
+
"releaseTag": "Beta",
|
|
6293
|
+
"name": "tools",
|
|
6294
|
+
"propertyTypeTokenRange": {
|
|
6295
|
+
"startIndex": 1,
|
|
6296
|
+
"endIndex": 3
|
|
6297
|
+
}
|
|
6298
|
+
}
|
|
6299
|
+
],
|
|
6300
|
+
"extendsTokenRanges": [
|
|
6301
|
+
{
|
|
6302
|
+
"startIndex": 1,
|
|
6303
|
+
"endIndex": 2
|
|
6304
|
+
}
|
|
6305
|
+
]
|
|
5722
6306
|
}
|
|
5723
6307
|
]
|
|
5724
6308
|
}
|