agentfootprint 14.3.1 → 14.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -110,9 +110,10 @@ exclusive capabilities or measured superiority in answer accuracy.
|
|
|
110
110
|
npm install agentfootprint footprintjs
|
|
111
111
|
```
|
|
112
112
|
|
|
113
|
-
Agentfootprint 14
|
|
114
|
-
`^
|
|
115
|
-
|
|
113
|
+
Agentfootprint 14 works with FootprintJS 11 (from 11.1.0) and FootprintJS 12:
|
|
114
|
+
the peer range is `^11.1.0 || ^12.0.0`. It also needs Foottrace `^1.11.1`.
|
|
115
|
+
FootprintJS is a peer dependency, so install it explicitly as shown above.
|
|
116
|
+
These are stable release ranges.
|
|
116
117
|
|
|
117
118
|
```typescript
|
|
118
119
|
import { Agent, defineTool } from 'agentfootprint';
|
|
@@ -41,8 +41,17 @@ export interface TurnChanges {
|
|
|
41
41
|
/**
|
|
42
42
|
* Runs the turn. Resolves to nothing: the output, the pause and the checkpoint
|
|
43
43
|
* stay with the library. Rejects with the run's own error when the run fails.
|
|
44
|
-
*
|
|
45
|
-
*
|
|
44
|
+
* When the run completed, paused, failed or was cancelled, it settles only
|
|
45
|
+
* after the run's finalizers have settled inside the wrapper's context, and
|
|
46
|
+
* any recording due by then has been filed. A paused run files none yet: its
|
|
47
|
+
* run-scoped resources stay open and its one recording is filed when the
|
|
48
|
+
* resumed turn ends. When the turn
|
|
49
|
+
* fails in the agent's own work around a run that settled (a typed run that
|
|
50
|
+
* refuses a pause, for example), it rejects first, and those finalizers run
|
|
51
|
+
* after the wrapper returns, outside its context, so the end stays failed.
|
|
52
|
+
* The stored recording covers the turn up to this point: a failure the wrapper
|
|
53
|
+
* raises after `proceed` resolves goes on the live
|
|
54
|
+
* `agentfootprint.agent.around_turn_failed` event only, not into the record.
|
|
46
55
|
* Call it once, while the wrapper is still running.
|
|
47
56
|
*/
|
|
48
57
|
export type ProceedWithTurn = (changes?: TurnChanges) => Promise<void>;
|
|
@@ -41,8 +41,17 @@ export interface TurnChanges {
|
|
|
41
41
|
/**
|
|
42
42
|
* Runs the turn. Resolves to nothing: the output, the pause and the checkpoint
|
|
43
43
|
* stay with the library. Rejects with the run's own error when the run fails.
|
|
44
|
-
*
|
|
45
|
-
*
|
|
44
|
+
* When the run completed, paused, failed or was cancelled, it settles only
|
|
45
|
+
* after the run's finalizers have settled inside the wrapper's context, and
|
|
46
|
+
* any recording due by then has been filed. A paused run files none yet: its
|
|
47
|
+
* run-scoped resources stay open and its one recording is filed when the
|
|
48
|
+
* resumed turn ends. When the turn
|
|
49
|
+
* fails in the agent's own work around a run that settled (a typed run that
|
|
50
|
+
* refuses a pause, for example), it rejects first, and those finalizers run
|
|
51
|
+
* after the wrapper returns, outside its context, so the end stays failed.
|
|
52
|
+
* The stored recording covers the turn up to this point: a failure the wrapper
|
|
53
|
+
* raises after `proceed` resolves goes on the live
|
|
54
|
+
* `agentfootprint.agent.around_turn_failed` event only, not into the record.
|
|
46
55
|
* Call it once, while the wrapper is still running.
|
|
47
56
|
*/
|
|
48
57
|
export type ProceedWithTurn = (changes?: TurnChanges) => Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/aroundTurn/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC;IACrB,QAAQ,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAAC;IACpC,QAAQ,C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E,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,UAAU,CAAC;AAE7C;;;;;;GAMG;AACH,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC;CACzB;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAEvE;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACzB,+EAA+E;IAC/E,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,wEAAwE;IACxE,MAAM,CAAC,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,eAAe,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACzE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentfootprint",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.4.0",
|
|
4
4
|
"description": "The explainable agent framework \u2014 backtrack a wrong answer to the exact context that caused it (evidence, not guesses). Built on footprintjs.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -396,7 +396,7 @@
|
|
|
396
396
|
"@modelcontextprotocol/sdk": "*",
|
|
397
397
|
"@opentelemetry/api": "*",
|
|
398
398
|
"@yarflam/potion-base-8m": "*",
|
|
399
|
-
"footprintjs": "^11.1.0",
|
|
399
|
+
"footprintjs": "^11.1.0 || ^12.0.0",
|
|
400
400
|
"google-auth-library": "*",
|
|
401
401
|
"ioredis": "*",
|
|
402
402
|
"jose": "*",
|