Diagnose strategy (AI debugger)
diagnose_strategyRun a sample backtest to diagnose why a strategy produces zero trades or poor returns, and get a structured issue list plus an optional edit request.
Instructions
Ask Pyon's AI debugger to analyze a strategy, running a fresh sample backtest as evidence; waits up to 300s. Use this when run_backtest shows zero trades, poor returns, or confusing diagnostics and you need a causal explanation before editing. Parameters: strategyId (UUID, required); question (string, 10 to 2000 characters, optional) - ask something specific such as 'why did this take zero trades in 2025?', or omit it entirely for a general health check. Returns a diagnosis message, a structured list of up to 10 issues, and, when available, a ready-to-use edit request (agentRequest) that can be passed directly to edit_strategy as the instruction. If the wait times out, the error includes a jobId to check with get_job_status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| question | No | Optional specific question, at least 10 characters, e.g. 'why did this take zero trades in 2025?'. Omit it entirely for a general health check. | |
| strategyId | Yes | Strategy UUID. Find it with list_strategies (it is also returned by create_strategy). Not a strategy name. |