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
@@ -165,9 +161,7 @@ const api = OpenAPI.fromSpec({
165
161
spec: awaitBun.file("openapi.json").json(), // parsed document (no YAML)
0 commit comments