@theoremjs/agents 0.3.5-next.938.g3cbd0dd → 0.3.5-next.939.g227994b
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.
|
@@ -70,7 +70,7 @@ export interface ProfileImageSpec {
|
|
|
70
70
|
*/
|
|
71
71
|
includeText?: boolean;
|
|
72
72
|
}
|
|
73
|
-
import type { InboxItem,
|
|
73
|
+
import type { InboxItem, PolicyChoice, PolicyMoment } from '../conversation/types.js';
|
|
74
74
|
import type { DecisionModelBinding, ModelBinding } from './protocols/binding.js';
|
|
75
75
|
import type { ProviderHostOptions } from './protocols/runtime.js';
|
|
76
76
|
export type { DecisionModelBinding, ModelBinding };
|
|
@@ -1278,6 +1278,11 @@ export interface LateResult {
|
|
|
1278
1278
|
export interface LateResultItem extends InboxItem<'late_result'> {
|
|
1279
1279
|
outcome: ToolOperationOutcome;
|
|
1280
1280
|
}
|
|
1281
|
+
/** A moment the decider's policy is asked at, and whose chat it is. */
|
|
1282
|
+
export interface LateResultsPolicyMoment extends PolicyMoment {
|
|
1283
|
+
/** The `host` of the request the reply runs for, as `ended` gets it: whose chat it is. */
|
|
1284
|
+
host: unknown;
|
|
1285
|
+
}
|
|
1281
1286
|
/** A background call ended, and what Theorem lets the decider do about it. */
|
|
1282
1287
|
export interface LateResultEnded {
|
|
1283
1288
|
/** The `host` of the request that started the call. */
|
|
@@ -1306,7 +1311,7 @@ export interface LateResultsDecider {
|
|
|
1306
1311
|
* (`opening: 'wake'`, to say whether the page wakes it). It must change nothing. A result it
|
|
1307
1312
|
* leaves waits for a later reply; one it gives up is reported once to `onError`.
|
|
1308
1313
|
*/
|
|
1309
|
-
policy:
|
|
1314
|
+
policy(items: readonly LateResultItem[], moment: LateResultsPolicyMoment): PolicyChoice | Promise<PolicyChoice>;
|
|
1310
1315
|
/** A background call ended. Use `wake` to reply from the server, with no page open. */
|
|
1311
1316
|
ended?(ended: LateResultEnded): void | Promise<void>;
|
|
1312
1317
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theoremjs/agents",
|
|
3
|
-
"version": "0.3.5-next.
|
|
3
|
+
"version": "0.3.5-next.939.g227994b",
|
|
4
4
|
"description": "A flat TypeScript agent kernel for typed profiles, deterministic turn execution, registered tools, provider adapters, guardrails, and host-injected traces.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|