@theoremjs/studio 0.3.4-next.528.g44c76f9 → 0.3.4-next.538.gb556343
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 +4 -1
- package/browser-connection.js +1 -1
- package/compile-workspace.js +26 -7
- package/compile.js +13 -2
- package/{example.d.ts → cookbooks/catalog.d.ts} +35 -5
- package/cookbooks/catalog.js +686 -0
- package/cookbooks/checks.d.ts +10 -0
- package/cookbooks/checks.js +93 -0
- package/cookbooks/exchanges.d.ts +11 -0
- package/cookbooks/exchanges.js +13 -0
- package/cookbooks/fixtures/research.trace.json +4455 -0
- package/cookbooks/mod.d.ts +8 -0
- package/cookbooks/mod.js +5 -0
- package/cookbooks/project.d.ts +66 -0
- package/cookbooks/project.js +195 -0
- package/cookbooks/providers.d.ts +165 -0
- package/cookbooks/providers.js +289 -0
- package/cookbooks/sources.d.ts +10 -0
- package/cookbooks/sources.js +125 -0
- package/cookbooks/tools.d.ts +23 -0
- package/{concierge-demo.js → cookbooks/tools.js} +428 -42
- package/map.js +3 -1
- package/mod.d.ts +3 -3
- package/mod.js +2 -3
- package/package.json +4 -4
- package/page/assets/{Banner-BhKnM-76.js → Banner--7kKAcbR.js} +2 -2
- package/page/assets/{ConsoleFrame-CnGU8SiE.js → ConsoleFrame-Df-1k5rx.js} +1 -1
- package/page/assets/{ContextMenu-G2oYmfwG.js → ContextMenu-CLru8q9q.js} +2 -2
- package/page/assets/{ToolResultCharts-DpaHoQFj.js → ToolResultCharts-Cly-P3dx.js} +1 -1
- package/page/assets/{TraceInspector-Bo0PzFVf.js → TraceInspector-BFWqiEo8.js} +1 -1
- package/page/assets/{TraceOverview-CM-sd2zM.js → TraceOverview-DQxChC-h.js} +1 -1
- package/page/assets/{_virtual_studio-type-sources-DVbxNwnP.js → _virtual_studio-type-sources-C1mRXxbj.js} +29 -250
- package/page/assets/browser-engine-CNaADy_l.js +11 -0
- package/page/assets/browser-transport-C0uHtl3C.js +47 -0
- package/page/assets/{compile-egress-BRGW9qfO.js → compile-egress-C3etX-3o.js} +1 -1
- package/page/assets/{crypto-BAY2nUlu.js → crypto-Dd6XxhqK.js} +1 -1
- package/page/assets/{encode-files-BSTfq_Gp.js → encode-files-CiyHxnUC.js} +1 -1
- package/page/assets/{export-agent-CtklkKZk.js → export-agent-DqNoCFuj.js} +2 -2
- package/page/assets/{guardrail-tester-BXROlU1L.js → guardrail-tester-5LbFKh-H.js} +1 -1
- package/page/assets/host-patterns-F-KZIzkF.js +1 -0
- package/page/assets/{index-DbHspDC4.js → index-S12ARX87.js} +120 -72
- package/page/assets/{live-ingress-qi-y5uvH.js → live-ingress-OuSlQ6q7.js} +1 -1
- package/page/assets/{live-messages-DIf_R-NT.js → live-messages-BNhCuiuF.js} +1 -1
- package/page/assets/reader-BT_YeHdq.js +7 -0
- package/page/assets/shaped-data-DYOBdvLJ.js +20 -0
- package/page/assets/{stub-4m0tKRlG.js → stub-DPcZtI0s.js} +78 -40
- package/page/assets/{studio-code-pane-Dt3MWPBE.js → studio-code-pane-BXOCuMNp.js} +3 -3
- package/page/assets/{studio-console-4PMBDYuu.js → studio-console-AcvRLSDp.js} +1 -1
- package/page/assets/{studio-decision-BiN_FO02.js → studio-decision-Cl6wplXz.js} +1 -1
- package/page/assets/{studio-embedding-C7gIUtxM.js → studio-embedding-BfFLDsco.js} +1 -1
- package/page/assets/{studio-host-console-DOBHkxDj.js → studio-host-console-BlkqZDuc.js} +2 -2
- package/page/assets/{studio-labels-Dh_rsQs7.js → studio-labels-Z-P3w3-t.js} +1 -1
- package/page/assets/{studio-live-xPsQmJyQ.js → studio-live-C5tTdkWn.js} +1 -1
- package/page/assets/studio-map-Ng4hX_Zw.js +1 -0
- package/page/assets/studio-trace-replay-hz4210Sc.js +2 -0
- package/page/assets/{studio-type-checker-CHFs7A7H.js → studio-type-checker-B5DVxAZ0.js} +1 -1
- package/page/assets/tool-schema-CxLtS_Zt.js +17 -0
- package/page/assets/{trace-record-D9wgX8kq.js → trace-record-B2MF8flo.js} +1 -1
- package/page/assets/tree-Bi2FOU_h.js +3 -0
- package/page/assets/{turn-client-BWO4ocVM.js → turn-client-BCi5WnI6.js} +2 -2
- package/page/assets/types-s-3wFTyD.js +1 -0
- package/page/assets/{use-one-call-ApIuuZX3.js → use-one-call-JRMfBLt2.js} +1 -1
- package/page/assets/workspace-BiCkglEt.js +1 -0
- package/page/index.html +17 -17
- package/policy.js +1 -1
- package/registrations.d.ts +7 -1
- package/replay.d.ts +11 -0
- package/replay.js +67 -11
- package/runtime-scope.js +27 -3
- package/server/draft-decide.d.ts +1 -1
- package/source.js +2 -1
- package/stub.js +1 -1
- package/surface.js +6 -3
- package/tools.js +12 -6
- package/types.d.ts +2 -0
- package/ui/lib/studio-examples.d.ts +6 -31
- package/ui/lib/studio-examples.js +30 -15
- package/ui/lib/studio-open.d.ts +4 -1
- package/ui/lib/studio-open.js +6 -5
- package/ui/lib/tree-map-layout.js +9 -1
- package/ui/profile-editor.js +9 -8
- package/ui/studio-screen.js +30 -18
- package/workspace.js +8 -2
- package/concierge-demo.d.ts +0 -17
- package/example.js +0 -363
- package/page/assets/browser-engine-BJYQz5d_.js +0 -11
- package/page/assets/browser-transport-YKpXhacP.js +0 -47
- package/page/assets/host-patterns-cSf1U25G.js +0 -1
- package/page/assets/reader-BkaAkeh0.js +0 -7
- package/page/assets/shaped-data-C4jsvipW.js +0 -20
- package/page/assets/studio-map-Cc4_9fe9.js +0 -1
- package/page/assets/studio-trace-replay-D5JoQXyY.js +0 -2
- package/page/assets/tool-schema-DpbtSZtQ.js +0 -17
- package/page/assets/tree-0OoOeHfS.js +0 -3
- package/page/assets/types-BRZU5tBz.js +0 -1
- package/page/assets/workspace-DJBP4Adw.js +0 -1
|
@@ -0,0 +1,686 @@
|
|
|
1
|
+
import { embeddingModelLimits } from '@theoremjs/agents';
|
|
2
|
+
import { DETECTOR_BOUNDARIES, DETECTORS } from '@theoremjs/agents/guardrails';
|
|
3
|
+
import { createBlankDraft, defaultModelBinding, defaultToolSpec, draftKey, freeName, includableFacets, includeFacet, setProfileType, } from "../draft.js";
|
|
4
|
+
import { firstServed } from "../policy.js";
|
|
5
|
+
import { addAgent, agentNodeId, markAgentStart, workspaceFromDraft, } from "../workspace.js";
|
|
6
|
+
import { DEMO_ALLOWED_HOSTS, DEMO_ARCHITECT_TOOLS, DEMO_CONCIERGE_TOOLS, DEMO_CONSOLE_TOOLS, DEMO_RESEARCH_STAGE_READ_TOOLS, DEMO_RESEARCH_TOOLS, demoInputsSpec, demoToolSpecs, RESEARCH_ALLOWED_HOSTS, } from "./tools.js";
|
|
7
|
+
/**
|
|
8
|
+
* Where each cookbook's models start: Google's Flash models and TypeSafe's Jev, which free keys
|
|
9
|
+
* run. The examples list no models, so a type switch keeps whatever the kernel says serves the
|
|
10
|
+
* new type.
|
|
11
|
+
*/
|
|
12
|
+
const EXAMPLE_PICKS = {
|
|
13
|
+
models: () => [],
|
|
14
|
+
start: (type) => {
|
|
15
|
+
switch (type) {
|
|
16
|
+
case 'decision':
|
|
17
|
+
return { ...firstServed('typesafe', type), apiId: 'jev-latest' };
|
|
18
|
+
case 'live':
|
|
19
|
+
return { ...firstServed('gemini', type), apiId: 'gemini-3.1-flash-live-preview' };
|
|
20
|
+
case 'speech':
|
|
21
|
+
return { ...firstServed('gemini', type), apiId: 'gemini-3.1-flash-tts-preview' };
|
|
22
|
+
case 'image':
|
|
23
|
+
return { ...firstServed('gemini', type), apiId: 'gemini-3.1-flash-lite-image' };
|
|
24
|
+
case 'text':
|
|
25
|
+
return { ...firstServed('gemini', type), apiId: 'gemini-3.1-flash-lite' };
|
|
26
|
+
case 'embedding':
|
|
27
|
+
return { ...firstServed('gemini', type), apiId: 'gemini-embedding-2-preview' };
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
/** Public cognitive block (bonsai.thinker) plus private research standards (`{private: …}`). */
|
|
32
|
+
export const DEMO_RESEARCH_SYSTEM = `Role: Advanced reasoning engine for research on how language models keep, retrieve, and recombine context. You solve high-complexity, ambiguous, and multi-variable problems through deep first-principles analysis.
|
|
33
|
+
|
|
34
|
+
Cognitive Standards:
|
|
35
|
+
- First-Principles Decomposition: Reduce problems to foundational mechanics, physical laws, and core causal primitives. Do not rely on surface-level heuristics or rote pattern-matching.
|
|
36
|
+
- Adversarial Stress-Testing: Actively challenge initial assumptions. Explore competing hypotheses, edge cases, failure modes, and potential confounds before converging on a solution.
|
|
37
|
+
- Systems Dynamics: Model non-linear interactions, feedback loops, dependencies, and second-order consequences across variables.
|
|
38
|
+
- Epistemic Precision: Explicitly distinguish established empirical facts from logical deductions, probabilistic estimates, and speculative hypotheses. Calibrate confidence to available evidence.
|
|
39
|
+
|
|
40
|
+
Execution:
|
|
41
|
+
Provide thorough, exhaustive, and intellectually uncompromised reasoning. Prioritize causal clarity, mathematical/scientific validity, and deep insight over artificial brevity.
|
|
42
|
+
|
|
43
|
+
{private:
|
|
44
|
+
Standards:
|
|
45
|
+
- The newest work is often not indexed yet; one search is rarely enough.
|
|
46
|
+
- A claim rests on a primary source: the paper, the model card, the dataset card, the repository. A blog or a list is a lead to its primary source; DeepWiki answers are leads only.
|
|
47
|
+
- Quote exact words from what the tools returned. Say how sure you are, and what you could not check.
|
|
48
|
+
}`;
|
|
49
|
+
export const DEMO_CONCIERGE_SYSTEM = `Role: Elite, charismatic travel concierge.
|
|
50
|
+
|
|
51
|
+
Communication Standards:
|
|
52
|
+
- Readable Formatting: Use markdown where it helps the reader: short headings, bullet lists, bold for key names, and tables for side-by-side comparisons.
|
|
53
|
+
- Adaptive Pacing: Deliver high-signal, concise answers. Avoid overwhelming monologues; provide the immediate insight or recommendation first, then offer a natural next step.
|
|
54
|
+
|
|
55
|
+
Tool & Fact Grounding:
|
|
56
|
+
- Absolute Grounding: Ground all dynamic facts (weather, currency conversions, distances, geography, destination research) using available tools before answering. Never invent live data.
|
|
57
|
+
- Silent Execution: Never narrate tool calls, announce function names, or reference underlying APIs. Seamlessly integrate verified findings into your response.
|
|
58
|
+
- Complete Resolution: Execute multi-step tool chains silently to completion before delivering the synthesized answer.
|
|
59
|
+
|
|
60
|
+
Multimodal Understanding:
|
|
61
|
+
- Immediately extract actionable constraints (dates, flight times, locations, budgets) from provided images, documents, tickets, or audio, and weave them directly into your response.`;
|
|
62
|
+
export const DEMO_ARCHITECT_SYSTEM = `Role: Senior software architect who researches before advising.
|
|
63
|
+
|
|
64
|
+
Communication Standards:
|
|
65
|
+
- Readable Formatting: Use markdown where it helps the reader: short headings, bullet lists, code blocks for code, and tables for side-by-side comparisons.
|
|
66
|
+
- Answer First: Lead with the recommendation, then the reasons and the trade-offs. Name what you could not confirm.
|
|
67
|
+
|
|
68
|
+
Tool & Fact Grounding:
|
|
69
|
+
- Absolute Grounding: Ground claims about a library, a repository, a package version, or a cloud service in the tools before answering. Never invent an API, a version, or a default.
|
|
70
|
+
- Silent Execution: Never narrate tool calls or announce function names. Work findings into the answer.
|
|
71
|
+
- Complete Resolution: Finish multi-step research before you answer.
|
|
72
|
+
|
|
73
|
+
Audio briefings:
|
|
74
|
+
- When asked for a podcast, a briefing, or anything to listen to, write a short spoken script of what you found, in plain sentences with no markdown, and pass it to narrate. Then say in one line what the briefing covers.`;
|
|
75
|
+
export const DEMO_LIVE_CONCIERGE_SYSTEM = `Role: Elite, charismatic travel concierge, on a call.
|
|
76
|
+
|
|
77
|
+
Speaking:
|
|
78
|
+
- Speak in short, natural sentences. No lists, no markdown, no reading out of addresses, or codes unless asked.
|
|
79
|
+
- Give the recommendation first, then offer one next step.
|
|
80
|
+
|
|
81
|
+
Tool & Fact Grounding:
|
|
82
|
+
- Ground weather, currency, distances, and places in the tools before you answer. Never invent live data.
|
|
83
|
+
- Never name a tool or say that you are calling one.`;
|
|
84
|
+
/** The structured reply schema for `research.scout`. */
|
|
85
|
+
export const RESEARCH_REPLY_SCHEMA_ID = 'research.reply';
|
|
86
|
+
export const RESEARCH_REPLY_SCHEMA_JSON = JSON.stringify({
|
|
87
|
+
type: 'object',
|
|
88
|
+
properties: {
|
|
89
|
+
summary: {
|
|
90
|
+
type: 'string',
|
|
91
|
+
description: 'What the search found and how sure you are, in a few sentences.',
|
|
92
|
+
},
|
|
93
|
+
candidates: {
|
|
94
|
+
type: 'array',
|
|
95
|
+
items: {
|
|
96
|
+
type: 'object',
|
|
97
|
+
properties: {
|
|
98
|
+
kind: { type: 'string', enum: ['model', 'dataset', 'paper', 'repo', 'method'] },
|
|
99
|
+
name: {
|
|
100
|
+
type: 'string',
|
|
101
|
+
description: 'Its id as published: a Hub id, an arXiv id, owner/repo, or a short name.',
|
|
102
|
+
},
|
|
103
|
+
url: { type: 'string', description: 'Where it is published.' },
|
|
104
|
+
what: {
|
|
105
|
+
type: 'string',
|
|
106
|
+
description: 'What it is, in one sentence: architecture and size, or contents and size.',
|
|
107
|
+
},
|
|
108
|
+
why: {
|
|
109
|
+
type: 'string',
|
|
110
|
+
description: 'Why it could help a model keep, retrieve, or recombine context: working memory, episodic memory, or a vector store.',
|
|
111
|
+
},
|
|
112
|
+
basis: {
|
|
113
|
+
type: 'string',
|
|
114
|
+
enum: ['page', 'lead', 'memory'],
|
|
115
|
+
description: 'page: a source a tool returned this turn; cite it. lead: DeepWiki or a hint not yet confirmed. memory: your own recall.',
|
|
116
|
+
},
|
|
117
|
+
evidence: {
|
|
118
|
+
type: 'array',
|
|
119
|
+
items: {
|
|
120
|
+
type: 'object',
|
|
121
|
+
properties: {
|
|
122
|
+
uri: {
|
|
123
|
+
type: 'string',
|
|
124
|
+
description: 'URL of a page or paper a tool returned this turn.',
|
|
125
|
+
},
|
|
126
|
+
quote: {
|
|
127
|
+
type: 'string',
|
|
128
|
+
description: 'The exact words in what the tool returned that this candidate rests on.',
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
required: ['uri', 'quote'],
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
required: ['kind', 'name', 'url', 'what', 'why', 'basis', 'evidence'],
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
searched: {
|
|
139
|
+
type: 'array',
|
|
140
|
+
items: { type: 'string' },
|
|
141
|
+
description: 'The queries and sources you tried, including the empty ones.',
|
|
142
|
+
},
|
|
143
|
+
open: {
|
|
144
|
+
type: 'array',
|
|
145
|
+
items: { type: 'string' },
|
|
146
|
+
description: 'Leads you could not follow, and what would settle them.',
|
|
147
|
+
},
|
|
148
|
+
},
|
|
149
|
+
required: ['summary', 'candidates', 'searched', 'open'],
|
|
150
|
+
}, null, 2);
|
|
151
|
+
/** The agent id the decision example opens under; its run starts with the pantry's state and pictures. */
|
|
152
|
+
export const DECISION_EXAMPLE_AGENT_ID = 'pantry.jev';
|
|
153
|
+
/** What the decision example's questions are asked about: the shelf, and why we ask. */
|
|
154
|
+
export const DECISION_EXAMPLE_STATE = JSON.stringify({
|
|
155
|
+
photo: '<pantry_shelf>',
|
|
156
|
+
note: 'Friends are coming round for brunch.',
|
|
157
|
+
}, null, 2);
|
|
158
|
+
/** The example's pictures, which load only when the example is made: they are most of its weight. */
|
|
159
|
+
const exampleImages = async () => (await import("../decision-example-images.js")).DECISION_EXAMPLE_IMAGES;
|
|
160
|
+
/** The picture the decision example's state starts with, by the reference it writes: the shelf. */
|
|
161
|
+
export async function decisionExampleAssets() {
|
|
162
|
+
const { '<pantry_shelf>': shelf } = await exampleImages();
|
|
163
|
+
return { '<pantry_shelf>': shelf };
|
|
164
|
+
}
|
|
165
|
+
/** The example's own pictures, sent with every decision: the ginger, the colour chart and the flag its questions name. */
|
|
166
|
+
async function decisionImages() {
|
|
167
|
+
const { '<pantry_shelf>': _shelf, ...fixed } = await exampleImages();
|
|
168
|
+
return Object.entries(fixed).map(([reference, image]) => ({
|
|
169
|
+
key: draftKey('image'),
|
|
170
|
+
name: reference.slice(1, -1),
|
|
171
|
+
...image,
|
|
172
|
+
}));
|
|
173
|
+
}
|
|
174
|
+
function exampleQuestion(id, type, instructions, options = []) {
|
|
175
|
+
return {
|
|
176
|
+
key: draftKey('question'),
|
|
177
|
+
id,
|
|
178
|
+
type,
|
|
179
|
+
instructions,
|
|
180
|
+
criteria: options.map(([label, text]) => ({ key: draftKey('criterion'), label, text })),
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* A look at a pantry shelf on TypeSafe's Jev 1.14: boxes around what it finds, a colour chart and
|
|
185
|
+
* a flag to match against, and plain questions about what is there.
|
|
186
|
+
*/
|
|
187
|
+
export async function createDecisionExampleDraft() {
|
|
188
|
+
return decisionExampleDraft(await decisionImages());
|
|
189
|
+
}
|
|
190
|
+
/** The decision example with the pictures given: none for a page that only shows its shape. */
|
|
191
|
+
export function decisionExampleDraft(images = []) {
|
|
192
|
+
const blank = createBlankDraft();
|
|
193
|
+
const had = new Set(includableFacets(blank));
|
|
194
|
+
const decision = setProfileType(blank, 'decision', EXAMPLE_PICKS);
|
|
195
|
+
const draft = includableFacets(decision)
|
|
196
|
+
.filter((facet) => !had.has(facet))
|
|
197
|
+
.reduce(includeFacet, decision);
|
|
198
|
+
const binding = draft.modelBindings[0];
|
|
199
|
+
return {
|
|
200
|
+
...draft,
|
|
201
|
+
identity: { ...draft.identity, agentId: DECISION_EXAMPLE_AGENT_ID, handle: 'jev' },
|
|
202
|
+
modelBindings: binding ? [{ ...binding, apiId: 'jev-1.14.0', options: { images: true } }] : [],
|
|
203
|
+
decision: {
|
|
204
|
+
...draft.decision,
|
|
205
|
+
contract: 'pantry.v1',
|
|
206
|
+
questions: [
|
|
207
|
+
{ ...exampleQuestion('Ginger', 'box', 'Where is <ginger> in `photo`?'), image: 'photo' },
|
|
208
|
+
exampleQuestion('Something to drink', 'noul', "There's something to drink in `photo`."),
|
|
209
|
+
exampleQuestion('Fruit salad', 'noul', 'Do we have what we need for a fruit salad?'),
|
|
210
|
+
{
|
|
211
|
+
...exampleQuestion('Where the green apple lands on the chart', 'box', 'Where on <apple_ripeness> would the green apple in `photo` sit?'),
|
|
212
|
+
image: '<apple_ripeness>',
|
|
213
|
+
},
|
|
214
|
+
exampleQuestion('Bread on the shelf', 'noul', 'Does the shelf have bread?'),
|
|
215
|
+
{
|
|
216
|
+
...exampleQuestion('Union Jack', 'box', 'Which jar in `photo` matches <union_jack>?'),
|
|
217
|
+
image: 'photo',
|
|
218
|
+
},
|
|
219
|
+
exampleQuestion('Brunch', 'choice', 'What can we make for brunch from `photo`?', [
|
|
220
|
+
['toast', 'Toast with a spread.'],
|
|
221
|
+
['fruit', 'A bowl of fruit.'],
|
|
222
|
+
['shop', 'Nothing yet. Someone goes to the shop.'],
|
|
223
|
+
]),
|
|
224
|
+
],
|
|
225
|
+
images,
|
|
226
|
+
},
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
/** A tool-call safety decision using the free Span model and its Number question shape. */
|
|
230
|
+
export function createSpanExampleDraft() {
|
|
231
|
+
const draft = setProfileType(createBlankDraft(), 'decision', EXAMPLE_PICKS);
|
|
232
|
+
return {
|
|
233
|
+
...draft,
|
|
234
|
+
identity: { ...draft.identity, agentId: 'guardrails.tool_call.span', handle: 'span' },
|
|
235
|
+
modelBindings: [
|
|
236
|
+
{
|
|
237
|
+
...draft.modelBindings[0],
|
|
238
|
+
...firstServed('openrouter', 'decision'),
|
|
239
|
+
apiId: 'respan/span-01-lite:free',
|
|
240
|
+
},
|
|
241
|
+
],
|
|
242
|
+
decision: {
|
|
243
|
+
...draft.decision,
|
|
244
|
+
questions: [
|
|
245
|
+
{
|
|
246
|
+
key: draftKey('question'),
|
|
247
|
+
id: 'verdict',
|
|
248
|
+
type: 'noul',
|
|
249
|
+
instructions: 'Is this tool call unsafe or beyond what the user asked for?',
|
|
250
|
+
criteria: [
|
|
251
|
+
{
|
|
252
|
+
key: draftKey('criterion'),
|
|
253
|
+
label: 'true',
|
|
254
|
+
text: 'The call is unsafe or beyond the user request.',
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
key: draftKey('criterion'),
|
|
258
|
+
label: 'false',
|
|
259
|
+
text: 'The call is safe and within the user request.',
|
|
260
|
+
},
|
|
261
|
+
],
|
|
262
|
+
},
|
|
263
|
+
],
|
|
264
|
+
},
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
const GEMINI_EMBEDDING = {
|
|
268
|
+
protocol: firstServed('gemini', 'embedding').protocol,
|
|
269
|
+
apiId: 'gemini-embedding-2-preview',
|
|
270
|
+
};
|
|
271
|
+
/** A multimodal embedding profile using Gemini Embeddings 2's free preview model, taking every file type it does. */
|
|
272
|
+
export function createGeminiEmbeddingExampleDraft() {
|
|
273
|
+
const draft = setProfileType(createBlankDraft(), 'embedding', EXAMPLE_PICKS);
|
|
274
|
+
const binding = draft.modelBindings[0];
|
|
275
|
+
return {
|
|
276
|
+
...draft,
|
|
277
|
+
identity: {
|
|
278
|
+
...draft.identity,
|
|
279
|
+
agentId: 'studio.gemini-embeddings-2',
|
|
280
|
+
handle: 'embeddings',
|
|
281
|
+
},
|
|
282
|
+
models: {
|
|
283
|
+
...draft.models,
|
|
284
|
+
defaultModel: binding?.modelId ?? '',
|
|
285
|
+
key: 'gemini',
|
|
286
|
+
},
|
|
287
|
+
modelBindings: binding
|
|
288
|
+
? [
|
|
289
|
+
{
|
|
290
|
+
...binding,
|
|
291
|
+
provider: 'gemini',
|
|
292
|
+
protocol: GEMINI_EMBEDDING.protocol,
|
|
293
|
+
apiId: GEMINI_EMBEDDING.apiId,
|
|
294
|
+
options: { outputDimensionality: 768 },
|
|
295
|
+
},
|
|
296
|
+
]
|
|
297
|
+
: [],
|
|
298
|
+
inputs: {
|
|
299
|
+
...draft.inputs,
|
|
300
|
+
text: true,
|
|
301
|
+
attachmentsAccept: (embeddingModelLimits(GEMINI_EMBEDDING)?.media ?? []).flatMap((kind) => [
|
|
302
|
+
...kind.accept,
|
|
303
|
+
]),
|
|
304
|
+
// why: the most media Gemini Embedding 2 takes in one input is 6 images.
|
|
305
|
+
maxFiles: 6,
|
|
306
|
+
maxBytes: 10_000_000,
|
|
307
|
+
maxTurnBytes: 10_000_000,
|
|
308
|
+
},
|
|
309
|
+
};
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* The example's `detect`: a reply that carries sensitive data or injection phrasing is blocked.
|
|
313
|
+
* Network addresses are left alone, since a reply cites them, and so are tool names, since a
|
|
314
|
+
* reply repeats one the visitor asks about. Leak and address detectors keep the kernel defaults.
|
|
315
|
+
*/
|
|
316
|
+
const EXAMPLE_REPLY_BLOCK = [
|
|
317
|
+
'ids',
|
|
318
|
+
'financial',
|
|
319
|
+
'credentials',
|
|
320
|
+
'injection',
|
|
321
|
+
'tool_instructions',
|
|
322
|
+
];
|
|
323
|
+
function exampleDetect(detect) {
|
|
324
|
+
const next = structuredClone(detect);
|
|
325
|
+
for (const detector of EXAMPLE_REPLY_BLOCK) {
|
|
326
|
+
for (const boundary of ['reply', 'reply_structured', 'live_reply']) {
|
|
327
|
+
if (DETECTOR_BOUNDARIES[detector].includes(boundary))
|
|
328
|
+
next[detector][boundary] = 'block';
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
return next;
|
|
332
|
+
}
|
|
333
|
+
/** Every detector at every boundary it reads at set to `flag`, for an agent that reads untrusted pages. */
|
|
334
|
+
function flagAllDetect(detect) {
|
|
335
|
+
const next = structuredClone(detect);
|
|
336
|
+
for (const detector of DETECTORS) {
|
|
337
|
+
for (const boundary of DETECTOR_BOUNDARIES[detector]) {
|
|
338
|
+
if (next[detector][boundary] !== 'ignore')
|
|
339
|
+
next[detector][boundary] = 'flag';
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
return next;
|
|
343
|
+
}
|
|
344
|
+
/** The demo tools named, in the library's order. */
|
|
345
|
+
export function exampleTools(names) {
|
|
346
|
+
const wanted = new Set(names);
|
|
347
|
+
return demoToolSpecs()
|
|
348
|
+
.filter((seed) => wanted.has(seed.data.toolName ?? ''))
|
|
349
|
+
.map((seed) => defaultToolSpec(seed.data));
|
|
350
|
+
}
|
|
351
|
+
function defaultTextModelBindings() {
|
|
352
|
+
return [
|
|
353
|
+
defaultModelBinding({
|
|
354
|
+
modelId: 'fast',
|
|
355
|
+
...firstServed('gemini', 'text'),
|
|
356
|
+
apiId: 'gemini-3.1-flash-lite',
|
|
357
|
+
efforts: [
|
|
358
|
+
{ alias: 'fast', level: 'minimal' },
|
|
359
|
+
{ alias: 'deep', level: 'high' },
|
|
360
|
+
],
|
|
361
|
+
defaultEffort: 'fast',
|
|
362
|
+
allowEffortSelect: true,
|
|
363
|
+
summaries: true,
|
|
364
|
+
}),
|
|
365
|
+
defaultModelBinding({
|
|
366
|
+
modelId: 'smart',
|
|
367
|
+
...firstServed('gemini', 'text'),
|
|
368
|
+
apiId: 'gemini-3.5-flash-lite',
|
|
369
|
+
efforts: [
|
|
370
|
+
{ alias: 'normal', level: 'low' },
|
|
371
|
+
{ alias: 'deep', level: 'high' },
|
|
372
|
+
],
|
|
373
|
+
defaultEffort: 'normal',
|
|
374
|
+
allowEffortSelect: true,
|
|
375
|
+
summaries: true,
|
|
376
|
+
}),
|
|
377
|
+
defaultModelBinding({
|
|
378
|
+
modelId: 'open',
|
|
379
|
+
...firstServed('openrouter', 'text'),
|
|
380
|
+
apiId: 'openrouter/free',
|
|
381
|
+
efforts: [{ alias: 'default', level: 'minimal' }],
|
|
382
|
+
defaultEffort: 'default',
|
|
383
|
+
// Its own slot: a slot two providers share can hold neither's key.
|
|
384
|
+
keySlot: 'openrouter',
|
|
385
|
+
}),
|
|
386
|
+
];
|
|
387
|
+
}
|
|
388
|
+
/** A text agent on the studio's models, with the example's inputs and guardrails. */
|
|
389
|
+
function exampleTextDraft(identity, tools) {
|
|
390
|
+
const blank = createBlankDraft();
|
|
391
|
+
const inputs = demoInputsSpec();
|
|
392
|
+
return {
|
|
393
|
+
...blank,
|
|
394
|
+
identity: { ...identity, profileType: 'text', systemByRoleJson: '' },
|
|
395
|
+
included: ['outputs', 'turnBehaviour', 'guardrails', 'observability', 'labels'],
|
|
396
|
+
models: { defaultModel: 'smart', allowModelSelect: true, maxSteps: 12, key: 'gemini' },
|
|
397
|
+
modelBindings: defaultTextModelBindings(),
|
|
398
|
+
...tools,
|
|
399
|
+
inputs: {
|
|
400
|
+
text: inputs.text,
|
|
401
|
+
attachmentsAccept: [...inputs.attachmentsAccept],
|
|
402
|
+
voiceAccept: [...inputs.voiceAccept],
|
|
403
|
+
maxFiles: inputs.maxFiles,
|
|
404
|
+
maxBytes: inputs.maxBytes,
|
|
405
|
+
maxTurnBytes: inputs.maxTurnBytes,
|
|
406
|
+
limitsByMimeJson: '',
|
|
407
|
+
slotsJson: '',
|
|
408
|
+
contextFrom: [],
|
|
409
|
+
contextMaxChars: null,
|
|
410
|
+
},
|
|
411
|
+
guardrails: {
|
|
412
|
+
...blank.guardrails,
|
|
413
|
+
detect: exampleDetect(blank.guardrails.detect),
|
|
414
|
+
blockedReplyOnBlock: 'refuse',
|
|
415
|
+
allowedHosts: DEMO_ALLOWED_HOSTS.split(',').map((host) => host.trim()),
|
|
416
|
+
},
|
|
417
|
+
};
|
|
418
|
+
}
|
|
419
|
+
/** The decision page-reader (`research.pagereader`) that filters passages for `research.scout` at `post_tool`. */
|
|
420
|
+
export function createPageReaderExampleDraft() {
|
|
421
|
+
const draft = setProfileType(createBlankDraft(), 'decision', EXAMPLE_PICKS);
|
|
422
|
+
const binding = draft.modelBindings[0];
|
|
423
|
+
return {
|
|
424
|
+
...draft,
|
|
425
|
+
identity: { ...draft.identity, agentId: 'research.pagereader', handle: 'pagereader' },
|
|
426
|
+
modelBindings: binding ? [{ ...binding, apiId: 'jev-latest' }] : [],
|
|
427
|
+
decision: {
|
|
428
|
+
...draft.decision,
|
|
429
|
+
contract: 'research.page-passages.v1',
|
|
430
|
+
questions: [
|
|
431
|
+
exampleQuestion('passage', 'choice', 'Does `passage` state a fact a careful researcher would want when answering `question`, including facts that do not settle it and anything contradictory?', [
|
|
432
|
+
['relevant', 'The passage states such a fact.'],
|
|
433
|
+
[
|
|
434
|
+
'not_relevant',
|
|
435
|
+
'The passage does not: it is about something else, or is only a heading, navigation, a reference or a list of links.',
|
|
436
|
+
],
|
|
437
|
+
]),
|
|
438
|
+
],
|
|
439
|
+
},
|
|
440
|
+
};
|
|
441
|
+
}
|
|
442
|
+
/** The research scout on its own: searches papers, models, datasets, repos, and docs. */
|
|
443
|
+
export function createResearchScoutDraft() {
|
|
444
|
+
const blank = createBlankDraft();
|
|
445
|
+
const base = exampleTextDraft({ agentId: 'research.scout', handle: 'scout', system: DEMO_RESEARCH_SYSTEM }, { tools: { t2Loader: '', parallel: true }, toolSpecs: exampleTools(DEMO_RESEARCH_TOOLS) });
|
|
446
|
+
return {
|
|
447
|
+
...base,
|
|
448
|
+
models: {
|
|
449
|
+
defaultModel: 'gemini',
|
|
450
|
+
allowModelSelect: false,
|
|
451
|
+
maxSteps: 32,
|
|
452
|
+
key: 'openrouter',
|
|
453
|
+
},
|
|
454
|
+
modelBindings: [
|
|
455
|
+
defaultModelBinding({
|
|
456
|
+
modelId: 'gemini',
|
|
457
|
+
...firstServed('openrouter', 'text'),
|
|
458
|
+
apiId: 'google/gemini-3.8-flash',
|
|
459
|
+
keySlot: 'openrouter',
|
|
460
|
+
efforts: [
|
|
461
|
+
{ alias: 'normal', level: 'medium' },
|
|
462
|
+
{ alias: 'deep', level: 'high' },
|
|
463
|
+
],
|
|
464
|
+
defaultEffort: 'normal',
|
|
465
|
+
allowEffortSelect: true,
|
|
466
|
+
summaries: true,
|
|
467
|
+
}),
|
|
468
|
+
],
|
|
469
|
+
turnBehaviour: {
|
|
470
|
+
...base.turnBehaviour,
|
|
471
|
+
resumeEnabled: true,
|
|
472
|
+
allowContinue: [],
|
|
473
|
+
autoContinue: ['length', 'stream_incomplete', 'provider_error'],
|
|
474
|
+
maxContinues: 3,
|
|
475
|
+
continueInstruction: 'Your last reply was cut off before it finished. Continue from exactly where it stopped.',
|
|
476
|
+
allowSteering: true,
|
|
477
|
+
atStepLimit: 'answer',
|
|
478
|
+
},
|
|
479
|
+
outputs: {
|
|
480
|
+
...base.outputs,
|
|
481
|
+
mode: 'text',
|
|
482
|
+
schemaId: '',
|
|
483
|
+
schemaJson: '',
|
|
484
|
+
streamMode: 'sse',
|
|
485
|
+
streamThoughts: true,
|
|
486
|
+
validationEnabled: false,
|
|
487
|
+
maxRetries: null,
|
|
488
|
+
itemRules: {},
|
|
489
|
+
},
|
|
490
|
+
guardrails: {
|
|
491
|
+
...blank.guardrails,
|
|
492
|
+
detect: flagAllDetect(blank.guardrails.detect),
|
|
493
|
+
allowedHosts: RESEARCH_ALLOWED_HOSTS.split(',').map((host) => host.trim()),
|
|
494
|
+
},
|
|
495
|
+
};
|
|
496
|
+
}
|
|
497
|
+
/**
|
|
498
|
+
* Adds `research.pagereader` after `research.scout` and links the scout's page-reading tools
|
|
499
|
+
* (`read_pages`, `read_model_card`, `read_dataset_card`, `read_readme`, `read_library_docs`) to it via `stageAgentKey`.
|
|
500
|
+
*/
|
|
501
|
+
function withPageReader(workspace) {
|
|
502
|
+
const scout = workspace.agents.at(-1);
|
|
503
|
+
const pair = addAgent(workspace, createPageReaderExampleDraft());
|
|
504
|
+
const reader = pair.agents.at(-1);
|
|
505
|
+
if (!scout || !reader)
|
|
506
|
+
return pair;
|
|
507
|
+
const stageReadNames = new Set(DEMO_RESEARCH_STAGE_READ_TOOLS);
|
|
508
|
+
const scoutAllowed = new Set(scout.tools.allow);
|
|
509
|
+
return markAgentStart({
|
|
510
|
+
...pair,
|
|
511
|
+
toolSpecs: pair.toolSpecs.map((tool) => scoutAllowed.has(tool.key) && stageReadNames.has(tool.toolName)
|
|
512
|
+
? { ...tool, stageAgentKey: reader.key }
|
|
513
|
+
: tool),
|
|
514
|
+
selected: agentNodeId(scout.key),
|
|
515
|
+
}, scout.key);
|
|
516
|
+
}
|
|
517
|
+
/** The research scout and the Jev page reader it filters pages with, added to a workspace. */
|
|
518
|
+
export function addResearchExample(workspace) {
|
|
519
|
+
return withPageReader(addAgent(workspace, createResearchScoutDraft()));
|
|
520
|
+
}
|
|
521
|
+
/** A workspace of the research scout and its Jev page reader, with the scout in the chat. */
|
|
522
|
+
export function createResearchWorkspace() {
|
|
523
|
+
return withPageReader(workspaceFromDraft(createResearchScoutDraft()));
|
|
524
|
+
}
|
|
525
|
+
/** A fresh copy of the travel concierge draft: a text agent with the tools a trip needs. */
|
|
526
|
+
export function createExampleDraft() {
|
|
527
|
+
return exampleTextDraft({ agentId: 'travel.concierge', handle: 'concierge', system: DEMO_CONCIERGE_SYSTEM }, {
|
|
528
|
+
tools: { t2Loader: 'discover_tools', parallel: false },
|
|
529
|
+
toolSpecs: exampleTools(DEMO_CONCIERGE_TOOLS),
|
|
530
|
+
});
|
|
531
|
+
}
|
|
532
|
+
/** The travel concierge on a call: the same tools, a live model, and an instruction for speech. */
|
|
533
|
+
export function createLiveExampleDraft() {
|
|
534
|
+
const draft = setProfileType(createExampleDraft(), 'live', EXAMPLE_PICKS);
|
|
535
|
+
return {
|
|
536
|
+
...draft,
|
|
537
|
+
identity: {
|
|
538
|
+
...draft.identity,
|
|
539
|
+
agentId: 'travel.concierge.live',
|
|
540
|
+
system: DEMO_LIVE_CONCIERGE_SYSTEM,
|
|
541
|
+
},
|
|
542
|
+
};
|
|
543
|
+
}
|
|
544
|
+
/** A speech agent that reads a script aloud. */
|
|
545
|
+
export function createNarratorExampleDraft() {
|
|
546
|
+
const draft = includeFacet(setProfileType(createBlankDraft(), 'speech', EXAMPLE_PICKS), 'guardrails');
|
|
547
|
+
return {
|
|
548
|
+
...draft,
|
|
549
|
+
identity: { ...draft.identity, agentId: 'studio.narrator', handle: 'narrator' },
|
|
550
|
+
speech: {
|
|
551
|
+
...draft.speech,
|
|
552
|
+
style: 'Warm and unhurried, like a podcast host talking to one listener.',
|
|
553
|
+
},
|
|
554
|
+
};
|
|
555
|
+
}
|
|
556
|
+
/** A host with no model: a few demo tools, one of each kind of result. */
|
|
557
|
+
export function createConsoleExampleDraft() {
|
|
558
|
+
const draft = setProfileType(createBlankDraft(), 'host');
|
|
559
|
+
return {
|
|
560
|
+
...draft,
|
|
561
|
+
identity: { ...draft.identity, agentId: 'tools.console' },
|
|
562
|
+
toolSpecs: exampleTools(DEMO_CONSOLE_TOOLS),
|
|
563
|
+
};
|
|
564
|
+
}
|
|
565
|
+
/** The code architect on its own: the code and docs tools, before the narrator joins it. */
|
|
566
|
+
function architectDraft() {
|
|
567
|
+
return exampleTextDraft({ agentId: 'code.architect', handle: 'architect', system: DEMO_ARCHITECT_SYSTEM }, { tools: { t2Loader: '', parallel: false }, toolSpecs: exampleTools(DEMO_ARCHITECT_TOOLS) });
|
|
568
|
+
}
|
|
569
|
+
/**
|
|
570
|
+
* Adds the narrator after the workspace's last agent, the architect, and the `narrate` agent tool
|
|
571
|
+
* that lets the architect call it. The architect is left selected.
|
|
572
|
+
*/
|
|
573
|
+
function withNarrator(workspace) {
|
|
574
|
+
const architect = workspace.agents.at(-1);
|
|
575
|
+
const pair = addAgent(workspace, createNarratorExampleDraft());
|
|
576
|
+
const narrator = pair.agents.at(-1);
|
|
577
|
+
if (!architect || !narrator)
|
|
578
|
+
return pair;
|
|
579
|
+
const taken = pair.toolSpecs.map((tool) => tool.toolName);
|
|
580
|
+
const narrate = defaultToolSpec({
|
|
581
|
+
toolName: freeName('narrate', taken, (n) => `narrate_${n}`),
|
|
582
|
+
toolType: 'agent',
|
|
583
|
+
agentKey: narrator.key,
|
|
584
|
+
description: 'Has the narrator read a script aloud and returns the audio.',
|
|
585
|
+
activity: 'Recording the briefing',
|
|
586
|
+
activityPast: 'Recorded the briefing',
|
|
587
|
+
category: 'demo',
|
|
588
|
+
});
|
|
589
|
+
// The architect starts with `narrate` allowed, so a reset keeps the two linked.
|
|
590
|
+
return markAgentStart({
|
|
591
|
+
...pair,
|
|
592
|
+
agents: pair.agents.map((agent) => agent.key === architect.key
|
|
593
|
+
? { ...agent, tools: { ...agent.tools, allow: [...agent.tools.allow, narrate.key] } }
|
|
594
|
+
: agent),
|
|
595
|
+
toolSpecs: [...pair.toolSpecs, narrate],
|
|
596
|
+
selected: agentNodeId(architect.key),
|
|
597
|
+
}, architect.key);
|
|
598
|
+
}
|
|
599
|
+
/** The code architect and the narrator it calls, added to a workspace that keeps its other agents. */
|
|
600
|
+
export function addArchitectExample(workspace) {
|
|
601
|
+
return withNarrator(addAgent(workspace, architectDraft()));
|
|
602
|
+
}
|
|
603
|
+
/** A workspace of the code architect and its narrator, with the architect in the chat. */
|
|
604
|
+
export function createArchitectWorkspace() {
|
|
605
|
+
return withNarrator(workspaceFromDraft(architectDraft()));
|
|
606
|
+
}
|
|
607
|
+
const addsDraft = (draft) => async (workspace) => addAgent(workspace, await draft());
|
|
608
|
+
const workspaceOf = (draft) => async () => workspaceFromDraft(await draft());
|
|
609
|
+
export const RESEARCH_FIRST_TURN_PROMPT = 'Find recent papers, models, or datasets on episodic memory, vector-space memory stores, and context recombination for language models, and quote the exact claims from their cards or abstracts.';
|
|
610
|
+
/** The canonical cookbook catalog, ordered with `research` first, `concierge` second, `architect` third. */
|
|
611
|
+
export const COOKBOOKS = {
|
|
612
|
+
research: {
|
|
613
|
+
id: 'research',
|
|
614
|
+
kind: 'system',
|
|
615
|
+
label: 'Research scout',
|
|
616
|
+
description: 'Searches papers, repos, and model cards; Jev filters pages and a check verifies quotes.',
|
|
617
|
+
question: RESEARCH_FIRST_TURN_PROMPT,
|
|
618
|
+
createWorkspace: createResearchWorkspace,
|
|
619
|
+
addToWorkspace: addResearchExample,
|
|
620
|
+
},
|
|
621
|
+
concierge: {
|
|
622
|
+
id: 'concierge',
|
|
623
|
+
kind: 'agent',
|
|
624
|
+
label: 'Travel concierge',
|
|
625
|
+
description: 'Text agent with weather, places, currency, and trip tools.',
|
|
626
|
+
createWorkspace: workspaceOf(createExampleDraft),
|
|
627
|
+
addToWorkspace: addsDraft(createExampleDraft),
|
|
628
|
+
},
|
|
629
|
+
architect: {
|
|
630
|
+
id: 'architect',
|
|
631
|
+
kind: 'system',
|
|
632
|
+
label: 'Code architect',
|
|
633
|
+
description: 'Reads repos and docs. Brings a Narrator it calls for audio.',
|
|
634
|
+
createWorkspace: createArchitectWorkspace,
|
|
635
|
+
addToWorkspace: addArchitectExample,
|
|
636
|
+
},
|
|
637
|
+
'live-concierge': {
|
|
638
|
+
id: 'live-concierge',
|
|
639
|
+
kind: 'agent',
|
|
640
|
+
label: 'Live concierge',
|
|
641
|
+
description: 'The concierge as a voice call, with the same tools.',
|
|
642
|
+
createWorkspace: workspaceOf(createLiveExampleDraft),
|
|
643
|
+
addToWorkspace: addsDraft(createLiveExampleDraft),
|
|
644
|
+
},
|
|
645
|
+
decision: {
|
|
646
|
+
id: 'decision',
|
|
647
|
+
kind: 'agent',
|
|
648
|
+
label: 'Jev decision',
|
|
649
|
+
description: 'Asks Jev about a pantry photo: finds things in it and answers questions.',
|
|
650
|
+
createWorkspace: workspaceOf(createDecisionExampleDraft),
|
|
651
|
+
addToWorkspace: addsDraft(createDecisionExampleDraft),
|
|
652
|
+
},
|
|
653
|
+
'span-decision': {
|
|
654
|
+
id: 'span-decision',
|
|
655
|
+
kind: 'agent',
|
|
656
|
+
label: 'Span guardrail',
|
|
657
|
+
description: 'Checks whether a proposed tool call is safe on the free Span decision model.',
|
|
658
|
+
createWorkspace: workspaceOf(createSpanExampleDraft),
|
|
659
|
+
addToWorkspace: addsDraft(createSpanExampleDraft),
|
|
660
|
+
},
|
|
661
|
+
'gemini-embedding-2': {
|
|
662
|
+
id: 'gemini-embedding-2',
|
|
663
|
+
kind: 'agent',
|
|
664
|
+
label: 'Gemini Embeddings 2',
|
|
665
|
+
description: 'Multimodal embedding preview with Gemini Embeddings 2.',
|
|
666
|
+
createWorkspace: workspaceOf(createGeminiEmbeddingExampleDraft),
|
|
667
|
+
addToWorkspace: addsDraft(createGeminiEmbeddingExampleDraft),
|
|
668
|
+
},
|
|
669
|
+
narrator: {
|
|
670
|
+
id: 'narrator',
|
|
671
|
+
kind: 'agent',
|
|
672
|
+
label: 'Narrator',
|
|
673
|
+
description: 'Reads a script aloud.',
|
|
674
|
+
createWorkspace: workspaceOf(createNarratorExampleDraft),
|
|
675
|
+
addToWorkspace: addsDraft(createNarratorExampleDraft),
|
|
676
|
+
},
|
|
677
|
+
console: {
|
|
678
|
+
id: 'console',
|
|
679
|
+
kind: 'agent',
|
|
680
|
+
label: 'Tool console',
|
|
681
|
+
description: 'No model. Run its tools by hand.',
|
|
682
|
+
createWorkspace: workspaceOf(createConsoleExampleDraft),
|
|
683
|
+
addToWorkspace: addsDraft(createConsoleExampleDraft),
|
|
684
|
+
},
|
|
685
|
+
};
|
|
686
|
+
export const COOKBOOK_IDS = Object.keys(COOKBOOKS);
|