Skip to main content

Module parse

Module parse 

Source
Expand description

JSON parser for the router LLM response.

Accepts raw text, strips any accidental fencing, and extracts the first JSON object we can parse into a RouterPlan.

Structs§

RouterPlan
Parsed plan returned by the router model.

Functions§

parse_router_response
Parse a router response string into a RouterPlan.