@trim21/personal-pi-extensions 0.1.692 → 0.1.694
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/package.json +1 -1
- package/src/codemode/tool.ts +3 -0
package/package.json
CHANGED
package/src/codemode/tool.ts
CHANGED
|
@@ -108,6 +108,8 @@ function buildDescription(tools: readonly CallableTool[]): string {
|
|
|
108
108
|
" and a failing tool rejects with a `CallFailedError` you can catch.",
|
|
109
109
|
"- Only what the script passes to `text(value)` / `console.log(...)` and its `return` value enter",
|
|
110
110
|
" this conversation; nested calls and their results stay out of it.",
|
|
111
|
+
"- Pass only necessary content to `text(value)`: print the content the next step needs, not whole",
|
|
112
|
+
" tool results or data you will not use.",
|
|
111
113
|
"- `store.set(key, value)`, `store.get(key)` and `store.list()` are a small key/value store that",
|
|
112
114
|
" persists across codemode calls in this session; `store.set(key, undefined)` removes a key.",
|
|
113
115
|
"- The sandbox has no file system, network, timers or Node APIs: calling tools is its only",
|
|
@@ -272,6 +274,7 @@ export function createCodemodeTools(pi: ExtensionAPI): CodemodeTools {
|
|
|
272
274
|
promptSnippet: "codemode: run JavaScript that calls tools in parallel",
|
|
273
275
|
promptGuidelines: [
|
|
274
276
|
"Use codemode to batch or chain several tool calls, or to filter large tool output down to what matters, instead of issuing many individual tool calls.",
|
|
277
|
+
"Keep codemode output minimal: pass only the content the next step needs to `text(value)`, not whole tool results or data you will not use.",
|
|
275
278
|
],
|
|
276
279
|
parameters: Type.Object({
|
|
277
280
|
code: Type.String({
|