name: api-triage-agent version: 1.0.0 description: AI agent debugs API failures using curriculum learning environment: class: environment.api_triage_env.APITriageEnv max_steps: 10 observation_space: step: int max_steps: int incident_summary: str logs: list response_code: int fix_applied: bool is_resolved: bool action_space: - inspect_logs - inspect_request - refresh_token - add_field - wait_retry - change_endpoint - escalate - resolve reward_range: [-20, 20] tasks: - id: "auth_error" name: "Authentication Error" description: "Diagnose and fix a 401 Unauthorized error caused by an expired API key" difficulty: "easy" grader: "tasks.auth_error.grader:grade" - id: "missing_fields" name: "Missing Field Error" description: "Diagnose and fix a 400 Bad Request error caused by a missing required field" difficulty: "easy" grader: "tasks.missing_fields.grader:grade" - id: "rate_limit" name: "Rate Limit Error" description: "Diagnose and fix a 429 Too Many Requests error by applying retry logic" difficulty: "medium" grader: "tasks.rate_limit.grader:grade" - id: "timeout" name: "Timeout Error" description: "Diagnose and fix a 408 Request Timeout error by applying retry with backoff" difficulty: "medium" grader: "tasks.timeout.grader:grade" - id: "wrong_endpoint" name: "Wrong Endpoint Error" description: "Diagnose and fix a 404 Not Found error by changing to the correct endpoint" difficulty: "medium" grader: "tasks.wrong_endpoint.grader:grade" - id: "server_error" name: "Server Error" description: "Diagnose and handle a 500 Internal Server Error by escalating appropriately" difficulty: "hard" grader: "tasks.server_error.grader:grade"