diff --git a/docs/genaisrc/genaiscript.d.ts b/docs/genaisrc/genaiscript.d.ts
index a692b08cde..09451ff875 100644
--- a/docs/genaisrc/genaiscript.d.ts
+++ b/docs/genaisrc/genaiscript.d.ts
@@ -74,6 +74,7 @@ type SystemPromptId = OptionsOrString<
| "system.agent_fs"
| "system.agent_git"
| "system.agent_github"
+ | "system.agent_interpreter"
| "system.annotations"
| "system.changelog"
| "system.diagrams"
@@ -107,6 +108,7 @@ type SystemToolId = OptionsOrString<
| "agent_fs"
| "agent_git"
| "agent_github"
+ | "agent_interpreter"
| "fs_find_files"
| "fs_read_file"
| "git_branch_current"
@@ -130,7 +132,8 @@ type SystemToolId = OptionsOrString<
| "github_pulls_review_comments_list"
| "math_eval"
| "md_read_frontmatter"
- | "python_code_interpreter"
+ | "python_code_interpreter_copy_files"
+ | "python_code_interpreter_run"
| "retrieval_fuzz_search"
| "retrieval_vector_search"
| "retrieval_web_search"
diff --git a/docs/src/components/BuiltinTools.mdx b/docs/src/components/BuiltinTools.mdx
index 7cd61fd257..df1e60c935 100644
--- a/docs/src/components/BuiltinTools.mdx
+++ b/docs/src/components/BuiltinTools.mdx
@@ -9,6 +9,7 @@ import { LinkCard } from '@astrojs/starlight/components';
+
@@ -32,7 +33,8 @@ import { LinkCard } from '@astrojs/starlight/components';
-
+
+
diff --git a/docs/src/content/docs/reference/scripts/system.mdx b/docs/src/content/docs/reference/scripts/system.mdx
index 041bf7c1eb..52a9184d0c 100644
--- a/docs/src/content/docs/reference/scripts/system.mdx
+++ b/docs/src/content/docs/reference/scripts/system.mdx
@@ -280,6 +280,65 @@ defTool(
`````
+### `system.agent_interpreter`
+
+Agent that can run code interpreters for Python, Math.
+
+
+
+- tool `agent_interpreter`: Run code interpreters for Python, Math. Use this agent to ground computation questions.
+
+`````js wrap title="system.agent_interpreter"
+system({
+ title: "Agent that can run code interpreters for Python, Math.",
+})
+
+const model = env.vars.agentInterpreterModel
+defTool(
+ "agent_interpreter",
+ "Run code interpreters for Python, Math. Use this agent to ground computation questions.",
+ {
+ query: {
+ type: "string",
+ description: "Query to answer",
+ },
+ required: ["query"],
+ },
+ async (args) => {
+ const { context, query } = args
+ context.log(`agent interpreter: ${query}`)
+ const res = await runPrompt(
+ (_) => {
+ _.def("QUERY", query)
+ _.$`You are an agent that can run code interpreters for Python, Math.
+
+ Analyze and answer QUERY. Use the best tool to ground computation questions.
+
+ - Assume that your answer will be analyzed by an AI, not a human.
+ - Prefer math_eval for math expressions as it is much more efficient.
+ - To use file data in python, prefer copying data files using python_code_interpreter_copy_files rather than inline data in code.
+ - If you cannot answer the query, return an empty string.
+ `
+ },
+ {
+ model,
+ system: [
+ "system",
+ "system.tools",
+ "system.explanations",
+ "system.math",
+ "system.python_code_interpreter",
+ ],
+ label: "agent interpreter",
+ }
+ )
+ return res
+ }
+)
+
+`````
+
+
### `system.annotations`
Emits annotations compatible with GitHub Actions
@@ -1277,7 +1336,8 @@ Python Dockerized code execution for data analysis
-- tool `python_code_interpreter`: Executes python 3.12 code for Data Analysis tasks in a docker container. The process output is returned. Do not generate visualizations. The only packages available are numpy, pandas, scipy. There is NO network connectivity. Do not attempt to install other packages or make web requests.
+- tool `python_code_interpreter_run`: Executes python 3.12 code for Data Analysis tasks in a docker container. The process output is returned. Do not generate visualizations. The only packages available are numpy, pandas, scipy. There is NO network connectivity. Do not attempt to install other packages or make web requests.
+- tool `python_code_interpreter_copy_files`: Copy files from the host file system to the container file system
`````js wrap title="system.python_code_interpreter"
system({
@@ -1288,46 +1348,75 @@ const image = env.vars.pythonImage ?? "python:3.12"
const packages = ["numpy", "pandas", "scipy"]
const queue = host.promiseQueue(1)
-let container = null
+
+/** @type {ContainerHost} */
+let _container = null
+
+/** @type {Promise} */
+const getContainer = queue.add(async () => {
+ if (!_container) {
+ console.log(`python: preparing container...`)
+ _container = await host.container({
+ image,
+ networkEnabled: true,
+ })
+ const res = await _container.exec("pip", [
+ "install",
+ "--root-user-action",
+ "ignore",
+ ...packages,
+ ])
+ if (res.failed) throw new Error(`Failed to install requirements`)
+ await _container.disconnect()
+ }
+ return _container
+})
defTool(
- "python_code_interpreter",
+ "python_code_interpreter_run",
"Executes python 3.12 code for Data Analysis tasks in a docker container. The process output is returned. Do not generate visualizations. The only packages available are numpy, pandas, scipy. There is NO network connectivity. Do not attempt to install other packages or make web requests.",
{
- type: "object",
- properties: {
- main: {
- type: "string",
- description: "python 3.12 source code to execute",
- },
+ main: {
+ type: "string",
+ description: "python 3.12 source code to execute",
},
required: ["main"],
},
- async (args) =>
- // serialize work
- await queue.add(async () => {
- const { main = "" } = args
- console.log(`python code interpreter: ` + main)
- if (!container) {
- console.log(`python: preparing container...`)
- container = await host.container({
- image,
- networkEnabled: true,
- })
- const res = await container.exec("pip", [
- "install",
- "--root-user-action",
- "ignore",
- ...packages,
- ])
- if (res.failed)
- throw new Error(`Failed to install requirements`)
- await container.disconnect()
- }
+ async (args) => {
+ const { main = "" } = args
+ console.log(`python code interpreter: run`)
+ const container = await getContainer
+ return await queue.add(async () => {
await container.writeText("main.py", main)
const res = await container.exec("python", ["main.py"])
return res
})
+ }
+)
+
+defTool(
+ "python_code_interpreter_copy_files",
+ "Copy files from the host file system to the container file system",
+ {
+ from: {
+ type: "string",
+ description: "Host file path",
+ },
+ to: {
+ type: "string",
+ description: "Container file path",
+ },
+ required: ["from"],
+ },
+ async (args) => {
+ const { from, to = "" } = args
+ console.log(`python code interpreter: cp ${from} ${to}`)
+ const container = await getContainer
+ return await queue.add(async () => {
+ await container.copyTo(from, to)
+ return "OK"
+ })
+ }
)
`````
diff --git a/genaisrc/genaiscript.d.ts b/genaisrc/genaiscript.d.ts
index a692b08cde..09451ff875 100644
--- a/genaisrc/genaiscript.d.ts
+++ b/genaisrc/genaiscript.d.ts
@@ -74,6 +74,7 @@ type SystemPromptId = OptionsOrString<
| "system.agent_fs"
| "system.agent_git"
| "system.agent_github"
+ | "system.agent_interpreter"
| "system.annotations"
| "system.changelog"
| "system.diagrams"
@@ -107,6 +108,7 @@ type SystemToolId = OptionsOrString<
| "agent_fs"
| "agent_git"
| "agent_github"
+ | "agent_interpreter"
| "fs_find_files"
| "fs_read_file"
| "git_branch_current"
@@ -130,7 +132,8 @@ type SystemToolId = OptionsOrString<
| "github_pulls_review_comments_list"
| "math_eval"
| "md_read_frontmatter"
- | "python_code_interpreter"
+ | "python_code_interpreter_copy_files"
+ | "python_code_interpreter_run"
| "retrieval_fuzz_search"
| "retrieval_vector_search"
| "retrieval_web_search"
diff --git a/packages/auto/genaiscript.d.ts b/packages/auto/genaiscript.d.ts
index a692b08cde..09451ff875 100644
--- a/packages/auto/genaiscript.d.ts
+++ b/packages/auto/genaiscript.d.ts
@@ -74,6 +74,7 @@ type SystemPromptId = OptionsOrString<
| "system.agent_fs"
| "system.agent_git"
| "system.agent_github"
+ | "system.agent_interpreter"
| "system.annotations"
| "system.changelog"
| "system.diagrams"
@@ -107,6 +108,7 @@ type SystemToolId = OptionsOrString<
| "agent_fs"
| "agent_git"
| "agent_github"
+ | "agent_interpreter"
| "fs_find_files"
| "fs_read_file"
| "git_branch_current"
@@ -130,7 +132,8 @@ type SystemToolId = OptionsOrString<
| "github_pulls_review_comments_list"
| "math_eval"
| "md_read_frontmatter"
- | "python_code_interpreter"
+ | "python_code_interpreter_copy_files"
+ | "python_code_interpreter_run"
| "retrieval_fuzz_search"
| "retrieval_vector_search"
| "retrieval_web_search"
diff --git a/packages/cli/src/docker.ts b/packages/cli/src/docker.ts
index 1fe15307c8..82744a56b7 100644
--- a/packages/cli/src/docker.ts
+++ b/packages/cli/src/docker.ts
@@ -304,7 +304,9 @@ export class DockerManager {
const files = await host.findFiles(from)
for (const file of files) {
const source = host.path.resolve(file)
- const target = host.path.resolve(hostPath, to, file)
+ const target = to
+ ? host.path.resolve(hostPath, to, file)
+ : host.path.resolve(hostPath, file)
await ensureDir(host.path.dirname(target))
await copyFile(source, target)
}
diff --git a/packages/core/src/genaisrc/genaiscript.d.ts b/packages/core/src/genaisrc/genaiscript.d.ts
index a692b08cde..09451ff875 100644
--- a/packages/core/src/genaisrc/genaiscript.d.ts
+++ b/packages/core/src/genaisrc/genaiscript.d.ts
@@ -74,6 +74,7 @@ type SystemPromptId = OptionsOrString<
| "system.agent_fs"
| "system.agent_git"
| "system.agent_github"
+ | "system.agent_interpreter"
| "system.annotations"
| "system.changelog"
| "system.diagrams"
@@ -107,6 +108,7 @@ type SystemToolId = OptionsOrString<
| "agent_fs"
| "agent_git"
| "agent_github"
+ | "agent_interpreter"
| "fs_find_files"
| "fs_read_file"
| "git_branch_current"
@@ -130,7 +132,8 @@ type SystemToolId = OptionsOrString<
| "github_pulls_review_comments_list"
| "math_eval"
| "md_read_frontmatter"
- | "python_code_interpreter"
+ | "python_code_interpreter_copy_files"
+ | "python_code_interpreter_run"
| "retrieval_fuzz_search"
| "retrieval_vector_search"
| "retrieval_web_search"
diff --git a/packages/core/src/genaisrc/system.agent_interpreter.genai.mjs b/packages/core/src/genaisrc/system.agent_interpreter.genai.mjs
new file mode 100644
index 0000000000..502f71ea2c
--- /dev/null
+++ b/packages/core/src/genaisrc/system.agent_interpreter.genai.mjs
@@ -0,0 +1,46 @@
+system({
+ title: "Agent that can run code interpreters for Python, Math.",
+})
+
+const model = env.vars.agentInterpreterModel
+defTool(
+ "agent_interpreter",
+ "Run code interpreters for Python, Math. Use this agent to ground computation questions.",
+ {
+ query: {
+ type: "string",
+ description: "Query to answer",
+ },
+ required: ["query"],
+ },
+ async (args) => {
+ const { context, query } = args
+ context.log(`agent interpreter: ${query}`)
+ const res = await runPrompt(
+ (_) => {
+ _.def("QUERY", query)
+ _.$`You are an agent that can run code interpreters for Python, Math.
+
+ Analyze and answer QUERY. Use the best tool to ground computation questions.
+
+ - Assume that your answer will be analyzed by an AI, not a human.
+ - Prefer math_eval for math expressions as it is much more efficient.
+ - To use file data in python, prefer copying data files using python_code_interpreter_copy_files rather than inline data in code.
+ - If you cannot answer the query, return an empty string.
+ `
+ },
+ {
+ model,
+ system: [
+ "system",
+ "system.tools",
+ "system.explanations",
+ "system.math",
+ "system.python_code_interpreter",
+ ],
+ label: "agent interpreter",
+ }
+ )
+ return res
+ }
+)
diff --git a/packages/core/src/genaisrc/system.python_code_interpreter.genai.mjs b/packages/core/src/genaisrc/system.python_code_interpreter.genai.mjs
index e85e5e3acb..46266c4993 100644
--- a/packages/core/src/genaisrc/system.python_code_interpreter.genai.mjs
+++ b/packages/core/src/genaisrc/system.python_code_interpreter.genai.mjs
@@ -6,44 +6,73 @@ const image = env.vars.pythonImage ?? "python:3.12"
const packages = ["numpy", "pandas", "scipy"]
const queue = host.promiseQueue(1)
-let container = null
+
+/** @type {ContainerHost} */
+let _container = null
+
+/** @type {Promise} */
+const getContainer = queue.add(async () => {
+ if (!_container) {
+ console.log(`python: preparing container...`)
+ _container = await host.container({
+ image,
+ networkEnabled: true,
+ })
+ const res = await _container.exec("pip", [
+ "install",
+ "--root-user-action",
+ "ignore",
+ ...packages,
+ ])
+ if (res.failed) throw new Error(`Failed to install requirements`)
+ await _container.disconnect()
+ }
+ return _container
+})
defTool(
- "python_code_interpreter",
+ "python_code_interpreter_run",
"Executes python 3.12 code for Data Analysis tasks in a docker container. The process output is returned. Do not generate visualizations. The only packages available are numpy, pandas, scipy. There is NO network connectivity. Do not attempt to install other packages or make web requests.",
{
- type: "object",
- properties: {
- main: {
- type: "string",
- description: "python 3.12 source code to execute",
- },
+ main: {
+ type: "string",
+ description: "python 3.12 source code to execute",
},
required: ["main"],
},
- async (args) =>
- // serialize work
- await queue.add(async () => {
- const { main = "" } = args
- console.log(`python code interpreter: ` + main)
- if (!container) {
- console.log(`python: preparing container...`)
- container = await host.container({
- image,
- networkEnabled: true,
- })
- const res = await container.exec("pip", [
- "install",
- "--root-user-action",
- "ignore",
- ...packages,
- ])
- if (res.failed)
- throw new Error(`Failed to install requirements`)
- await container.disconnect()
- }
+ async (args) => {
+ const { context, main = "" } = args
+ context.log(`python code interpreter: run`)
+ const container = await getContainer
+ return await queue.add(async () => {
await container.writeText("main.py", main)
const res = await container.exec("python", ["main.py"])
return res
})
+ }
+)
+
+defTool(
+ "python_code_interpreter_copy_files",
+ "Copy files from the host file system to the container file system",
+ {
+ from: {
+ type: "string",
+ description: "Host file path",
+ },
+ to: {
+ type: "string",
+ description: "Container file path",
+ },
+ required: ["from"],
+ },
+ async (args) => {
+ const { context, from, to = "" } = args
+ context.log(`python code interpreter: cp ${from} ${to}`)
+ const container = await getContainer
+ return await queue.add(async () => {
+ await container.copyTo(from, to)
+ return "OK"
+ })
+ }
)
diff --git a/packages/sample/genaisrc/blog/genaiscript.d.ts b/packages/sample/genaisrc/blog/genaiscript.d.ts
index a692b08cde..09451ff875 100644
--- a/packages/sample/genaisrc/blog/genaiscript.d.ts
+++ b/packages/sample/genaisrc/blog/genaiscript.d.ts
@@ -74,6 +74,7 @@ type SystemPromptId = OptionsOrString<
| "system.agent_fs"
| "system.agent_git"
| "system.agent_github"
+ | "system.agent_interpreter"
| "system.annotations"
| "system.changelog"
| "system.diagrams"
@@ -107,6 +108,7 @@ type SystemToolId = OptionsOrString<
| "agent_fs"
| "agent_git"
| "agent_github"
+ | "agent_interpreter"
| "fs_find_files"
| "fs_read_file"
| "git_branch_current"
@@ -130,7 +132,8 @@ type SystemToolId = OptionsOrString<
| "github_pulls_review_comments_list"
| "math_eval"
| "md_read_frontmatter"
- | "python_code_interpreter"
+ | "python_code_interpreter_copy_files"
+ | "python_code_interpreter_run"
| "retrieval_fuzz_search"
| "retrieval_vector_search"
| "retrieval_web_search"
diff --git a/packages/sample/genaisrc/genaiscript.d.ts b/packages/sample/genaisrc/genaiscript.d.ts
index a692b08cde..09451ff875 100644
--- a/packages/sample/genaisrc/genaiscript.d.ts
+++ b/packages/sample/genaisrc/genaiscript.d.ts
@@ -74,6 +74,7 @@ type SystemPromptId = OptionsOrString<
| "system.agent_fs"
| "system.agent_git"
| "system.agent_github"
+ | "system.agent_interpreter"
| "system.annotations"
| "system.changelog"
| "system.diagrams"
@@ -107,6 +108,7 @@ type SystemToolId = OptionsOrString<
| "agent_fs"
| "agent_git"
| "agent_github"
+ | "agent_interpreter"
| "fs_find_files"
| "fs_read_file"
| "git_branch_current"
@@ -130,7 +132,8 @@ type SystemToolId = OptionsOrString<
| "github_pulls_review_comments_list"
| "math_eval"
| "md_read_frontmatter"
- | "python_code_interpreter"
+ | "python_code_interpreter_copy_files"
+ | "python_code_interpreter_run"
| "retrieval_fuzz_search"
| "retrieval_vector_search"
| "retrieval_web_search"
diff --git a/packages/sample/genaisrc/interpreter.genai.mts b/packages/sample/genaisrc/interpreter.genai.mts
new file mode 100644
index 0000000000..1596975d49
--- /dev/null
+++ b/packages/sample/genaisrc/interpreter.genai.mts
@@ -0,0 +1,5 @@
+script({
+ tools: ["agent_fs", "agent_interpreter"],
+})
+
+$`Analyze the data related to penguins in the files and return a statistical analysis as a markdown table. The data is stored in the files "penguins.csv".`
diff --git a/packages/sample/genaisrc/node/genaiscript.d.ts b/packages/sample/genaisrc/node/genaiscript.d.ts
index a692b08cde..09451ff875 100644
--- a/packages/sample/genaisrc/node/genaiscript.d.ts
+++ b/packages/sample/genaisrc/node/genaiscript.d.ts
@@ -74,6 +74,7 @@ type SystemPromptId = OptionsOrString<
| "system.agent_fs"
| "system.agent_git"
| "system.agent_github"
+ | "system.agent_interpreter"
| "system.annotations"
| "system.changelog"
| "system.diagrams"
@@ -107,6 +108,7 @@ type SystemToolId = OptionsOrString<
| "agent_fs"
| "agent_git"
| "agent_github"
+ | "agent_interpreter"
| "fs_find_files"
| "fs_read_file"
| "git_branch_current"
@@ -130,7 +132,8 @@ type SystemToolId = OptionsOrString<
| "github_pulls_review_comments_list"
| "math_eval"
| "md_read_frontmatter"
- | "python_code_interpreter"
+ | "python_code_interpreter_copy_files"
+ | "python_code_interpreter_run"
| "retrieval_fuzz_search"
| "retrieval_vector_search"
| "retrieval_web_search"
diff --git a/packages/sample/genaisrc/python/genaiscript.d.ts b/packages/sample/genaisrc/python/genaiscript.d.ts
index a692b08cde..09451ff875 100644
--- a/packages/sample/genaisrc/python/genaiscript.d.ts
+++ b/packages/sample/genaisrc/python/genaiscript.d.ts
@@ -74,6 +74,7 @@ type SystemPromptId = OptionsOrString<
| "system.agent_fs"
| "system.agent_git"
| "system.agent_github"
+ | "system.agent_interpreter"
| "system.annotations"
| "system.changelog"
| "system.diagrams"
@@ -107,6 +108,7 @@ type SystemToolId = OptionsOrString<
| "agent_fs"
| "agent_git"
| "agent_github"
+ | "agent_interpreter"
| "fs_find_files"
| "fs_read_file"
| "git_branch_current"
@@ -130,7 +132,8 @@ type SystemToolId = OptionsOrString<
| "github_pulls_review_comments_list"
| "math_eval"
| "md_read_frontmatter"
- | "python_code_interpreter"
+ | "python_code_interpreter_copy_files"
+ | "python_code_interpreter_run"
| "retrieval_fuzz_search"
| "retrieval_vector_search"
| "retrieval_web_search"
diff --git a/packages/sample/genaisrc/style/genaiscript.d.ts b/packages/sample/genaisrc/style/genaiscript.d.ts
index a692b08cde..09451ff875 100644
--- a/packages/sample/genaisrc/style/genaiscript.d.ts
+++ b/packages/sample/genaisrc/style/genaiscript.d.ts
@@ -74,6 +74,7 @@ type SystemPromptId = OptionsOrString<
| "system.agent_fs"
| "system.agent_git"
| "system.agent_github"
+ | "system.agent_interpreter"
| "system.annotations"
| "system.changelog"
| "system.diagrams"
@@ -107,6 +108,7 @@ type SystemToolId = OptionsOrString<
| "agent_fs"
| "agent_git"
| "agent_github"
+ | "agent_interpreter"
| "fs_find_files"
| "fs_read_file"
| "git_branch_current"
@@ -130,7 +132,8 @@ type SystemToolId = OptionsOrString<
| "github_pulls_review_comments_list"
| "math_eval"
| "md_read_frontmatter"
- | "python_code_interpreter"
+ | "python_code_interpreter_copy_files"
+ | "python_code_interpreter_run"
| "retrieval_fuzz_search"
| "retrieval_vector_search"
| "retrieval_web_search"
diff --git a/packages/sample/src/aici/genaiscript.d.ts b/packages/sample/src/aici/genaiscript.d.ts
index a692b08cde..09451ff875 100644
--- a/packages/sample/src/aici/genaiscript.d.ts
+++ b/packages/sample/src/aici/genaiscript.d.ts
@@ -74,6 +74,7 @@ type SystemPromptId = OptionsOrString<
| "system.agent_fs"
| "system.agent_git"
| "system.agent_github"
+ | "system.agent_interpreter"
| "system.annotations"
| "system.changelog"
| "system.diagrams"
@@ -107,6 +108,7 @@ type SystemToolId = OptionsOrString<
| "agent_fs"
| "agent_git"
| "agent_github"
+ | "agent_interpreter"
| "fs_find_files"
| "fs_read_file"
| "git_branch_current"
@@ -130,7 +132,8 @@ type SystemToolId = OptionsOrString<
| "github_pulls_review_comments_list"
| "math_eval"
| "md_read_frontmatter"
- | "python_code_interpreter"
+ | "python_code_interpreter_copy_files"
+ | "python_code_interpreter_run"
| "retrieval_fuzz_search"
| "retrieval_vector_search"
| "retrieval_web_search"
diff --git a/packages/sample/src/errors/genaiscript.d.ts b/packages/sample/src/errors/genaiscript.d.ts
index a692b08cde..09451ff875 100644
--- a/packages/sample/src/errors/genaiscript.d.ts
+++ b/packages/sample/src/errors/genaiscript.d.ts
@@ -74,6 +74,7 @@ type SystemPromptId = OptionsOrString<
| "system.agent_fs"
| "system.agent_git"
| "system.agent_github"
+ | "system.agent_interpreter"
| "system.annotations"
| "system.changelog"
| "system.diagrams"
@@ -107,6 +108,7 @@ type SystemToolId = OptionsOrString<
| "agent_fs"
| "agent_git"
| "agent_github"
+ | "agent_interpreter"
| "fs_find_files"
| "fs_read_file"
| "git_branch_current"
@@ -130,7 +132,8 @@ type SystemToolId = OptionsOrString<
| "github_pulls_review_comments_list"
| "math_eval"
| "md_read_frontmatter"
- | "python_code_interpreter"
+ | "python_code_interpreter_copy_files"
+ | "python_code_interpreter_run"
| "retrieval_fuzz_search"
| "retrieval_vector_search"
| "retrieval_web_search"
diff --git a/packages/sample/src/genaiscript.d.ts b/packages/sample/src/genaiscript.d.ts
index a692b08cde..09451ff875 100644
--- a/packages/sample/src/genaiscript.d.ts
+++ b/packages/sample/src/genaiscript.d.ts
@@ -74,6 +74,7 @@ type SystemPromptId = OptionsOrString<
| "system.agent_fs"
| "system.agent_git"
| "system.agent_github"
+ | "system.agent_interpreter"
| "system.annotations"
| "system.changelog"
| "system.diagrams"
@@ -107,6 +108,7 @@ type SystemToolId = OptionsOrString<
| "agent_fs"
| "agent_git"
| "agent_github"
+ | "agent_interpreter"
| "fs_find_files"
| "fs_read_file"
| "git_branch_current"
@@ -130,7 +132,8 @@ type SystemToolId = OptionsOrString<
| "github_pulls_review_comments_list"
| "math_eval"
| "md_read_frontmatter"
- | "python_code_interpreter"
+ | "python_code_interpreter_copy_files"
+ | "python_code_interpreter_run"
| "retrieval_fuzz_search"
| "retrieval_vector_search"
| "retrieval_web_search"
diff --git a/packages/sample/src/makecode/genaiscript.d.ts b/packages/sample/src/makecode/genaiscript.d.ts
index a692b08cde..09451ff875 100644
--- a/packages/sample/src/makecode/genaiscript.d.ts
+++ b/packages/sample/src/makecode/genaiscript.d.ts
@@ -74,6 +74,7 @@ type SystemPromptId = OptionsOrString<
| "system.agent_fs"
| "system.agent_git"
| "system.agent_github"
+ | "system.agent_interpreter"
| "system.annotations"
| "system.changelog"
| "system.diagrams"
@@ -107,6 +108,7 @@ type SystemToolId = OptionsOrString<
| "agent_fs"
| "agent_git"
| "agent_github"
+ | "agent_interpreter"
| "fs_find_files"
| "fs_read_file"
| "git_branch_current"
@@ -130,7 +132,8 @@ type SystemToolId = OptionsOrString<
| "github_pulls_review_comments_list"
| "math_eval"
| "md_read_frontmatter"
- | "python_code_interpreter"
+ | "python_code_interpreter_copy_files"
+ | "python_code_interpreter_run"
| "retrieval_fuzz_search"
| "retrieval_vector_search"
| "retrieval_web_search"
diff --git a/packages/sample/src/tla/genaiscript.d.ts b/packages/sample/src/tla/genaiscript.d.ts
index a692b08cde..09451ff875 100644
--- a/packages/sample/src/tla/genaiscript.d.ts
+++ b/packages/sample/src/tla/genaiscript.d.ts
@@ -74,6 +74,7 @@ type SystemPromptId = OptionsOrString<
| "system.agent_fs"
| "system.agent_git"
| "system.agent_github"
+ | "system.agent_interpreter"
| "system.annotations"
| "system.changelog"
| "system.diagrams"
@@ -107,6 +108,7 @@ type SystemToolId = OptionsOrString<
| "agent_fs"
| "agent_git"
| "agent_github"
+ | "agent_interpreter"
| "fs_find_files"
| "fs_read_file"
| "git_branch_current"
@@ -130,7 +132,8 @@ type SystemToolId = OptionsOrString<
| "github_pulls_review_comments_list"
| "math_eval"
| "md_read_frontmatter"
- | "python_code_interpreter"
+ | "python_code_interpreter_copy_files"
+ | "python_code_interpreter_run"
| "retrieval_fuzz_search"
| "retrieval_vector_search"
| "retrieval_web_search"
diff --git a/packages/sample/src/vision/genaiscript.d.ts b/packages/sample/src/vision/genaiscript.d.ts
index a692b08cde..09451ff875 100644
--- a/packages/sample/src/vision/genaiscript.d.ts
+++ b/packages/sample/src/vision/genaiscript.d.ts
@@ -74,6 +74,7 @@ type SystemPromptId = OptionsOrString<
| "system.agent_fs"
| "system.agent_git"
| "system.agent_github"
+ | "system.agent_interpreter"
| "system.annotations"
| "system.changelog"
| "system.diagrams"
@@ -107,6 +108,7 @@ type SystemToolId = OptionsOrString<
| "agent_fs"
| "agent_git"
| "agent_github"
+ | "agent_interpreter"
| "fs_find_files"
| "fs_read_file"
| "git_branch_current"
@@ -130,7 +132,8 @@ type SystemToolId = OptionsOrString<
| "github_pulls_review_comments_list"
| "math_eval"
| "md_read_frontmatter"
- | "python_code_interpreter"
+ | "python_code_interpreter_copy_files"
+ | "python_code_interpreter_run"
| "retrieval_fuzz_search"
| "retrieval_vector_search"
| "retrieval_web_search"
diff --git a/packages/vscode/genaisrc/genaiscript.d.ts b/packages/vscode/genaisrc/genaiscript.d.ts
index a692b08cde..09451ff875 100644
--- a/packages/vscode/genaisrc/genaiscript.d.ts
+++ b/packages/vscode/genaisrc/genaiscript.d.ts
@@ -74,6 +74,7 @@ type SystemPromptId = OptionsOrString<
| "system.agent_fs"
| "system.agent_git"
| "system.agent_github"
+ | "system.agent_interpreter"
| "system.annotations"
| "system.changelog"
| "system.diagrams"
@@ -107,6 +108,7 @@ type SystemToolId = OptionsOrString<
| "agent_fs"
| "agent_git"
| "agent_github"
+ | "agent_interpreter"
| "fs_find_files"
| "fs_read_file"
| "git_branch_current"
@@ -130,7 +132,8 @@ type SystemToolId = OptionsOrString<
| "github_pulls_review_comments_list"
| "math_eval"
| "md_read_frontmatter"
- | "python_code_interpreter"
+ | "python_code_interpreter_copy_files"
+ | "python_code_interpreter_run"
| "retrieval_fuzz_search"
| "retrieval_vector_search"
| "retrieval_web_search"
diff --git a/slides/genaisrc/genaiscript.d.ts b/slides/genaisrc/genaiscript.d.ts
index a692b08cde..09451ff875 100644
--- a/slides/genaisrc/genaiscript.d.ts
+++ b/slides/genaisrc/genaiscript.d.ts
@@ -74,6 +74,7 @@ type SystemPromptId = OptionsOrString<
| "system.agent_fs"
| "system.agent_git"
| "system.agent_github"
+ | "system.agent_interpreter"
| "system.annotations"
| "system.changelog"
| "system.diagrams"
@@ -107,6 +108,7 @@ type SystemToolId = OptionsOrString<
| "agent_fs"
| "agent_git"
| "agent_github"
+ | "agent_interpreter"
| "fs_find_files"
| "fs_read_file"
| "git_branch_current"
@@ -130,7 +132,8 @@ type SystemToolId = OptionsOrString<
| "github_pulls_review_comments_list"
| "math_eval"
| "md_read_frontmatter"
- | "python_code_interpreter"
+ | "python_code_interpreter_copy_files"
+ | "python_code_interpreter_run"
| "retrieval_fuzz_search"
| "retrieval_vector_search"
| "retrieval_web_search"