@restatedev/agents 0.11.2 → 0.12.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 +189 -808
- package/dist/pi/factory.d.ts +73 -0
- package/dist/pi/factory.d.ts.map +1 -0
- package/dist/pi/factory.js +145 -0
- package/dist/pi/factory.js.map +1 -0
- package/dist/pi/index.d.ts +5 -129
- package/dist/pi/index.d.ts.map +1 -1
- package/dist/pi/index.js +31 -571
- package/dist/pi/index.js.map +1 -1
- package/dist/pi/keepalive.d.ts +3 -16
- package/dist/pi/keepalive.d.ts.map +1 -1
- package/dist/pi/keepalive.js +38 -41
- package/dist/pi/keepalive.js.map +1 -1
- package/dist/pi/left.d.ts +16 -0
- package/dist/pi/left.d.ts.map +1 -0
- package/dist/pi/left.js +23 -0
- package/dist/pi/left.js.map +1 -0
- package/dist/pi/storage.d.ts +19 -76
- package/dist/pi/storage.d.ts.map +1 -1
- package/dist/pi/storage.js +50 -368
- package/dist/pi/storage.js.map +1 -1
- package/dist/pi/tools.d.ts +12 -0
- package/dist/pi/tools.d.ts.map +1 -0
- package/dist/pi/tools.js +70 -0
- package/dist/pi/tools.js.map +1 -0
- package/package.json +11 -254
- package/src/pi/factory.ts +231 -0
- package/src/pi/index.ts +31 -759
- package/src/pi/keepalive.ts +46 -56
- package/src/pi/left.ts +52 -0
- package/src/pi/storage.ts +75 -409
- package/src/pi/tools.ts +78 -0
- package/dist/agentlib/agent.d.ts +0 -32
- package/dist/agentlib/agent.d.ts.map +0 -1
- package/dist/agentlib/agent.js +0 -174
- package/dist/agentlib/agent.js.map +0 -1
- package/dist/agentlib/index.d.ts +0 -5
- package/dist/agentlib/index.d.ts.map +0 -1
- package/dist/agentlib/index.js +0 -15
- package/dist/agentlib/index.js.map +0 -1
- package/dist/agentlib/messages.d.ts +0 -39
- package/dist/agentlib/messages.d.ts.map +0 -1
- package/dist/agentlib/messages.js +0 -177
- package/dist/agentlib/messages.js.map +0 -1
- package/dist/agentlib/model.d.ts +0 -31
- package/dist/agentlib/model.d.ts.map +0 -1
- package/dist/agentlib/model.js +0 -140
- package/dist/agentlib/model.js.map +0 -1
- package/dist/agentlib/options.d.ts +0 -58
- package/dist/agentlib/options.d.ts.map +0 -1
- package/dist/agentlib/options.js +0 -2
- package/dist/agentlib/options.js.map +0 -1
- package/dist/agentlib/runtime.d.ts +0 -37
- package/dist/agentlib/runtime.d.ts.map +0 -1
- package/dist/agentlib/runtime.js +0 -216
- package/dist/agentlib/runtime.js.map +0 -1
- package/dist/agentlib/state.d.ts +0 -114
- package/dist/agentlib/state.d.ts.map +0 -1
- package/dist/agentlib/state.js +0 -52
- package/dist/agentlib/state.js.map +0 -1
- package/dist/agentlib/steering.d.ts +0 -23
- package/dist/agentlib/steering.d.ts.map +0 -1
- package/dist/agentlib/steering.js +0 -48
- package/dist/agentlib/steering.js.map +0 -1
- package/dist/agentlib/tools.d.ts +0 -33
- package/dist/agentlib/tools.d.ts.map +0 -1
- package/dist/agentlib/tools.js +0 -245
- package/dist/agentlib/tools.js.map +0 -1
- package/dist/agentlib/turn.d.ts +0 -82
- package/dist/agentlib/turn.d.ts.map +0 -1
- package/dist/agentlib/turn.js +0 -253
- package/dist/agentlib/turn.js.map +0 -1
- package/dist/calls.d.ts +0 -90
- package/dist/calls.d.ts.map +0 -1
- package/dist/calls.js +0 -241
- package/dist/calls.js.map +0 -1
- package/dist/claude/index.d.ts +0 -106
- package/dist/claude/index.d.ts.map +0 -1
- package/dist/claude/index.js +0 -386
- package/dist/claude/index.js.map +0 -1
- package/dist/client.d.ts +0 -90
- package/dist/client.d.ts.map +0 -1
- package/dist/client.js +0 -88
- package/dist/client.js.map +0 -1
- package/dist/common.d.ts +0 -410
- package/dist/common.d.ts.map +0 -1
- package/dist/common.js +0 -563
- package/dist/common.js.map +0 -1
- package/dist/companion.d.ts +0 -286
- package/dist/companion.d.ts.map +0 -1
- package/dist/companion.js +0 -463
- package/dist/companion.js.map +0 -1
- package/dist/conversation.d.ts +0 -576
- package/dist/conversation.d.ts.map +0 -1
- package/dist/conversation.js +0 -1476
- package/dist/conversation.js.map +0 -1
- package/dist/deepseek/barriers.d.ts +0 -11
- package/dist/deepseek/barriers.d.ts.map +0 -1
- package/dist/deepseek/barriers.js +0 -36
- package/dist/deepseek/barriers.js.map +0 -1
- package/dist/deepseek/index.d.ts +0 -97
- package/dist/deepseek/index.d.ts.map +0 -1
- package/dist/deepseek/index.js +0 -603
- package/dist/deepseek/index.js.map +0 -1
- package/dist/deepseek/persistence.d.ts +0 -83
- package/dist/deepseek/persistence.d.ts.map +0 -1
- package/dist/deepseek/persistence.js +0 -262
- package/dist/deepseek/persistence.js.map +0 -1
- package/dist/index.d.ts +0 -14
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -17
- package/dist/index.js.map +0 -1
- package/dist/langgraph/checkpointer.d.ts +0 -52
- package/dist/langgraph/checkpointer.d.ts.map +0 -1
- package/dist/langgraph/checkpointer.js +0 -477
- package/dist/langgraph/checkpointer.js.map +0 -1
- package/dist/langgraph/context.d.ts +0 -10
- package/dist/langgraph/context.d.ts.map +0 -1
- package/dist/langgraph/context.js +0 -21
- package/dist/langgraph/context.js.map +0 -1
- package/dist/langgraph/errors.d.ts +0 -16
- package/dist/langgraph/errors.d.ts.map +0 -1
- package/dist/langgraph/errors.js +0 -30
- package/dist/langgraph/errors.js.map +0 -1
- package/dist/langgraph/graph.d.ts +0 -25
- package/dist/langgraph/graph.d.ts.map +0 -1
- package/dist/langgraph/graph.js +0 -378
- package/dist/langgraph/graph.js.map +0 -1
- package/dist/langgraph/index.d.ts +0 -119
- package/dist/langgraph/index.d.ts.map +0 -1
- package/dist/langgraph/index.js +0 -325
- package/dist/langgraph/index.js.map +0 -1
- package/dist/langgraph/keepalive.d.ts +0 -16
- package/dist/langgraph/keepalive.d.ts.map +0 -1
- package/dist/langgraph/keepalive.js +0 -51
- package/dist/langgraph/keepalive.js.map +0 -1
- package/dist/langgraph/nodes.d.ts +0 -71
- package/dist/langgraph/nodes.d.ts.map +0 -1
- package/dist/langgraph/nodes.js +0 -148
- package/dist/langgraph/nodes.js.map +0 -1
- package/dist/messages.d.ts +0 -18
- package/dist/messages.d.ts.map +0 -1
- package/dist/messages.js +0 -182
- package/dist/messages.js.map +0 -1
- package/dist/object.d.ts +0 -213
- package/dist/object.d.ts.map +0 -1
- package/dist/object.js +0 -309
- package/dist/object.js.map +0 -1
- package/dist/opencode/db.d.ts +0 -81
- package/dist/opencode/db.d.ts.map +0 -1
- package/dist/opencode/db.js +0 -249
- package/dist/opencode/db.js.map +0 -1
- package/dist/opencode/index.d.ts +0 -184
- package/dist/opencode/index.d.ts.map +0 -1
- package/dist/opencode/index.js +0 -1079
- package/dist/opencode/index.js.map +0 -1
- package/dist/output.d.ts +0 -25
- package/dist/output.d.ts.map +0 -1
- package/dist/output.js +0 -99
- package/dist/output.js.map +0 -1
- package/dist/pi/commits.d.ts +0 -6
- package/dist/pi/commits.d.ts.map +0 -1
- package/dist/pi/commits.js +0 -3
- package/dist/pi/commits.js.map +0 -1
- package/dist/steering.d.ts +0 -32
- package/dist/steering.d.ts.map +0 -1
- package/dist/steering.js +0 -45
- package/dist/steering.js.map +0 -1
- package/dist/tools.d.ts +0 -267
- package/dist/tools.d.ts.map +0 -1
- package/dist/tools.js +0 -305
- package/dist/tools.js.map +0 -1
- package/dist/webhook.d.ts +0 -71
- package/dist/webhook.d.ts.map +0 -1
- package/dist/webhook.js +0 -102
- package/dist/webhook.js.map +0 -1
- package/src/agentlib/README.md +0 -229
- package/src/agentlib/agent.ts +0 -216
- package/src/agentlib/index.ts +0 -16
- package/src/agentlib/messages.ts +0 -207
- package/src/agentlib/model.ts +0 -156
- package/src/agentlib/options.ts +0 -62
- package/src/agentlib/runtime.ts +0 -252
- package/src/agentlib/state.ts +0 -93
- package/src/agentlib/steering.ts +0 -53
- package/src/agentlib/tools.ts +0 -355
- package/src/agentlib/turn.ts +0 -302
- package/src/calls.ts +0 -333
- package/src/claude/README.md +0 -107
- package/src/claude/index.ts +0 -487
- package/src/client.ts +0 -187
- package/src/common.ts +0 -766
- package/src/companion.ts +0 -675
- package/src/conversation.ts +0 -1799
- package/src/deepseek/README.md +0 -202
- package/src/deepseek/barriers.ts +0 -63
- package/src/deepseek/index.ts +0 -740
- package/src/deepseek/persistence.ts +0 -337
- package/src/index.ts +0 -41
- package/src/langgraph/README.md +0 -199
- package/src/langgraph/checkpointer.ts +0 -614
- package/src/langgraph/context.ts +0 -27
- package/src/langgraph/errors.ts +0 -26
- package/src/langgraph/graph.ts +0 -422
- package/src/langgraph/index.ts +0 -500
- package/src/langgraph/keepalive.ts +0 -58
- package/src/langgraph/nodes.ts +0 -247
- package/src/messages.ts +0 -244
- package/src/object.ts +0 -454
- package/src/opencode/README.md +0 -249
- package/src/opencode/db.ts +0 -387
- package/src/opencode/index.ts +0 -1339
- package/src/output.ts +0 -116
- package/src/pi/README.md +0 -174
- package/src/pi/commits.ts +0 -7
- package/src/steering.ts +0 -68
- package/src/tools.ts +0 -515
- package/src/webhook.ts +0 -161
package/dist/conversation.d.ts
DELETED
|
@@ -1,576 +0,0 @@
|
|
|
1
|
-
import * as restate from '@restatedev/sessions';
|
|
2
|
-
import type { Database, DatabaseReader, DatabaseWriter, SqlParam, Transaction } from '@restatedev/sessions';
|
|
3
|
-
import { Schema } from '@restatedev/sessions/internal';
|
|
4
|
-
import { type Check, type Window } from './common.ts';
|
|
5
|
-
/** The transcript: one row per turn. */
|
|
6
|
-
export declare const TURNS = "restate_agent_turns";
|
|
7
|
-
/** The trajectories: the items of each turn but its prompt. */
|
|
8
|
-
export declare const STEPS = "restate_agent_items";
|
|
9
|
-
/** Where the conversation starts: its first position, the last `seq` given, and the summary of the earliest turns. */
|
|
10
|
-
export declare const START = "restate_agent_conversation_start";
|
|
11
|
-
/** The Python SDK's snapshots, which this package does not take (docs/plan.md, D3): created, never written. */
|
|
12
|
-
export declare const SNAPSHOTS = "restate_agent_snapshots";
|
|
13
|
-
/**
|
|
14
|
-
* The messages steered to a turn that it took ({@link Turn.steer}): which
|
|
15
|
-
* items of the trajectories they are, by position, and their ids, each
|
|
16
|
-
* stored once.
|
|
17
|
-
*/
|
|
18
|
-
export declare const STEERED = "restate_agent_steers";
|
|
19
|
-
/** The conversation's tables: the Python SDK's, step for step, so that both SDKs read each other's. */
|
|
20
|
-
export declare const SCHEMA: Schema;
|
|
21
|
-
/**
|
|
22
|
-
* How a turn ended: answered by its run, or closed: stopped, failed for
|
|
23
|
-
* good, refused by the model's provider, or ended by another invocation once
|
|
24
|
-
* its own was gone ({@link ENDED}).
|
|
25
|
-
*/
|
|
26
|
-
export type Status = 'answered' | 'cancelled' | 'failed' | 'refused' | 'ended';
|
|
27
|
-
/** A tool call an item makes. */
|
|
28
|
-
export interface Call {
|
|
29
|
-
id: string;
|
|
30
|
-
name: string;
|
|
31
|
-
input: unknown;
|
|
32
|
-
}
|
|
33
|
-
/** A tool call's result an item holds: an error if `error`, or if its output starts with `Error: `. */
|
|
34
|
-
export interface Result {
|
|
35
|
-
id: string;
|
|
36
|
-
output: string;
|
|
37
|
-
error?: boolean;
|
|
38
|
-
}
|
|
39
|
-
/** Whether `result` is an error: marked as one, or `Error: <message>`. */
|
|
40
|
-
export declare const failed: (result: Result) => boolean;
|
|
41
|
-
/** What an item is, as {@link Items.read} reads it. */
|
|
42
|
-
export interface Parsed {
|
|
43
|
-
/** The role and text of a message; none for any other item. */
|
|
44
|
-
said?: ['user' | 'assistant', string];
|
|
45
|
-
calls?: Call[];
|
|
46
|
-
results?: Result[];
|
|
47
|
-
}
|
|
48
|
-
/** A framework's items: how the core stores, reads and makes them. */
|
|
49
|
-
export interface Items<I> {
|
|
50
|
-
/** `item` as it is stored: its JSON, most often. */
|
|
51
|
-
dump(item: I): string;
|
|
52
|
-
/**
|
|
53
|
-
* The item `dump` stored as `stored`. It throws for a row it cannot read
|
|
54
|
-
* (another framework's), which {@link loadItem} makes a terminal error.
|
|
55
|
-
*/
|
|
56
|
-
load(stored: string): I;
|
|
57
|
-
/** The item of a prompt (the user's message). */
|
|
58
|
-
prompt(text: string): I;
|
|
59
|
-
/** The item of an assistant's message of `text`, from `agent` if known: it closes a run, and is an earlier turn's answer as the model sees it. */
|
|
60
|
-
reply(text: string, agent?: string): I;
|
|
61
|
-
/** The items that give each call its result, as text: they close a run's cut-off calls. */
|
|
62
|
-
results(results: [Call, string][]): I[];
|
|
63
|
-
/** What `item` says, and the tool calls and results it holds. */
|
|
64
|
-
read(item: I): Parsed;
|
|
65
|
-
/** The summary of the earliest turns in the framework's own form; by default a user's message and "Understood." */
|
|
66
|
-
summary?(text: string): I[];
|
|
67
|
-
/**
|
|
68
|
-
* The item of the message `steerId` steered to a turn, with `text`, to
|
|
69
|
-
* tell it apart from a prompt in the framework's runs (LangGraph's has
|
|
70
|
-
* the id `steer:<steerId>`); by default, a prompt's item.
|
|
71
|
-
*/
|
|
72
|
-
steered?(text: string, steerId: string): I;
|
|
73
|
-
/**
|
|
74
|
-
* For a framework whose history is in a store of its own that the turn is
|
|
75
|
-
* copied from after the fact (OpenCode's): bring that store to the turn's
|
|
76
|
-
* end, and copy what it has of the turn into it, before the turn is
|
|
77
|
-
* closed with `status`. `answerOnce` and `settle` call it before each
|
|
78
|
-
* close, so that the framework's store is closed first, then the copy,
|
|
79
|
-
* then the turn. A framework whose copy is in its own transaction (pi,
|
|
80
|
-
* DeepSeek) has none.
|
|
81
|
-
*/
|
|
82
|
-
settleOwn?(ctx: restate.SessionContext, turn: Turn<I>, status: Status): Promise<void>;
|
|
83
|
-
/** For a framework with a database of its own beside `ctx.db`: forget it, as `clear` empties the key's. */
|
|
84
|
-
erase?(ctx: restate.SessionContext): Promise<void>;
|
|
85
|
-
}
|
|
86
|
-
/** What the user's message with the summary of the earliest turns starts with. */
|
|
87
|
-
export declare const SUMMARY = "A summary of our conversation so far:\n\n";
|
|
88
|
-
/** The items that give the model `summary`, of the earliest turns: `items.summary`'s, if it has one. */
|
|
89
|
-
export declare const summaryItems: <I>(items: Items<I>, summary: string) => I[];
|
|
90
|
-
/** The item of the message `steerId` steered to a turn, with `text`: `items.steered`'s, if it has one. */
|
|
91
|
-
export declare const steeredItem: <I>(items: Items<I>, text: string, steerId: string) => I;
|
|
92
|
-
/** An item of the conversation, with what it is part of. */
|
|
93
|
-
export interface Entry<I> {
|
|
94
|
-
/** Its position: the conversation is ordered by it. */
|
|
95
|
-
n: number;
|
|
96
|
-
item: I;
|
|
97
|
-
/** The id of the prompt it is, if it is one: it starts a turn. */
|
|
98
|
-
prompt?: string;
|
|
99
|
-
/** On a prompt: its turn's answer, once it has one. */
|
|
100
|
-
answer?: string;
|
|
101
|
-
/** The id of the model's reply it is part of: the position of the reply's first item. */
|
|
102
|
-
reply?: number;
|
|
103
|
-
/** The agent that gave the reply; on a prompt, the agent the conversation is with after its turn. */
|
|
104
|
-
agent?: string;
|
|
105
|
-
/** What `item` is, read once (`Items.read`), as the conversation loads or appends it. */
|
|
106
|
-
parsed?: Parsed;
|
|
107
|
-
/** The position of its turn's prompt. */
|
|
108
|
-
turn?: number;
|
|
109
|
-
/** On a prompt: the framework's state as of its turn's end, if it carries one. */
|
|
110
|
-
carried?: string;
|
|
111
|
-
/** On a prompt: how its turn ended, once it did. */
|
|
112
|
-
status?: Status;
|
|
113
|
-
/** On a prompt: the position of its turn's answer, its last message of the assistant. */
|
|
114
|
-
answeredAt?: number;
|
|
115
|
-
/** On a prompt: the `seq` given as its turn was answered. */
|
|
116
|
-
answeredSeq?: number;
|
|
117
|
-
/** On a prompt: when its turn's row was stored, in Unix milliseconds. */
|
|
118
|
-
askedAt?: number;
|
|
119
|
-
/** The id of the steered message it is, if it is one: a message of the user that its turn took at a step. */
|
|
120
|
-
steer?: string;
|
|
121
|
-
/**
|
|
122
|
-
* On a prompt of the transcript: the messages steered to its turn that it
|
|
123
|
-
* took, in order, which the model sees between its message and its answer
|
|
124
|
-
* once the turn is before the window.
|
|
125
|
-
*/
|
|
126
|
-
steers?: Entry<I>[];
|
|
127
|
-
}
|
|
128
|
-
/** Where a conversation starts: its first position, the last `seq` given, and the summary of the earliest turns. */
|
|
129
|
-
export interface Start {
|
|
130
|
-
n: number;
|
|
131
|
-
seq: number;
|
|
132
|
-
summary?: string;
|
|
133
|
-
/** The position of the first turn after the summary: those before it are the summary, as the model sees them. */
|
|
134
|
-
summarized?: number;
|
|
135
|
-
}
|
|
136
|
-
/** Where the conversation in `db` starts, as `clear`, drops and summaries left it. */
|
|
137
|
-
export declare function startOf(db: DatabaseReader): Promise<Start>;
|
|
138
|
-
/** The last position of `db`'s rows (none if it has none), and the last `seq` they have (or 0). */
|
|
139
|
-
export declare function lastOf(db: DatabaseReader): Promise<[last: number | undefined, seq: number]>;
|
|
140
|
-
/** Where the next conversation starts, past the positions and `seq` of the one in `db`. */
|
|
141
|
-
export declare function nextStart(db: DatabaseReader): Promise<Start>;
|
|
142
|
-
/** Store `start` as where the conversation starts: in the transaction of `clear` that emptied it, say. */
|
|
143
|
-
export declare function restart(tx: DatabaseWriter, start: Start): Promise<void>;
|
|
144
|
-
/** The stored answer of prompt `promptId`, and how its turn ended, if it has one: one read, of the turn's row. */
|
|
145
|
-
export declare function answerIn(db: DatabaseReader, promptId: string): Promise<{
|
|
146
|
-
answer: string;
|
|
147
|
-
status: Status;
|
|
148
|
-
} | undefined>;
|
|
149
|
-
/** The index in `turns` (prompts, in order) of the first turn in `window` (see {@link Walk}). */
|
|
150
|
-
export declare function windowStart<I>(turns: readonly Entry<I>[], window: Window): number;
|
|
151
|
-
/** Runs its bodies one after another: writes that come at once (parallel tool calls') each get positions of their own. */
|
|
152
|
-
declare class Lock {
|
|
153
|
-
#private;
|
|
154
|
-
run<T>(body: () => Promise<T>): Promise<T>;
|
|
155
|
-
}
|
|
156
|
-
/**
|
|
157
|
-
* What a conversation and its turns share: the database, the next position
|
|
158
|
-
* and `seq`, and the writes' lock.
|
|
159
|
-
*
|
|
160
|
-
* In `answerOnce`'s run ({@link Conversation.hold}), a step that no tool
|
|
161
|
-
* waits for (a reply without tool calls, say) is held rather than written
|
|
162
|
-
* (`held`): every write writes the held rows first, in its own transaction,
|
|
163
|
-
* so that a turn's final reply commits with its answer, in one flush rather
|
|
164
|
-
* than two. A held row is in memory only: lost in a crash, it is made again
|
|
165
|
-
* by the retried attempt, which runs from what the database holds. So the
|
|
166
|
-
* run writes them ({@link Conversation.flush}) before anything another party
|
|
167
|
-
* sees or that outlives the attempt: a publish, a Restate call of the
|
|
168
|
-
* library, the attempt failing.
|
|
169
|
-
*
|
|
170
|
-
* After each write of steps that commits, the run makes what it was given
|
|
171
|
-
* to make then (`afterCommit`), if anything; not after held rows: they are
|
|
172
|
-
* no step that anyone waits for.
|
|
173
|
-
*/
|
|
174
|
-
declare class Ledger<I> {
|
|
175
|
-
/** The latest turn, if loaded whole: the only one that may be written. */
|
|
176
|
-
latest: Turn<I> | undefined;
|
|
177
|
-
/** Whether {@link Conversation.seal} closed the conversation to writes. */
|
|
178
|
-
closed: boolean;
|
|
179
|
-
readonly lock: Lock;
|
|
180
|
-
/** The ids of the tool calls made in the loaded turns. */
|
|
181
|
-
readonly ids: Set<string>;
|
|
182
|
-
/** Whether a call's id an earlier call has was logged: once is enough. */
|
|
183
|
-
warned: boolean;
|
|
184
|
-
readonly db: Database;
|
|
185
|
-
readonly items: Items<I>;
|
|
186
|
-
start: Start;
|
|
187
|
-
/** The turns' prompts, in order: the latest is the latest turn's. */
|
|
188
|
-
readonly transcript: Entry<I>[];
|
|
189
|
-
/** The next position to give. */
|
|
190
|
-
next: number;
|
|
191
|
-
/** The last `seq` given. */
|
|
192
|
-
seq: number;
|
|
193
|
-
/** Whether steps that no tool waits for are held ({@link Conversation.hold}), rather than written at once. */
|
|
194
|
-
holds: boolean;
|
|
195
|
-
/**
|
|
196
|
-
* The rows of the trajectories given positions but not written yet, in
|
|
197
|
-
* order of position ({@link INSERT_STEP}'s parameters): the next write
|
|
198
|
-
* writes them first.
|
|
199
|
-
*/
|
|
200
|
-
held: SqlParam[][];
|
|
201
|
-
/** What the run makes after each write of steps that commits ({@link Conversation.hold}), if anything. */
|
|
202
|
-
afterCommit: (() => Promise<void>) | undefined;
|
|
203
|
-
constructor(db: Database, items: Items<I>, start: Start, transcript: Entry<I>[], next: number, seq: number);
|
|
204
|
-
/** Note a tool call's id, and log one that an earlier call has (once). */
|
|
205
|
-
called(callId: string): void;
|
|
206
|
-
checkOpen(): void;
|
|
207
|
-
/**
|
|
208
|
-
* Run `body`, a write of the conversation, in one transaction; then
|
|
209
|
-
* `done`, its bookkeeping (the entries it added, an answer's assignment);
|
|
210
|
-
* hold the lock. `body` takes the next position and `seq` as it runs, and
|
|
211
|
-
* sets them past its rows (a framework's copy into the turn, `copyIn`,
|
|
212
|
-
* waits for it, and takes those after).
|
|
213
|
-
*
|
|
214
|
-
* A write and its bookkeeping happen together, or not at all. A commit is
|
|
215
|
-
* stored once it is handed to Restate, before it waits for Restate's
|
|
216
|
-
* acknowledgment: a wait that fails then (one the SDK cancels, say) leaves
|
|
217
|
-
* the rows stored, so `done` runs, and the error is thrown after it.
|
|
218
|
-
* Without it, the ledger would lack what the database holds: a close would
|
|
219
|
-
* give a stored result again, miss a stored call, or close an answered
|
|
220
|
-
* turn. Only a `body` that fails, or a commit the engine refused (SQL: it
|
|
221
|
-
* rolled back), writes nothing, and changes nothing.
|
|
222
|
-
*/
|
|
223
|
-
write(body: (tx: Transaction) => Promise<void>, done?: () => void): Promise<void>;
|
|
224
|
-
/** Whether `entries`, which are read, are held rather than written: no tool call nor result, in a run that holds. */
|
|
225
|
-
holdsBack(entries: readonly Entry<I>[]): boolean;
|
|
226
|
-
/** The agent and the framework's state that the latest answered turn left. */
|
|
227
|
-
carried(): [agent: string | undefined, carried: string | undefined];
|
|
228
|
-
}
|
|
229
|
-
/**
|
|
230
|
-
* One turn of the conversation: its prompt, and what its run stored to
|
|
231
|
-
* answer it. A turn's rows are read and written here, and only here: its
|
|
232
|
-
* open tool calls, its replies and its final reply are this turn's, never
|
|
233
|
-
* another's. Only the latest turn, while it has no answer, can be written:
|
|
234
|
-
* by its own run, or by whoever closes it ({@link Turn.close}), once its run
|
|
235
|
-
* is gone.
|
|
236
|
-
*/
|
|
237
|
-
export declare class Turn<I> {
|
|
238
|
-
#private;
|
|
239
|
-
/** The turn's row: its prompt, and once it has them, its status, answer and what it carried. */
|
|
240
|
-
readonly prompt: Entry<I>;
|
|
241
|
-
/**
|
|
242
|
-
* What the model is told after the turn's prompt, where it reads it last
|
|
243
|
-
* (`output`'s ask for JSON), and never stored: the conversation keeps the
|
|
244
|
-
* prompt as it was asked. `history()` adds it to the prompt; a framework
|
|
245
|
-
* that keeps its own history adds it to the prompt it is given.
|
|
246
|
-
*/
|
|
247
|
-
reminder: string | undefined;
|
|
248
|
-
constructor(ledger: Ledger<I>, prompt: Entry<I>, items?: Entry<I>[]);
|
|
249
|
-
/** The turn's id: its prompt's. */
|
|
250
|
-
get id(): string;
|
|
251
|
-
/** The turn's position: its prompt's, the id of its user's message. */
|
|
252
|
-
get n(): number;
|
|
253
|
-
/** How the turn ended, or none while it is being answered. */
|
|
254
|
-
get status(): Status | undefined;
|
|
255
|
-
/** The turn's answer, once it has one: the run's, or the note that closed it. */
|
|
256
|
-
get answer(): string | undefined;
|
|
257
|
-
/** The turn's entries, in order: its prompt, then its items. */
|
|
258
|
-
get entries(): readonly Entry<I>[];
|
|
259
|
-
/** The turn's items, in order: the model's replies, the tool calls' results... */
|
|
260
|
-
get items(): readonly Entry<I>[];
|
|
261
|
-
/** The ids of the model's replies in the turn, in order. */
|
|
262
|
-
replies(): number[];
|
|
263
|
-
/** The id of the model's reply the turn ends with, if it ends with one. */
|
|
264
|
-
lastReply(): number | undefined;
|
|
265
|
-
/** The entries of the model's reply `reply`, in order: they follow one another, from position `reply`. */
|
|
266
|
-
replyEntries(reply: number): readonly Entry<I>[];
|
|
267
|
-
/** The agent that gave the model's reply `reply`. */
|
|
268
|
-
agentOf(reply: number): string | undefined;
|
|
269
|
-
/** The text of the model's reply the turn ends with, if it ends the run: text, and no tool calls. */
|
|
270
|
-
finalReply(): string | undefined;
|
|
271
|
-
/** The turn's tool calls without a result, in the order they were made. */
|
|
272
|
-
openCalls(): Call[];
|
|
273
|
-
/**
|
|
274
|
-
* The turn's latest message of the user that asks for its answer: its
|
|
275
|
-
* prompt, or the message that asked again ({@link askAgain}). A framework
|
|
276
|
-
* that runs from a message of its own runs from this one. A steered
|
|
277
|
-
* message ({@link steer}) is not one: the model reads it within the run,
|
|
278
|
-
* which goes on from the same ask.
|
|
279
|
-
*/
|
|
280
|
-
latestAsk(): Entry<I>;
|
|
281
|
-
/** The messages steered to the turn that it took, in order. */
|
|
282
|
-
steered(): Entry<I>[];
|
|
283
|
-
/** Whether the turn's tool call `callId` has a result. */
|
|
284
|
-
hasResult(callId: string): boolean;
|
|
285
|
-
/** Whether tool call `callId` has its result: not an error, unless it is `failed`, its own. */
|
|
286
|
-
stored(callId: string, failedWith?: string): boolean;
|
|
287
|
-
/**
|
|
288
|
-
* Append `items` (a tool's results, say) to the turn, in one transaction;
|
|
289
|
-
* appends at once are each stored after the ones before. In
|
|
290
|
-
* `answerOnce`'s run, a write that commits makes what the run makes after
|
|
291
|
-
* a commit ({@link Conversation.hold}).
|
|
292
|
-
*/
|
|
293
|
-
append(...items: I[]): Promise<void>;
|
|
294
|
-
/**
|
|
295
|
-
* Append the model's reply, of `items` (given by `agent`), to the turn,
|
|
296
|
-
* and return its id. In `answerOnce`'s run, a reply with tool calls
|
|
297
|
-
* commits, and makes what the run makes after a commit; one without is
|
|
298
|
-
* held, and commits with the next write (the answer, for the final reply).
|
|
299
|
-
*/
|
|
300
|
-
appendReply(items: I[], agent?: string): Promise<number>;
|
|
301
|
-
/**
|
|
302
|
-
* Make what the turn's run makes after each write of its steps that
|
|
303
|
-
* commits ({@link Conversation.hold}), if anything, for a framework that
|
|
304
|
-
* copies steps into the turn in a transaction of its own ({@link copyIn}):
|
|
305
|
-
* call it once that transaction has committed with steps that a tool
|
|
306
|
-
* waits for (a reply with tool calls, the tools' results), and await it
|
|
307
|
-
* before the framework's next step. `append` and `appendReply` make it
|
|
308
|
-
* themselves. What it makes is the business of whoever runs the turn
|
|
309
|
-
* (`answerOnce` takes it from the `chat` turn it runs in, if any, which
|
|
310
|
-
* publishes there); the conversation only calls it.
|
|
311
|
-
*/
|
|
312
|
-
stepsCommitted(): Promise<void>;
|
|
313
|
-
/**
|
|
314
|
-
* Ask the model again within the turn, with `text`: a message of the user
|
|
315
|
-
* that is a step of the turn, not a turn of its own (the transcript, and
|
|
316
|
-
* the summary view, have the turn's prompt and its answer).
|
|
317
|
-
*/
|
|
318
|
-
askAgain(text: string): Promise<void>;
|
|
319
|
-
/**
|
|
320
|
-
* Store the steered `messages` that the turn has not taken yet as steps of
|
|
321
|
-
* the turn, and return their items. Each is stored once, by its id, as a
|
|
322
|
-
* message of the user (as `Items.steered` makes it) after the turn's steps
|
|
323
|
-
* before: the model reads it in its next request, and in every turn's
|
|
324
|
-
* history after, between the turn's message and its answer. `taken` adds
|
|
325
|
-
* what goes out with the transaction that stores them (the companion's
|
|
326
|
-
* `taken`), which commits once.
|
|
327
|
-
*
|
|
328
|
-
* `going` tells whether the turn still goes on: once it has the ledger, a
|
|
329
|
-
* turn that stopped meanwhile takes none, which are then answered as turns
|
|
330
|
-
* of their own. A store under way finishes even if the turn stops: the
|
|
331
|
-
* turn then closes after it, at the positions after its messages, and the
|
|
332
|
-
* messages are its own (stopped with it).
|
|
333
|
-
*/
|
|
334
|
-
steer(messages: readonly {
|
|
335
|
-
id: string;
|
|
336
|
-
text: string;
|
|
337
|
-
}[], taken: (tx: Transaction, ids: string[]) => void, going: () => boolean): Promise<I[]>;
|
|
338
|
-
/**
|
|
339
|
-
* Keep what the turn carries to the turns after it, stored with its
|
|
340
|
-
* answer: `agent`, the agent the conversation is with (by default, its
|
|
341
|
-
* latest reply's, else the previous turn's); `state`, the framework's own,
|
|
342
|
-
* as text (by default, the previous turn's).
|
|
343
|
-
*/
|
|
344
|
-
carry({ agent, state }: {
|
|
345
|
-
agent?: string;
|
|
346
|
-
state?: string;
|
|
347
|
-
}): void;
|
|
348
|
-
/**
|
|
349
|
-
* Drop the turn's reply `reply`, and what came after it, to ask the model
|
|
350
|
-
* again: one range delete. The positions are given again, so the new
|
|
351
|
-
* reply's messages take the dropped ones' ids; the `seq` is kept, so that
|
|
352
|
-
* a client's cursor still sees them. A steered message after the reply is
|
|
353
|
-
* dropped too: it is no longer the turn's, so the agent's `steered`
|
|
354
|
-
* answers it as a turn of its own.
|
|
355
|
-
*/
|
|
356
|
-
drop(reply: number): Promise<void>;
|
|
357
|
-
/**
|
|
358
|
-
* Store the turn's `answer`, how it ended (`status`) and what it carries,
|
|
359
|
-
* in one update of its row. The answer's message is the assistant's
|
|
360
|
-
* message the turn ends with; a turn that ends otherwise gets `answer` as
|
|
361
|
-
* its reply first, and an empty answer gets none.
|
|
362
|
-
*
|
|
363
|
-
* The final reply, which is held (see {@link Ledger}), commits with the
|
|
364
|
-
* update: in one transaction.
|
|
365
|
-
*/
|
|
366
|
-
answered(answer: string, status?: Status): Promise<void>;
|
|
367
|
-
/**
|
|
368
|
-
* Close the turn (stopped, refused, failed, or ended once its invocation is
|
|
369
|
-
* gone) with `note`. Each tool call without a result gets one: the error
|
|
370
|
-
* its Restate call answered with, a note that it did happen if it
|
|
371
|
-
* answered, or else `note` ({@link cutOffResult}). Then `note` is the
|
|
372
|
-
* turn's last message, and its answer. The calls' outcomes are those of the
|
|
373
|
-
* invocation that made the turn's prompt: this one, or an earlier one whose
|
|
374
|
-
* calls are still stored. A turn with its answer has nothing to close.
|
|
375
|
-
*/
|
|
376
|
-
close(ctx: restate.SessionContext, status: Status, note: string): Promise<void>;
|
|
377
|
-
/** Whether the turn's run can write it: the latest, without an answer, not being closed, of a conversation not sealed. */
|
|
378
|
-
get writable(): boolean;
|
|
379
|
-
/**
|
|
380
|
-
* Copy a framework's own messages into the turn, in `tx`, a transaction of
|
|
381
|
-
* the framework's own store (its write of these messages): the rows commit
|
|
382
|
-
* with it, so the copy is made once, however often the attempt crashes.
|
|
383
|
-
* Each of `items` is a reply of the model (`reply`, from `agent`), a
|
|
384
|
-
* message steered to the turn that its framework placed (`steer`, its id:
|
|
385
|
-
* stored once, in the steered messages' table too), or another item (a
|
|
386
|
-
* tool's result). For a framework that keeps its own history. It cannot wait for the turn's other writes inside `tx`, which
|
|
387
|
-
* holds the database: it takes its positions, and adds its entries, at
|
|
388
|
-
* once, so that a close after it sees them and writes after them. A turn
|
|
389
|
-
* being closed (or closed) takes no copy: its close says how it ended.
|
|
390
|
-
* Whether it copied.
|
|
391
|
-
*/
|
|
392
|
-
copyIn(tx: DatabaseWriter, items: {
|
|
393
|
-
item: I;
|
|
394
|
-
reply?: boolean;
|
|
395
|
-
agent?: string;
|
|
396
|
-
steer?: string;
|
|
397
|
-
}[]): Promise<boolean>;
|
|
398
|
-
}
|
|
399
|
-
/** How many turns of the transcript a load reads at a time, from the latest back. */
|
|
400
|
-
export declare const PAGE = 64;
|
|
401
|
-
/**
|
|
402
|
-
* The item stored as `stored`, or a terminal error: a retry would read the
|
|
403
|
-
* same row again. A row that `items` cannot read was stored by an agent of
|
|
404
|
-
* another framework under the same name, or by another version of this one.
|
|
405
|
-
*/
|
|
406
|
-
export declare function loadItem<I>(items: Items<I>, stored: string): I;
|
|
407
|
-
/**
|
|
408
|
-
* Whether a turn took the steered message `steerId`, in a database that may
|
|
409
|
-
* not have the conversation yet (the agent's `steered` asks, which may be
|
|
410
|
-
* the key's first handler).
|
|
411
|
-
*/
|
|
412
|
-
export declare function steerStored(db: DatabaseReader, steerId: string): Promise<boolean>;
|
|
413
|
-
/**
|
|
414
|
-
* The conversation in the key's database, loaded once and kept in step with
|
|
415
|
-
* it: the transcript, every turn's prompt and answer, as far back as a turn
|
|
416
|
-
* needs it; and the window, the latest turns whole ({@link Turn}). Only the
|
|
417
|
-
* latest turn is written; the conversation composes the turns into what the
|
|
418
|
-
* model gets ({@link history}), until {@link seal} closes it.
|
|
419
|
-
*
|
|
420
|
-
* Tool calls and their results are matched by the call's id, within a turn:
|
|
421
|
-
* each call's id must be its own, as model providers make them. A call whose
|
|
422
|
-
* id an earlier call has is logged, as its result may be taken for the
|
|
423
|
-
* other's.
|
|
424
|
-
*/
|
|
425
|
-
export declare class Conversation<I> {
|
|
426
|
-
#private;
|
|
427
|
-
readonly items: Items<I>;
|
|
428
|
-
readonly budget: number;
|
|
429
|
-
/** How many of the latest answered turns are loaded whole: the window's size. */
|
|
430
|
-
readonly size: Window;
|
|
431
|
-
readonly db: Database;
|
|
432
|
-
constructor(db: Database, items: Items<I>, entries: Entry<I>[], { start, transcript, last, seq, budget, window, }?: {
|
|
433
|
-
start?: Start;
|
|
434
|
-
transcript?: Entry<I>[];
|
|
435
|
-
last?: number;
|
|
436
|
-
seq?: number;
|
|
437
|
-
budget?: number;
|
|
438
|
-
window?: Window;
|
|
439
|
-
});
|
|
440
|
-
/**
|
|
441
|
-
* Load the conversation from `db`: the transcript, and the window's turns
|
|
442
|
-
* whole (the latest also while it has no answer). The transcript is read
|
|
443
|
-
* from the latest turn back, in pages, until it holds the window and the
|
|
444
|
-
* turns before it that `budget` holds, or the summary's start; with
|
|
445
|
-
* `complete`, from the summary's start whatever the budget (to summarize
|
|
446
|
-
* it).
|
|
447
|
-
*/
|
|
448
|
-
static load<I>(db: Database, items: Items<I>, window?: Window, budget?: number, { complete }?: {
|
|
449
|
-
complete?: boolean;
|
|
450
|
-
}): Promise<Conversation<I>>;
|
|
451
|
-
/** The turns' prompts, in order, from the first the load read. Each has its turn's status, answer and what it carried. */
|
|
452
|
-
get transcript(): readonly Entry<I>[];
|
|
453
|
-
/** The window's turns, whole, in order: the last of them is the latest turn. */
|
|
454
|
-
get turns(): readonly Turn<I>[];
|
|
455
|
-
/** The latest turn: the one being answered, during a run. */
|
|
456
|
-
get turn(): Turn<I>;
|
|
457
|
-
/** The latest turn if it is being answered: it has no answer yet. */
|
|
458
|
-
running(): Turn<I> | undefined;
|
|
459
|
-
/** The window's turns, flat, in order: each prompt, then its turn's items. */
|
|
460
|
-
get entries(): Entry<I>[];
|
|
461
|
-
/** The summary of the turns before the transcript, if they have one (and the transcript is after them). */
|
|
462
|
-
get summary(): string | undefined;
|
|
463
|
-
/** Whether {@link seal} closed the conversation to writes. */
|
|
464
|
-
get closed(): boolean;
|
|
465
|
-
/** The answer of the turn of prompt `promptId`, if the transcript has it and it has one. */
|
|
466
|
-
answerOf(promptId: string): string | undefined;
|
|
467
|
-
/** The agent the conversation is with, and the framework's state, as the latest answered turn left them. */
|
|
468
|
-
carried(): [agent: string | undefined, carried: string | undefined];
|
|
469
|
-
/** Whether a turn of the window holds the result of tool call `callId`: the model was given it. */
|
|
470
|
-
knowsResult(callId: string): boolean;
|
|
471
|
-
/** The position of the window's first turn: the turns before it are in the transcript only. */
|
|
472
|
-
window(): number;
|
|
473
|
-
/** The turns before the window that {@link history} gives the model: the latest that `budget` holds. */
|
|
474
|
-
earlier(): Entry<I>[];
|
|
475
|
-
/** Whether the turns before the next turn's window outgrow `budget`: then they are summarized. */
|
|
476
|
-
overflowing(): boolean;
|
|
477
|
-
/**
|
|
478
|
-
* The turns to summarize, and the position of the first turn after them,
|
|
479
|
-
* if any are to be: the turns before the next turn's window but the latest
|
|
480
|
-
* that half the `budget` holds, which stay as they are.
|
|
481
|
-
*/
|
|
482
|
-
toSummarize(): [Entry<I>[], number] | undefined;
|
|
483
|
-
/**
|
|
484
|
-
* The items the model gets, in order, the one place where turns are made
|
|
485
|
-
* one flat list: the summary of the earliest turns, if they have one; the
|
|
486
|
-
* turns before the window, as their prompts, the messages steered to them
|
|
487
|
-
* and their answers, as many of the latest as `budget` holds; then the
|
|
488
|
-
* window's turns, whole.
|
|
489
|
-
*/
|
|
490
|
-
history(): I[];
|
|
491
|
-
/** Start the turn of prompt `promptId`, with `text`, and return it: the latest turn now. */
|
|
492
|
-
ask(promptId: string, text: string): Promise<Turn<I>>;
|
|
493
|
-
/**
|
|
494
|
-
* Hold the steps that no tool waits for, rather than write each at once:
|
|
495
|
-
* the next write writes them (see {@link Ledger}). For a run that writes
|
|
496
|
-
* them ({@link flush}) before each publish and Restate call of the
|
|
497
|
-
* library, and before its attempt fails: `answerOnce`'s. A conversation
|
|
498
|
-
* that is written otherwise (step by step, from handlers of its own)
|
|
499
|
-
* writes each step as it comes.
|
|
500
|
-
*
|
|
501
|
-
* `afterCommit`, if given, is awaited after each write of steps that
|
|
502
|
-
* commits (a reply with tool calls, the tools' results, with the rows held
|
|
503
|
-
* before them), outside the lock. The conversation does not know what it
|
|
504
|
-
* does: `answerOnce` passes what the turn it runs in asked for, if
|
|
505
|
-
* anything (a followed `chat` turn's publish), so that a framework's
|
|
506
|
-
* integration publishes nothing by hand. Held rows make none, nor does
|
|
507
|
-
* `flush`. A framework that copies its steps in a transaction of its own
|
|
508
|
-
* makes it with {@link Turn.stepsCommitted}.
|
|
509
|
-
*/
|
|
510
|
-
hold(afterCommit?: () => Promise<void>): void;
|
|
511
|
-
/**
|
|
512
|
-
* Write the rows the turn's run holds (see {@link Ledger}), if any: before
|
|
513
|
-
* whatever another party sees, or outlives the attempt. A publish tells
|
|
514
|
-
* the clients to read them, and a Restate call is made once, while a held
|
|
515
|
-
* row would be lost in a crash.
|
|
516
|
-
*/
|
|
517
|
-
flush(): Promise<void>;
|
|
518
|
-
/**
|
|
519
|
-
* Close the conversation to writes, once those under way are stored: for
|
|
520
|
-
* a stopped run, which (unwinding, or a promise of it left behind) stores
|
|
521
|
-
* nothing more once its turn is closed.
|
|
522
|
-
*/
|
|
523
|
-
seal(): Promise<void>;
|
|
524
|
-
}
|
|
525
|
-
/**
|
|
526
|
-
* A framework's run: from the conversation, whose latest turn
|
|
527
|
-
* (`conversation.turn`) is the one to answer (just asked, or left unfinished
|
|
528
|
-
* by an earlier attempt), to its answer. It reads what the model gets from
|
|
529
|
-
* the conversation (`history()`), and stores each step in the turn as it
|
|
530
|
-
* goes. A tool's error fails the attempt.
|
|
531
|
-
*/
|
|
532
|
-
export type Run<I> = (conversation: Conversation<I>) => Promise<string>;
|
|
533
|
-
/** The id of the invocation that made prompt `promptId` (see `nextPromptId`). */
|
|
534
|
-
export declare const invocationOf: (promptId: string) => string;
|
|
535
|
-
/**
|
|
536
|
-
* Answer the prompt `text` with a framework's `run`, once. The prompt's id is
|
|
537
|
-
* the invocation's (`nextPromptId`), so a retried attempt returns the stored
|
|
538
|
-
* answer (reading only it), or goes on with the turn. A turn an earlier
|
|
539
|
-
* invocation left without an answer is closed first ({@link ENDED}): that
|
|
540
|
-
* invocation is gone. `items` must be the agent's `messages` view's, if it
|
|
541
|
-
* has one: one framework per agent.
|
|
542
|
-
*
|
|
543
|
-
* `window` and `budget` are the agent's unless given; with `ownHistory`
|
|
544
|
-
* (the framework keeps the model's history itself), none: only the latest
|
|
545
|
-
* turns are read, and the agent's `summarize` is not for it. With `check`, the
|
|
546
|
-
* answer is checked: a message it returns asks the model again with it,
|
|
547
|
-
* once, as a step of the turn ({@link Turn.askAgain}), and the turn's answer
|
|
548
|
-
* is the reply to that. With `reminder`, the model is told it after the
|
|
549
|
-
* prompt ({@link Turn.reminder}), which is stored as it was asked. With
|
|
550
|
-
* `schemas`, the framework's own tables are applied with the conversation's.
|
|
551
|
-
*/
|
|
552
|
-
export declare function answerOnce<I>(ctx: restate.SessionContext, text: string, items: Items<I>, run: Run<I>, options?: {
|
|
553
|
-
window?: Window;
|
|
554
|
-
budget?: number;
|
|
555
|
-
check?: Check;
|
|
556
|
-
reminder?: string;
|
|
557
|
-
ownHistory?: boolean;
|
|
558
|
-
schemas?: readonly Schema[];
|
|
559
|
-
}): Promise<string>;
|
|
560
|
-
/**
|
|
561
|
-
* Close the latest turn (`ended`) if invocation `invocationId` made it and
|
|
562
|
-
* left it without an answer: the companion has this done when it finds the
|
|
563
|
-
* turn's invocation gone. A turn with its answer (closed by a newer turn
|
|
564
|
-
* first, say) is left as it is. Whether it closed the turn.
|
|
565
|
-
*/
|
|
566
|
-
export declare function settle<I>(ctx: restate.SessionContext, items: Items<I>, invocationId: string): Promise<boolean>;
|
|
567
|
-
/**
|
|
568
|
-
* Summarize the turns before the window that outgrow the agent's budget,
|
|
569
|
-
* with the agent's `summarize`. The summary, of the earlier summary and those
|
|
570
|
-
* turns, takes their place in what the model sees; the turns stay stored,
|
|
571
|
-
* and `messages` shows them as before. A summary that fails is logged, and
|
|
572
|
-
* tried again after the next turn. Whether it summarized.
|
|
573
|
-
*/
|
|
574
|
-
export declare function compact<I>(ctx: restate.SessionContext, items: Items<I>): Promise<boolean>;
|
|
575
|
-
export {};
|
|
576
|
-
//# sourceMappingURL=conversation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../src/conversation.ts"],"names":[],"mappings":"AA4CA,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,cAAc,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC5G,OAAO,EAA+B,MAAM,EAAE,MAAM,+BAA+B,CAAC;AAEpF,OAAO,EAQL,KAAK,KAAK,EAYV,KAAK,MAAM,EACZ,MAAM,aAAa,CAAC;AAErB,wCAAwC;AACxC,eAAO,MAAM,KAAK,wBAAwB,CAAC;AAC3C,+DAA+D;AAC/D,eAAO,MAAM,KAAK,wBAAwB,CAAC;AAC3C,sHAAsH;AACtH,eAAO,MAAM,KAAK,qCAAqC,CAAC;AACxD,+GAA+G;AAC/G,eAAO,MAAM,SAAS,4BAA4B,CAAC;AACnD;;;;GAIG;AACH,eAAO,MAAM,OAAO,yBAAyB,CAAC;AAE9C,uGAAuG;AACvG,eAAO,MAAM,MAAM,QA4CjB,CAAC;AAEH;;;;GAIG;AACH,MAAM,MAAM,MAAM,GAAG,UAAU,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAC;AAE/E,iCAAiC;AACjC,MAAM,WAA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