The OpenAI Agents SDK (@openai/agents) shipsDocumentation Index
Fetch the complete documentation index at: https://docs.mirage.strukto.ai/llms.txt
Use this file to discover all available pages before exploring further.
shellTool and applyPatchTool primitives that take pluggable Shell and Editor backends. Mirage provides MirageShell and MirageEditor implementations that route every command and patch through your Workspace instead of the host shell.
Install
@struktoai/mirage-agents/openai is runtime-agnostic. Pair it with @struktoai/mirage-node for Node or @struktoai/mirage-browser for the browser.
Usage
Exports
| Symbol | Purpose |
|---|---|
MirageShell | Shell implementation; pass to shellTool({ shell }). |
MirageEditor | Editor implementation; pass to applyPatchTool({ editor }). |
buildSystemPrompt | Generates a system prompt that describes mounted paths to the model. |
MIRAGE_SYSTEM_PROMPT | The default system prompt template (used by buildSystemPrompt). |
Examples
examples/typescript/agents/openai/ram_agent.ts, RAM-only sandbox.examples/typescript/agents/openai/multi_resource_agent.ts, RAM + S3 mounts.examples/typescript/agents/openai/snapshot.ts, branch & roll back agent state.