# Prefect Kilo Code API Evaluation

**Category:** Durable Workflow
**Score:** 97 (A)

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

## Summary

| Metric | Value |
|--------|-------|
| Status | completed |
| Overall score | 97 |
| Grade | A |
| Eval score | 96 |
| Discovery score | 100 |
| Cost | $0.04 |
| Runtime | 55s |
| Tool calls | 7 |
| Errors | 0 |
| Tokens used | 157847 |
| 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-mcp-server |
| CLI | https://docs.prefect.io/v3/api-ref/cli/ |

## 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 | 1 | $0.04 (<$0.10, excellent) |
| Time | Yes | 0 | 1 | 55s (<60s, excellent) |
| Efficiency | Yes | 0 | 1 | 7 tool calls (≤10, great) |
| Found Docs | Yes | 0 | — | Touched docs at docs.prefect.io: yes (4 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: 2 (need ≥1) |
| Full Execution | Yes | 0 | — | Method: full_execution, Exit: 0 |

## Run Artifacts

| Artifact | Value |
|----------|-------|
| Conversation turns | 8 |
| Tool call traces | 7 |
| Generated files | 2 |
| Exit code | 0 |
| Completed at | 2026-10-20T18:55:47.52608+00:00 |

### Generated Files

- /home/daytona/app/opencode.json
- /home/daytona/app/prefect_workflow.py

## Related Pages

- [Kilo Code API leaderboard](/kilo/api)
- [Compare Kilo Code API companies](/kilo/api/compare)
- [Agent Landscape](/discoverability)

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