# Restate Codex API Evaluation

**Category:** Durable Workflow
**Score:** 78 (B)

This is the agent-readable Devtool Arena evaluation page for Restate on Codex API.

## Summary

| Metric | Value |
|--------|-------|
| Status | completed |
| Overall score | 78 |
| Grade | B |
| Eval score | 68 |
| Discovery score | 100 |
| Cost | $0.36 |
| Runtime | 2m 5s |
| Tool calls | 44 |
| Errors | 8 |
| Tokens used | 1718104 |
| Success | Yes |

## Agent-Readiness Checklist

| Signal | Evidence |
|--------|----------|
| Context7 | https://context7.com/restatedev/restate |
| llms.txt | https://docs.restate.dev/llms.txt |
| MCP server | https://docs.restate.dev/develop/ai-assistant |
| Typed SDK | https://github.com/restatedev/sdk-typescript |
| OpenAPI | https://docs.restate.dev/schemas/openapi-admin.json |
| Agent skills | https://github.com/restatedev/skills |
| CLI | https://docs.restate.dev/get_started/quickstart |

## Evaluation Prompt

````text

# Task
Using https://docs.restate.dev, complete the following task:

Using the Restate Python SDK, build me a script that defines and executes a simple 3-step workflow:

1. Install the official Restate Python SDK (pip install)
2. Define a workflow with 3 steps using the SDK's workflow primitives:
   - Step 1: Generate a random order ID
   - Step 2: "Process" the order (simulate with a 1 second sleep)
   - Step 3: Return the order status as "completed"
3. Execute the workflow and print the result as JSON with fields: order_id, status, steps_completed

You MUST use the official Restate Python SDK and its workflow/activity decorators or primitives — do not just write a plain Python script with sleep() calls. 

## Execution
After creating the script, run it to verify it works:
```bash
cd /home/daytona/app && python <your_script>.py
```

The script should print output to stdout. If there are errors, debug and fix them until it runs successfully.

````

## Grader Results

| Check | Passed | Weight | Score | Details |
|-------|--------|--------|-------|---------|
| Cost | Yes | 0 | 0 | $0.36 ($0.20–0.40, good) |
| Time | Yes | 0 | 0 | 125s (2–3min, good) |
| Efficiency | No | 0 | 0 | 44 tool calls (>25, inefficient) |
| Found Docs | Yes | 0 | — | Touched docs at docs.restate.dev: yes (26 matching tool calls) |
| Zero Errors | No | 0 | — | Tool outputs with errors/tracebacks: 8 |
| Syntax Valid | Yes | 0 | — | Code compiles/parses correctly |
| Created Files | Yes | 0 | — | Generated files: 2 (need ≥1) |
| Full Execution | Yes | 0 | — | Method: full_execution, Exit: 0 |

## Run Artifacts

| Artifact | Value |
|----------|-------|
| Conversation turns | 50 |
| Tool call traces | 44 |
| Generated files | 2 |
| Exit code | 0 |
| Completed at | 2026-09-26T17:47:16.22191+00:00 |

### Generated Files

- /home/daytona/app/requirements.txt
- /home/daytona/app/order_workflow.py

## Related Pages

- [Codex API leaderboard](/leaderboard/codex/api)
- [Compare Codex API companies](/leaderboard/codex/api/compare)
- [Agent Landscape](/leaderboard/discoverability)

Canonical URL: https://devtoolarena.com/codex/api/restate
