mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-16 21:03:46 +00:00
chore: simplify cloudflare compatibility (#191)
This commit is contained in:
parent
03e06e956d
commit
4201bd204b
10 changed files with 418 additions and 249 deletions
|
|
@ -36,6 +36,16 @@ Test the endpoint:
|
|||
curl http://localhost:8787
|
||||
```
|
||||
|
||||
Test prompt routing through the SDK with a custom sandbox fetch handler:
|
||||
|
||||
```bash
|
||||
curl -X POST "http://localhost:8787/sandbox/demo/prompt" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"agent":"codex","prompt":"Reply with one short sentence."}'
|
||||
```
|
||||
|
||||
The response includes `events`, an array of all recorded session events for that prompt.
|
||||
|
||||
## Deploy
|
||||
|
||||
```bash
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue