# Prefect Gemini API Evaluation

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

This is the agent-readable Devtool Arena evaluation page for Prefect on Gemini API.

## Summary

| Metric | Value |
|--------|-------|
| Status | completed |
| Overall score | 79 |
| Grade | B |
| Eval score | 71 |
| Discovery score | 100 |
| Cost | $0.29 |
| Runtime | 5m 44s |
| Tool calls | 24 |
| Errors | 0 |
| Tokens used | 475513 |
| Success | Yes |

## Agent-Readiness Checklist

| Signal | Evidence |
|--------|----------|
| Context7 | https://context7.com/prefecthq/prefect |
| llms.txt | https://docs.prefect.io/llms.txt |
| MCP server | https://github.com/PrefectHQ/prefect-mcp-server |
| Typed SDK | https://github.com/PrefectHQ/prefect/blob/main/src/prefect/py.typed |
| OpenAPI | https://api.prefect.cloud/api/openapi.json |
| Agent skills | https://github.com/PrefectHQ/prefect/blob/main/AGENTS.md |
| CLI | https://docs.prefect.io/v3/get-started/install |

## Evaluation Prompt

````text

# Task
Using https://docs.prefect.io, complete the following task:

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

1. Install the official Prefect 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 Prefect 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.29 ($0.20–0.40, good) |
| Time | No | 0 | 0 | 344s (5–10min, very slow) |
| Efficiency | Yes | 0 | 0 | 24 tool calls (≤25, below average) |
| Found Docs | Yes | 0 | — | Touched docs at docs.prefect.io: yes (8 matching tool calls) |
| Zero Errors | Yes | 0 | — | No errors in tool outputs |
| Syntax Valid | Yes | 0 | — | Code compiles/parses correctly |
| Created Files | Yes | 0 | — | Generated files: 1 (need ≥1) |
| Full Execution | Yes | 0 | — | Method: full_execution, Exit: 0 |

## Run Artifacts

| Artifact | Value |
|----------|-------|
| Conversation turns | 25 |
| Tool call traces | 24 |
| Generated files | 1 |
| Exit code | 0 |
| Completed at | 2026-10-16T00:09:54.791897+00:00 |

### Generated Files

- /home/daytona/app/workflow.py

## Related Pages

- [Gemini API leaderboard](/leaderboard/gemini/api)
- [Compare Gemini API companies](/leaderboard/gemini/api/compare)
- [Agent Landscape](/leaderboard/discoverability)

Canonical URL: https://devtoolarena.com/gemini/api/prefect
