Zum Hauptinhalt springen
Überblick

Diese Seite ist auf Englisch.

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.mcp

Then 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

SpanDrawn as
runRoot node, with the run name and latency
step with metadata.kind = llmLLM call, with metadata.provider and metadata.model
step with metadata.kind = toolTool call, with metadata.tool and metadata.host if set
step with metadata.kind = step or nodeGeneric step
decisionstrike-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_taken is solid. That is the branch your code took.
  • The other edges are dashed.
  • When decision.metadata.fallback.used is true, the answer edge is dimmed and an extra edge goes to fallback.to, labelled with fallback.reason.

Nothing shows up

  1. Is STRIKE_API_KEY set?
  2. Is tracing on (STRIKE_TRACE is not 0)?
  3. Is a project set (STRIKE_PROJECT, default mcp for the MCP server)?
  4. Is the key valid? See Authentication.
Strike AI | Graph view