@genesislcap/ai-assistant 15.98.4 → 15.99.1
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 +1 -1
- package/dist/ai-assistant.d.ts +9 -0
- package/dist/chat-driver.cjs +371 -67
- package/dist/chat-driver.cjs.map +3 -3
- package/dist/chat-driver.mjs +369 -67
- package/dist/chat-driver.mjs.map +3 -3
- package/dist/custom-elements.json +7362 -7270
- package/dist/dts/chat-driver-node.d.ts +1 -1
- package/dist/dts/chat-driver-node.d.ts.map +1 -1
- package/dist/dts/components/chat-driver/chat-driver.constants.d.ts +25 -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.map +1 -1
- package/dist/dts/config/config.d.ts +9 -0
- package/dist/dts/config/config.d.ts.map +1 -1
- package/dist/dts/react.d.ts +9 -9
- package/dist/esm/chat-driver-node.js +1 -1
- package/dist/esm/components/chat-driver/chat-driver.constants.js +31 -0
- package/dist/esm/components/chat-driver/chat-driver.js +81 -5
- package/dist/esm/state/debug-event-log.js +2 -2
- package/dist/react.cjs +6 -6
- package/dist/react.mjs +5 -5
- package/package.json +17 -17
|
@@ -20732,7 +20732,7 @@
|
|
|
20732
20732
|
{
|
|
20733
20733
|
"kind": "TypeAlias",
|
|
20734
20734
|
"canonicalReference": "@genesislcap/ai-assistant!FinishGuardInput:type",
|
|
20735
|
-
"docComment": "/**\n * Optional per-agent hook consulted when a model reply in the tool loop carries no tool call, so the turn would end. Lets the agent hold the turn open with a note (\"your change is not applied yet …\"), or end it and release the agent. See {@link FinishGuardVerdict}.\n *\n * Return `undefined` (or throw) to end the turn as if there were no hook. Not consulted on a closing call, nor after a tool handler released the agent earlier in the turn. A continuation spends a tool-loop iteration, so `maxToolIterations` also bounds a guard that never says `'end'`: on the last iteration (`ctx.canContinue === false`) a `'continue'` ends the turn, though a release is still honoured. Use `ctx.continuations` for a tighter per-turn cap. A turn stopped while the hook is pending ends as stopped, whatever it answers.\n *\n * On a sub-agent, which succeeds only by calling `completeSubAgent`, prose is never an answer: `'end'` gives up (the sub-agent fails, as it does today), `release` is ignored, and when the hook answers nothing (or there is no hook) the driver holds the turn itself with a completion nudge, asking for the completion call (`driverNote: 'completion-nudge'`), up to twice per turn.\n *\n * @beta\n */\n",
|
|
20735
|
+
"docComment": "/**\n * Optional per-agent hook consulted when a model reply in the tool loop carries no tool call, so the turn would end. Lets the agent hold the turn open with a note (\"your change is not applied yet …\"), or end it and release the agent. See {@link FinishGuardVerdict}.\n *\n * Return `undefined` (or throw) to end the turn as if there were no hook. Not consulted on a closing call, nor after a tool handler released the agent earlier in the turn. A continuation spends a tool-loop iteration, so `maxToolIterations` also bounds a guard that never says `'end'`: on the last iteration (`ctx.canContinue === false`) a `'continue'` ends the turn, though a release is still honoured. Use `ctx.continuations` for a tighter per-turn cap. A turn stopped while the hook is pending ends as stopped, whatever it answers.\n *\n * On a sub-agent, which succeeds only by calling `completeSubAgent`, prose is never an answer: `'end'` gives up (the sub-agent fails, as it does today), `release` is ignored, and when the hook answers nothing (or there is no hook) the driver holds the turn itself with a completion nudge, asking for the completion call (`driverNote: 'completion-nudge'`), up to twice per turn.\n *\n * On a parent agent whose turn forced a tool call (`toolChoice: 'required'` or `{ tool }`) but was sent as `auto` because the model rejects forcing (`responseMeta.toolChoiceDowngraded`), the same applies: when the hook answers nothing (or there is no hook) the driver asks for the call (`driverNote: 'forced-tool-nudge'`, naming the tool when the turn was `{ tool }`), up to twice in a row (a forced call that comes back with its call starts the count again). An explicit `'end'` lets the prose stand. A downgraded `{ tool }` turn that calls only other tools is not a prose reply, so this hook is not consulted: the driver answers each of those calls with a refusal naming the pinned tool instead of running it, against the same cap (the completion nudge's cap on a sub-agent).\n *\n * @beta\n */\n",
|
|
20736
20736
|
"excerptTokens": [
|
|
20737
20737
|
{
|
|
20738
20738
|
"kind": "Content",
|
package/dist/ai-assistant.d.ts
CHANGED
|
@@ -5142,6 +5142,15 @@ export declare interface FinishGuardContext extends SystemPromptContext {
|
|
|
5142
5142
|
* answers nothing (or there is no hook) the driver holds the turn itself with a completion nudge,
|
|
5143
5143
|
* asking for the completion call (`driverNote: 'completion-nudge'`), up to twice per turn.
|
|
5144
5144
|
*
|
|
5145
|
+
* On a parent agent whose turn forced a tool call (`toolChoice: 'required'` or `{ tool }`) but was
|
|
5146
|
+
* sent as `auto` because the model rejects forcing (`responseMeta.toolChoiceDowngraded`), the same
|
|
5147
|
+
* applies: when the hook answers nothing (or there is no hook) the driver asks for the call
|
|
5148
|
+
* (`driverNote: 'forced-tool-nudge'`, naming the tool when the turn was `{ tool }`), up to twice in a
|
|
5149
|
+
* row (a forced call that comes back with its call starts the count again). An explicit `'end'` lets the prose stand. A downgraded `{ tool }` turn that calls only other
|
|
5150
|
+
* tools is not a prose reply, so this hook is not consulted: the driver answers each of those calls
|
|
5151
|
+
* with a refusal naming the pinned tool instead of running it, against the same cap (the completion
|
|
5152
|
+
* nudge's cap on a sub-agent).
|
|
5153
|
+
*
|
|
5145
5154
|
* @beta
|
|
5146
5155
|
*/
|
|
5147
5156
|
export declare type FinishGuardInput = (ctx: FinishGuardContext) => FinishGuardVerdict | undefined | Promise<FinishGuardVerdict | undefined>;
|