narrarium-engine 0.1.9 → 0.1.10
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 +242 -22
- package/dist/ai/budget.d.ts +18 -2
- package/dist/ai/budget.d.ts.map +1 -1
- package/dist/ai/budget.js +9 -2
- package/dist/ai/budget.js.map +1 -1
- package/dist/ai/fetch-client.d.ts +13 -6
- package/dist/ai/fetch-client.d.ts.map +1 -1
- package/dist/ai/fetch-client.js +26 -3
- package/dist/ai/fetch-client.js.map +1 -1
- package/dist/ai/request.d.ts +1 -1
- package/dist/ai/request.d.ts.map +1 -1
- package/dist/ai/request.js +31 -5
- package/dist/ai/request.js.map +1 -1
- package/dist/ai/routing.d.ts.map +1 -1
- package/dist/ai/routing.js +1 -1
- package/dist/ai/routing.js.map +1 -1
- package/dist/ai/types.d.ts +29 -2
- package/dist/ai/types.d.ts.map +1 -1
- package/dist/ai/types.js +5 -2
- package/dist/ai/types.js.map +1 -1
- package/dist/autopilot/chapter-state.d.ts +19 -0
- package/dist/autopilot/chapter-state.d.ts.map +1 -0
- package/dist/autopilot/chapter-state.js +31 -0
- package/dist/autopilot/chapter-state.js.map +1 -0
- package/dist/autopilot/errors.d.ts +2 -1
- package/dist/autopilot/errors.d.ts.map +1 -1
- package/dist/autopilot/errors.js +17 -1
- package/dist/autopilot/errors.js.map +1 -1
- package/dist/autopilot/estimate-math.d.ts +19 -0
- package/dist/autopilot/estimate-math.d.ts.map +1 -0
- package/dist/autopilot/estimate-math.js +74 -0
- package/dist/autopilot/estimate-math.js.map +1 -0
- package/dist/autopilot/estimate-texts.d.ts +40 -0
- package/dist/autopilot/estimate-texts.d.ts.map +1 -0
- package/dist/autopilot/estimate-texts.js +130 -0
- package/dist/autopilot/estimate-texts.js.map +1 -0
- package/dist/autopilot/estimate.d.ts +303 -0
- package/dist/autopilot/estimate.d.ts.map +1 -0
- package/dist/autopilot/estimate.js +887 -0
- package/dist/autopilot/estimate.js.map +1 -0
- package/dist/autopilot/frozen.d.ts +1 -4
- package/dist/autopilot/frozen.d.ts.map +1 -1
- package/dist/autopilot/frozen.js +13 -25
- package/dist/autopilot/frozen.js.map +1 -1
- package/dist/autopilot/outline-change.d.ts +69 -0
- package/dist/autopilot/outline-change.d.ts.map +1 -0
- package/dist/autopilot/outline-change.js +42 -0
- package/dist/autopilot/outline-change.js.map +1 -0
- package/dist/autopilot/outline-check.d.ts +1 -0
- package/dist/autopilot/outline-check.d.ts.map +1 -1
- package/dist/autopilot/outline-check.js +9 -6
- package/dist/autopilot/outline-check.js.map +1 -1
- package/dist/autopilot/outline-compose.d.ts +203 -0
- package/dist/autopilot/outline-compose.d.ts.map +1 -0
- package/dist/autopilot/outline-compose.js +492 -0
- package/dist/autopilot/outline-compose.js.map +1 -0
- package/dist/autopilot/presets.d.ts +36 -0
- package/dist/autopilot/presets.d.ts.map +1 -0
- package/dist/autopilot/presets.js +54 -0
- package/dist/autopilot/presets.js.map +1 -0
- package/dist/autopilot/runner.d.ts +44 -4
- package/dist/autopilot/runner.d.ts.map +1 -1
- package/dist/autopilot/runner.js +207 -16
- package/dist/autopilot/runner.js.map +1 -1
- package/dist/autopilot/session.d.ts +16 -6
- package/dist/autopilot/session.d.ts.map +1 -1
- package/dist/autopilot/session.js +24 -9
- package/dist/autopilot/session.js.map +1 -1
- package/dist/autopilot/speed.d.ts +30 -0
- package/dist/autopilot/speed.d.ts.map +1 -0
- package/dist/autopilot/speed.js +71 -0
- package/dist/autopilot/speed.js.map +1 -0
- package/dist/autopilot/state.d.ts +13 -2
- package/dist/autopilot/state.d.ts.map +1 -1
- package/dist/autopilot/state.js +48 -1
- package/dist/autopilot/state.js.map +1 -1
- package/dist/autopilot/types.d.ts +74 -9
- package/dist/autopilot/types.d.ts.map +1 -1
- package/dist/autopilot/types.js +11 -2
- package/dist/autopilot/types.js.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/server/client.d.ts +47 -6
- package/dist/server/client.d.ts.map +1 -1
- package/dist/server/client.js +81 -11
- package/dist/server/client.js.map +1 -1
- package/dist/server/protocol.d.ts +112 -1
- package/dist/server/protocol.d.ts.map +1 -1
- package/dist/server/protocol.js +33 -0
- package/dist/server/protocol.js.map +1 -1
- package/dist/util/text.d.ts +6 -0
- package/dist/util/text.d.ts.map +1 -1
- package/dist/util/text.js +21 -0
- package/dist/util/text.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"estimate-texts.js","sourceRoot":"","sources":["../../src/autopilot/estimate-texts.ts"],"names":[],"mappings":"AAEA,mHAAmH;AACnH,MAAM,gBAAgB,GAA4D;IAChF,EAAE,EAAE,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,2BAA2B,EAAE,2BAA2B,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,cAAc,EAAE;IAC1M,EAAE,EAAE,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,2BAA2B,EAAE,6BAA6B,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,eAAe,EAAE;CACpN,CAAC;AAEF,MAAM,UAAU,GAA0D;IACxE,EAAE,EAAE;QACF,OAAO,EAAE,SAAS;QAClB,oBAAoB,EAAE,uCAAuC;QAC7D,IAAI,EAAE,cAAc;QACpB,aAAa,EAAE,+BAA+B;QAC9C,aAAa,EAAE,oBAAoB;QACnC,MAAM,EAAE,oBAAoB;QAC5B,KAAK,EAAE,iBAAiB;QACxB,eAAe,EAAE,oBAAoB;QACrC,MAAM,EAAE,kCAAkC;QAC1C,iBAAiB,EAAE,q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,CAAC"}
|
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
import type { AiRuntimeConfig } from "../ai/config.js";
|
|
2
|
+
import type { AutopilotBrief, AutopilotOptions, AutopilotState } from "./types.js";
|
|
3
|
+
/** The capabilities of the router that the autopilot uses (`AI_CAPABILITIES`). */
|
|
4
|
+
export declare const ESTIMATE_CAPABILITIES: readonly ["autopilot", "director", "reader-evaluation", "reader-evaluation-summary", "review", "simple-tasks"];
|
|
5
|
+
export type EstimateCapability = (typeof ESTIMATE_CAPABILITIES)[number];
|
|
6
|
+
/**
|
|
7
|
+
* The kinds of call a run makes, in the order of the pipeline; the names are the ones the labels of the requests start with
|
|
8
|
+
* (`autopilot:concept`, `autopilot:scenes:3`, `reader-evaluation:…`, `director:book`). Two of them are made inside a step of another kind:
|
|
9
|
+
* `scene-summary` is asked by `write` and `repair`, after the scene.
|
|
10
|
+
*/
|
|
11
|
+
export declare const ESTIMATE_CALL_KINDS: readonly ["concept", "summarize-imported", "plan", "plan-reader", "plan-review", "scenes", "write", "scene-summary", "reader", "readers-summary", "specialists", "director-review", "repair", "consolidate", "final"];
|
|
12
|
+
export type EstimateCallKind = (typeof ESTIMATE_CALL_KINDS)[number];
|
|
13
|
+
/**
|
|
14
|
+
* The sizes the estimate assumes where it cannot know them, in words (a word is six characters, the space included). They are the estimate's own
|
|
15
|
+
* assumptions, not measures of your book: pass what you have measured in `context`, and what a run has really spent will show where they are wrong.
|
|
16
|
+
* A real model may be longer or shorter than the replies it assumes; the tests that check the estimate against the pipeline answer with replies of these sizes.
|
|
17
|
+
*/
|
|
18
|
+
export declare const ESTIMATE_TYPICAL: Readonly<{
|
|
19
|
+
/** The idea of the brief, when the author wrote none. */
|
|
20
|
+
ideaWords: 60;
|
|
21
|
+
/** What a book that is just begun holds in the files the concept reads: its description, the story design and the world context, all to be filled. */
|
|
22
|
+
freshBookWords: 34;
|
|
23
|
+
designWords: 700;
|
|
24
|
+
worldWords: 250;
|
|
25
|
+
/** The default ghostwriter profile (`defaultGhostwriter`): 906 characters, at six a word. What a book that did not write its own has. */
|
|
26
|
+
ghostwriterWords: 150;
|
|
27
|
+
/** The canon manifest: a line (kind, name, summary) for each entry, and a summary for the characters: about six characters and four other entries. */
|
|
28
|
+
canonWords: 270;
|
|
29
|
+
/** The rules of what may be revealed, which the writer and the reviewers read, and the lines of the secrets in the manifest and in the plan of the reveals. */
|
|
30
|
+
secretsWords: 105;
|
|
31
|
+
secretLineWords: 20;
|
|
32
|
+
revealsWords: 45;
|
|
33
|
+
/** The binding rules of the author and the evaluation style of the book (the whole block of a chapter's review; the review of the plan carries about half: the method and the severity). */
|
|
34
|
+
rulesWords: 0;
|
|
35
|
+
styleWords: 0;
|
|
36
|
+
/** The standing guidance of the director when the plan is approved, and what each chapter adds to it, up to `MAX_DIRECTOR_NOTES` notes. */
|
|
37
|
+
notesWords: 30;
|
|
38
|
+
noteWords: 25;
|
|
39
|
+
/** An entry of the author's outline. */
|
|
40
|
+
outlineEntryWords: 60;
|
|
41
|
+
/** One entry of the canon as the prompts that quote it give it (a heading and its body), and how many a scene, a repair and the specialists quote. */
|
|
42
|
+
canonEntryWords: 45;
|
|
43
|
+
canonEntriesScene: 4;
|
|
44
|
+
canonEntriesSpecialists: 6;
|
|
45
|
+
/**
|
|
46
|
+
* A chapter of the plan as a block (title, summary, purpose, point of view, key events) and as a line of a list (number, title, summary); and the line of a chapter that is
|
|
47
|
+
* closed, whose summary is the one the closing wrote (`consolidate`), a little longer than the plan's.
|
|
48
|
+
*/
|
|
49
|
+
chapterWords: 130;
|
|
50
|
+
chapterLineWords: 55;
|
|
51
|
+
closedLineWords: 64;
|
|
52
|
+
/** A scene of the plan as a block, and as a line. */
|
|
53
|
+
sceneWords: 110;
|
|
54
|
+
sceneLineWords: 25;
|
|
55
|
+
/** The story so far: what a chapter adds to it, and the length it is asked to stay under (`STORY_SO_FAR_TARGET_WORDS`). */
|
|
56
|
+
storyWordsPerChapter: 75;
|
|
57
|
+
storyWordsTarget: 900;
|
|
58
|
+
/**
|
|
59
|
+
* The longest a list of chapters is in a prompt: 24 000 characters (`OUTLINE_MAX_CHARS`). A list that does not fit keeps the `listFullLines` lines around the chapter it is
|
|
60
|
+
* about whole, and gives every other chapter a line of `titleLineWords`.
|
|
61
|
+
*/
|
|
62
|
+
listCapWords: 4000;
|
|
63
|
+
listFullLines: 30;
|
|
64
|
+
titleLineWords: 5;
|
|
65
|
+
/** The specialists' findings in a round, the proposals of the readers' summary, and the lines they make in the director's prompt. */
|
|
66
|
+
findings: 5;
|
|
67
|
+
findingWords: 55;
|
|
68
|
+
readerProposals: 4;
|
|
69
|
+
proposalWords: 35;
|
|
70
|
+
/** A reader as one line of the director's prompt, and a fix the director accepts as the repair is told it. */
|
|
71
|
+
readerLineWords: 55;
|
|
72
|
+
fixWords: 25;
|
|
73
|
+
/** A scene's summary. */
|
|
74
|
+
summaryWords: 35;
|
|
75
|
+
conceptWords: 1550;
|
|
76
|
+
chapterReplyWords: 125;
|
|
77
|
+
sceneReplyWords: 105;
|
|
78
|
+
planReactionWords: 100;
|
|
79
|
+
planReviewWords: 100;
|
|
80
|
+
readerWords: 150;
|
|
81
|
+
readersSummaryWords: 190;
|
|
82
|
+
findingReplyWords: 48;
|
|
83
|
+
directorBaseWords: 75;
|
|
84
|
+
decisionWords: 20;
|
|
85
|
+
consolidateBaseWords: 100;
|
|
86
|
+
recapSceneWords: 25;
|
|
87
|
+
importedSummaryWords: 60;
|
|
88
|
+
finalWords: 330;
|
|
89
|
+
}>;
|
|
90
|
+
/** The sizes of the files of the book, in words, when the host has measured them (each defaults to `ESTIMATE_TYPICAL`). */
|
|
91
|
+
export interface EstimateContext {
|
|
92
|
+
designWords?: number;
|
|
93
|
+
worldWords?: number;
|
|
94
|
+
ghostwriterWords?: number;
|
|
95
|
+
/** The director's profile (`director.md`): its default is the default profile's own size. */
|
|
96
|
+
directorWords?: number;
|
|
97
|
+
canonWords?: number;
|
|
98
|
+
secretsWords?: number;
|
|
99
|
+
rulesWords?: number;
|
|
100
|
+
notesWords?: number;
|
|
101
|
+
styleWords?: number;
|
|
102
|
+
}
|
|
103
|
+
/** What the model of a capability is: how it is called, what a request may hold, what it costs, how fast it writes. Nothing here is a secret. */
|
|
104
|
+
export interface EstimateModel {
|
|
105
|
+
model: string;
|
|
106
|
+
provider?: string;
|
|
107
|
+
underlyingModel?: string;
|
|
108
|
+
/** The window of the model: a prompt and its answer together. Not declared: not checked. */
|
|
109
|
+
maxInputTokens?: number;
|
|
110
|
+
/** The largest answer the model can give. */
|
|
111
|
+
maxOutputTokens?: number;
|
|
112
|
+
pricing?: {
|
|
113
|
+
inputPerMTok?: number;
|
|
114
|
+
cachedPerMTok?: number;
|
|
115
|
+
outputPerMTok?: number;
|
|
116
|
+
};
|
|
117
|
+
supportsReasoning?: boolean;
|
|
118
|
+
tokensPerSecond?: number;
|
|
119
|
+
}
|
|
120
|
+
export type EstimateCount = number | {
|
|
121
|
+
min?: number;
|
|
122
|
+
max?: number;
|
|
123
|
+
};
|
|
124
|
+
/**
|
|
125
|
+
* What the reviews of the run will be, when the host knows. Without it the estimate is an interval: from the least the pipeline does (every chapter approved at its
|
|
126
|
+
* first review, the plan at its first look) to the most (every round used, every scene repaired, the plan revised twice).
|
|
127
|
+
*/
|
|
128
|
+
export interface EstimateScenario {
|
|
129
|
+
/** Rounds of review of a chapter, from 1 to the director's `maxReviewRounds`. */
|
|
130
|
+
rounds?: EstimateCount;
|
|
131
|
+
/** Scenes repaired in a chapter, in all its rounds. */
|
|
132
|
+
repairs?: EstimateCount;
|
|
133
|
+
/** Times the director sends the plan back, from 0 to 2. */
|
|
134
|
+
planRevisions?: EstimateCount;
|
|
135
|
+
}
|
|
136
|
+
/** Where the book is: a resume, or chapters added to a book, counts only what is left. */
|
|
137
|
+
export interface EstimateProgress {
|
|
138
|
+
/** Chapters done (the first `chaptersDone` of the book). A chapter written halfway counts as whole. */
|
|
139
|
+
chaptersDone?: number;
|
|
140
|
+
/** Chapters of the approved plan (0 when there is no approved plan yet). */
|
|
141
|
+
planned?: number;
|
|
142
|
+
/** The concept is done. Not said: it is when there is a chapter or a plan. */
|
|
143
|
+
conceptDone?: boolean;
|
|
144
|
+
/** The director has judged the book as it is. */
|
|
145
|
+
finalDone?: boolean;
|
|
146
|
+
/** Chapters the author wrote that have no summary yet: each costs one call of the simple tasks. */
|
|
147
|
+
withoutSummary?: number;
|
|
148
|
+
/** Their words, in all (not said: the length of a chapter of the brief). */
|
|
149
|
+
withoutSummaryWords?: number;
|
|
150
|
+
}
|
|
151
|
+
export interface EstimateOutline {
|
|
152
|
+
/** Chapters the author wrote an entry for. */
|
|
153
|
+
entries?: number;
|
|
154
|
+
/** The number of the last of them. */
|
|
155
|
+
lastChapter?: number;
|
|
156
|
+
/** Their words, in all (not said: `ESTIMATE_TYPICAL.outlineEntryWords` for each). */
|
|
157
|
+
words?: number;
|
|
158
|
+
}
|
|
159
|
+
export interface EstimateInput {
|
|
160
|
+
/** The brief of the form: the chapters, the scenes of a chapter, the words of a scene, and the idea and the synopsis, which weigh in the prompts that carry them. */
|
|
161
|
+
brief?: Partial<AutopilotBrief>;
|
|
162
|
+
/** `readers`, `maxReaders`, `readersOnPlan` and `specialists` change the calls; the others (`pauseAfterPlan`, `chaptersPerRun`, the budgets…) do not. */
|
|
163
|
+
options?: Partial<AutopilotOptions>;
|
|
164
|
+
/** `maxReviewRounds` of the director's profile (1 to 3, 2 when it says nothing). */
|
|
165
|
+
maxReviewRounds?: number;
|
|
166
|
+
/** The language of the book: its name or its code. The texts of the estimate are in Italian for an Italian book and in English for every other. */
|
|
167
|
+
language?: string;
|
|
168
|
+
/** The model of each capability, `null` or missing when there is none. */
|
|
169
|
+
models?: Partial<Record<EstimateCapability, EstimateModel | null | undefined>>;
|
|
170
|
+
outline?: EstimateOutline;
|
|
171
|
+
progress?: EstimateProgress;
|
|
172
|
+
scenario?: EstimateScenario;
|
|
173
|
+
context?: EstimateContext;
|
|
174
|
+
/** Readers in the panel that are enabled (the built-in panel has eight). */
|
|
175
|
+
readerPanelSize?: number;
|
|
176
|
+
/** The money of the prices; only passed on to the result. */
|
|
177
|
+
currency?: string;
|
|
178
|
+
/** Tokens a word of the book costs, when the host has measured it (not said: the engine's own factor for the language, `tokensPerWord`). */
|
|
179
|
+
tokensPerWord?: number;
|
|
180
|
+
}
|
|
181
|
+
export interface EstimateRange {
|
|
182
|
+
min: number;
|
|
183
|
+
max: number;
|
|
184
|
+
}
|
|
185
|
+
export interface EstimateStep {
|
|
186
|
+
capability: EstimateCapability;
|
|
187
|
+
calls: EstimateRange;
|
|
188
|
+
inputTokens: EstimateRange;
|
|
189
|
+
outputTokens: EstimateRange;
|
|
190
|
+
}
|
|
191
|
+
export interface EstimateCapabilityResult {
|
|
192
|
+
/** The model that is asked, `null` when there is none. */
|
|
193
|
+
model: string | null;
|
|
194
|
+
calls: EstimateRange;
|
|
195
|
+
inputTokens: EstimateRange;
|
|
196
|
+
/** The part of the input that a provider that caches the start of a request would bill at the cached price: counted only for a model that declares that price. */
|
|
197
|
+
cachedInputTokens: EstimateRange;
|
|
198
|
+
outputTokens: EstimateRange;
|
|
199
|
+
/** `null` when the model has no price (or there is no model); `{ min: 0, max: 0 }` when the capability makes no call. */
|
|
200
|
+
cost: EstimateRange | null;
|
|
201
|
+
/** `null` when the speed of the model is not known; `{ min: 0, max: 0 }` when the capability makes no call. */
|
|
202
|
+
minutes: EstimateRange | null;
|
|
203
|
+
}
|
|
204
|
+
interface EstimateWarningBase {
|
|
205
|
+
severity: "error" | "warning" | "info";
|
|
206
|
+
/** The text, in the language of the book. */
|
|
207
|
+
text: string;
|
|
208
|
+
}
|
|
209
|
+
/** What the interface needs to say something about a run before it starts. A structured warning has a stable `code` and its numbers; the text is only the engine's own wording. */
|
|
210
|
+
export type EstimateWarning = (EstimateWarningBase & {
|
|
211
|
+
code: "noModel";
|
|
212
|
+
capability: EstimateCapability;
|
|
213
|
+
}) | (EstimateWarningBase & {
|
|
214
|
+
code: "smallWindow";
|
|
215
|
+
capability: EstimateCapability;
|
|
216
|
+
model: string;
|
|
217
|
+
step: EstimateCallKind;
|
|
218
|
+
window: number;
|
|
219
|
+
inputBudget: number;
|
|
220
|
+
typicalPrompt: number;
|
|
221
|
+
}) | (EstimateWarningBase & {
|
|
222
|
+
code: "smallOutput";
|
|
223
|
+
capability: EstimateCapability;
|
|
224
|
+
model: string;
|
|
225
|
+
step: EstimateCallKind;
|
|
226
|
+
maxOutputTokens: number;
|
|
227
|
+
typicalReply: number;
|
|
228
|
+
}) | (EstimateWarningBase & {
|
|
229
|
+
code: "noPrice";
|
|
230
|
+
capability: EstimateCapability;
|
|
231
|
+
model: string;
|
|
232
|
+
}) | (EstimateWarningBase & {
|
|
233
|
+
code: "noSpeed";
|
|
234
|
+
capability: EstimateCapability;
|
|
235
|
+
model: string;
|
|
236
|
+
}) | (EstimateWarningBase & {
|
|
237
|
+
code: "reasoningModel";
|
|
238
|
+
capability: EstimateCapability;
|
|
239
|
+
model: string;
|
|
240
|
+
}) | (EstimateWarningBase & {
|
|
241
|
+
code: "outlineLongerThanBrief";
|
|
242
|
+
briefChapters: number;
|
|
243
|
+
outlineChapters: number;
|
|
244
|
+
});
|
|
245
|
+
export type EstimateWarningCode = EstimateWarning["code"];
|
|
246
|
+
export interface EstimateResult {
|
|
247
|
+
/** The language of the texts, as a code. */
|
|
248
|
+
language: string;
|
|
249
|
+
/** The chapters of the book (the outline can make it longer than the brief). */
|
|
250
|
+
chapters: number;
|
|
251
|
+
/** The chapters this run writes. */
|
|
252
|
+
chaptersToWrite: number;
|
|
253
|
+
/** The words it writes, at the length the brief asks. */
|
|
254
|
+
words: number;
|
|
255
|
+
calls: EstimateRange;
|
|
256
|
+
inputTokens: EstimateRange;
|
|
257
|
+
cachedInputTokens: EstimateRange;
|
|
258
|
+
outputTokens: EstimateRange;
|
|
259
|
+
/** `null` when a capability that makes calls has no price: then `unpriced` says which. */
|
|
260
|
+
cost: (EstimateRange & {
|
|
261
|
+
currency?: string;
|
|
262
|
+
}) | null;
|
|
263
|
+
unpriced: EstimateCapability[];
|
|
264
|
+
/** `null` when the speed of a model that is asked is not known: then `unmeasured` says which. */
|
|
265
|
+
minutes: EstimateRange | null;
|
|
266
|
+
unmeasured: EstimateCapability[];
|
|
267
|
+
capabilities: Record<EstimateCapability, EstimateCapabilityResult>;
|
|
268
|
+
steps: Record<EstimateCallKind, EstimateStep>;
|
|
269
|
+
warnings: EstimateWarning[];
|
|
270
|
+
assumptions: string[];
|
|
271
|
+
}
|
|
272
|
+
export declare function estimateAutopilotRun(input?: EstimateInput | null): EstimateResult;
|
|
273
|
+
/** What a host knows of how fast its models write: `measuredSpeed` gives a map like this one. */
|
|
274
|
+
export type EstimateSpeeds = ReadonlyMap<string, {
|
|
275
|
+
tokensPerSecond: number;
|
|
276
|
+
}> | Readonly<Record<string, {
|
|
277
|
+
tokensPerSecond: number;
|
|
278
|
+
} | undefined>>;
|
|
279
|
+
/**
|
|
280
|
+
* The model of each capability as the router would choose it (the first of `resolveAiCandidates`): its name, its window, its largest answer, its prices, whether it
|
|
281
|
+
* reasons, and the speed `speeds` has for it. No key, no address: only what the estimate reads. A capability the configuration has no model for is not in the answer.
|
|
282
|
+
*/
|
|
283
|
+
export declare function estimateModelsFromConfig(config: AiRuntimeConfig | null | undefined, speeds?: EstimateSpeeds): Partial<Record<EstimateCapability, EstimateModel>>;
|
|
284
|
+
/**
|
|
285
|
+
* Where a book is, read from the state of the autopilot: the chapters done, the chapters of the plan when it is approved, whether the concept and the judgement of
|
|
286
|
+
* the whole book are done, and the chapters the author wrote that have no summary yet. What `EstimateInput.progress` takes for a book that is already started.
|
|
287
|
+
*/
|
|
288
|
+
export declare function estimateProgressFromState(state: Pick<AutopilotState, "plan" | "concept" | "finalDone"> | null | undefined): Required<Omit<EstimateProgress, "withoutSummaryWords">>;
|
|
289
|
+
/**
|
|
290
|
+
* Where a book is by its chapters alone, for a book the autopilot has not started (it has no state): every chapter with prose is the author's, so it is done, and the ones
|
|
291
|
+
* with no summary each cost a call before the plan. `snapshot.chapters` is what it takes. For a book with a state, `estimateProgressFromState` is the one to use.
|
|
292
|
+
*/
|
|
293
|
+
export declare function estimateProgressFromChapters(chapters: ReadonlyArray<{
|
|
294
|
+
summary?: string | null;
|
|
295
|
+
paragraphs?: ReadonlyArray<unknown> | null;
|
|
296
|
+
}> | null | undefined): Required<Pick<EstimateProgress, "chaptersDone" | "withoutSummary">>;
|
|
297
|
+
/**
|
|
298
|
+
* What the state knows of the words the prompts carry: the author's rules (`constraints`), and the standing guidance of the director (`directorNotes`) once the plan is
|
|
299
|
+
* approved. What `EstimateInput.context` takes for a book that is already started, so that the estimate does not start from the typical notes of a book that has none.
|
|
300
|
+
*/
|
|
301
|
+
export declare function estimateContextFromState(state: Pick<AutopilotState, "constraints" | "directorNotes" | "plan"> | null | undefined): Pick<EstimateContext, "rulesWords" | "notesWords">;
|
|
302
|
+
export {};
|
|
303
|
+
//# sourceMappingURL=estimate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"estimate.d.ts","sourceRoot":"","sources":["../../src/autopilot/estimate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAqBvD,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAOnF,kFAAkF;AAClF,eAAO,MAAM,qBAAqB,gHAOvB,CAAC;AAEZ,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC;AAExE;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,uNAgBrB,CAAC;AAEZ,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAoBpE;;;;GAIG;AACH,eAAO,MAAM,gBAAgB;IAC3B,yDAAyD;;IAEzD,sJAAsJ;;;;IAItJ,yIAAyI;;IAEzI,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