Skip to main content

Module prompt

Module prompt 

Source
Expand description

Prompt builder for the LLM-based search router.

Produces the single user-turn prompt that instructs the router model to pick one (or more) backends for a user query and return structured JSON. Router must emit JSON only — no markdown.

Constants§

ROUTER_SYSTEM
System message for the router model.

Functions§

build_user_prompt
Build the user prompt.