multibranch

Branching router agent: a tool path and a retrieval path that rejoin.
version0.2

Nodes

Weather in Berlin

branch: planner · outcome: answered · latency_ms: 10210

user_input · 13:14:05

Input What's the weather in Berlin?

router · 13:14:05

llm_input Pick a route for the request...

llm_output {"route": "planner", "confidence": 0.92}

planner · 13:14:05

llm_input Decompose into tool calls...

llm_output {"plan": ["weather_api(city='Berlin')"]}

tool_node · 13:14:05

generator · 13:14:05

llm_input Answer using the tool result...

llm_output It's 19C and partly cloudy in Berlin.

final_response · 13:14:05

Output It's 19C and partly cloudy in Berlin.

Summarize research paper

branch: retriever · outcome: answered · docs_used: 2 · latency_ms: 7130

user_input · 13:14:05

Input Summarize the attached research paper.

router · 13:14:05

llm_input Pick a route for the request...

llm_output {"route": "retriever", "confidence": 0.88}

retriever · 13:14:05

Input
{
  "topK": 4,
  "namespace": "papers"
}
Retrieved docs
[
  {
    "id": "doc-7",
    "score": 0.81
  },
  {
    "id": "doc-2",
    "score": 0.77
  }
]

generator · 13:14:05

llm_input Summarize the retrieved documents...

llm_output The paper proposes a sparse attention variant with near-linear cost.

final_response · 13:14:05

Output The paper proposes a sparse attention variant with near-linear cost.