Questa pagina è in inglese.
Graph view
How decision traces show up as a call graph in the Strike console.
The console graph view draws one agent run from the spans sent to POST /v1/traces, including runs written by the strike-ai MCP server.
Send a run
With pip install strike-ai, set STRIKE_API_KEY and leave tracing on (default). Each MCP tool call becomes a decision span under project mcp (or STRIKE_PROJECT).
bash
export STRIKE_API_KEY="your_key_here"
python -m strike_ai.mcpThen open Traces in the console and pick the run. Set STRIKE_TRACE=0 to send the decision and store nothing.
You can also post a TraceBatch yourself to POST /v1/traces (gzip JSON). See the API reference.
Reading the graph
| Span | Drawn as |
|---|---|
run | Root node, with the run name and latency |
step with metadata.kind = llm | LLM call, with metadata.provider and metadata.model |
step with metadata.kind = tool | Tool call, with metadata.tool and metadata.host if set |
step with metadata.kind = step or node | Generic step |
decision | strike-1 node with its options and probabilities |
Edges go from parent_id to span_id.
Decision branches
Each option in decision.options gets an edge labelled with its probability.
- The edge that matches
decision.path_takenis solid. That is the branch your code took. - The other edges are dashed.
- When
decision.metadata.fallback.usedistrue, the answer edge is dimmed and an extra edge goes tofallback.to, labelled withfallback.reason.
Nothing shows up
- Is
STRIKE_API_KEYset? - Is tracing on (
STRIKE_TRACEis not0)? - Is a project set (
STRIKE_PROJECT, defaultmcpfor the MCP server)? - Is the key valid? See Authentication.