Skip to main content

agent_render_size

Function agent_render_size 

Source
pub async fn agent_render_size(
    __arg0: State<AppState>,
    __arg1: Path<String>,
) -> Json<AgentRenderSizeResponse>
Expand description

GET /v1/agents/:name/render-size (GH #31). Live per-agent-name lookup of the most-recently-baked system_prompt render size, backing bp_doctor’s post-render size check. No Bearer required — same unauthenticated trust tier as GET /v1/blueprints/:id/head (blueprints::get_head), an operator-diagnostic route.

last_rendered_bytes: null is a normal, expected response (a freshly-added agent that has never been dispatched yet) — always 200 OK, never a 404.