Skip to main content

Graph View

Interactive visualization of AI agent workflows showing component relationships, execution flow, and data dependencies.
Graph metadata is added by developers during trace creation. See Development documentation for implementation details.
Graph View

When to Use

Complex workflows - Multi-step agents, conditional logic, parallel operations Debugging - Trace errors, identify bottlenecks, understand behavior Optimization - Find redundant operations, parallelization opportunities Documentation - Explain architecture, train team members

How Graphs Are Generated

AgentMark supports two graph generation modes: Manual mode — When spans include graph.node.* metadata attributes, the graph is built from those explicit relationships. This gives you full control over the layout and node classification. Auto-generation mode — When no graph metadata is present, nodes are grouped automatically by parent span and span name. Node types are inferred from span content (e.g., generation spans become LLM nodes, spans with tool calls become Tool nodes).

Graph Metadata Attributes

Set these attributes in your span metadata to control the graph layout:
AttributeDescription
graph.node.idUnique node identifier
graph.node.typeNode type for styling (see Node Types below)
graph.node.display_nameHuman-readable label shown in the graph
graph.node.parent_idSingle parent node ID
graph.node.parent_idsJSON array of parent node IDs (for nodes with multiple parents)

Node Types

TypeIconDescription
RouterBranch iconOrchestration and routing decisions
LLMRobot iconModel inference, shows model name and tokens
ToolWrench iconFunction calls, shows duration and status
RetrievalMagnify iconDatabase or search queries
MemoryDatabase iconStorage and caching operations
AgentAccount iconMulti-step agent reasoning
In auto-generation mode, node types are inferred by:
  1. LLM — Span is a generation type
  2. Tool — Span contains tool call data
  3. Agent — Span has child spans (sub-workflows)
  4. Name-based — Span name contains keywords like retrieval, router, memory, or tool

Edge Types

Sequential — Solid lines showing step-by-step execution Parallel — Multiple edges from same source (concurrent operations) Conditional — Labeled edges showing which branch was taken Data Flow — Shows data passing between nodes Bidirectional edges (A → B and B → A) are displayed as a single edge with arrows on both ends.

Interactive Features

Navigation — Drag to pan, scroll to zoom, double-click to center, fit-to-screen button Node Details — Click nodes to see inputs, outputs, execution time, tokens, errors Path Highlighting — Show critical path (bottlenecks), error paths, or data flow

Keyboard Shortcuts

Space + Drag pan | +/- zoom | F fit | Click select | H/V/C layouts

Next Steps

Have Questions?

We’re here to help! Choose the best way to reach us: