You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CodeMode lets a model write a small JavaScript program that can call only the tools supplied by the host. The program can sequence calls, transform plain data, branch, loop, and run independent calls in parallel without receiving ambient filesystem, process, network, module, or application authority.
6
6
7
-
The package is currently private to this workspace. Its API is designed around three uses:
7
+
The package is currently private to this workspace. Its API is designed around one-shot and reusable execution:
`catalog`, `instructions`, and `agentTool` are projections of the same configured tool tree. `agentTool().description` is exactly `instructions()`.
119
+
`CodeMode.Input`and `CodeMode.Result` are Effect schemas for the execution request and result. Hosts can combine them with `runtime.instructions()` and `runtime.execute()` when constructing a framework-specific agent tool.
124
120
125
121
### Results
126
122
@@ -333,8 +329,6 @@ A program cannot gain authority through prose or generated code. It can only exe
333
329
The public contract is guided by these equivalences:
334
330
335
331
-`CodeMode.execute({ ...options, code })` is equivalent to `CodeMode.make(options).execute(code)`.
336
-
-`CodeMode.make(options).agentTool().execute({ code })` is equivalent to `CodeMode.make(options).execute(code)`.
0 commit comments