handle_resolve_agent

Function handle_resolve_agent 

Source
async fn handle_resolve_agent(
    __arg0: State<(AppState, (Arc<ToolRegistry>, Arc<AgentRegistry>))>,
    __arg1: Path<String>,
    __arg2: Json<Value>,
) -> Result<Json<Value>, AppError>
Expand description

Handler for POST /agents/{name}/prompt.

Resolves an agent’s system prompt by calling its resolve() method. For TOML agents, this returns the static prompt. For Lua agents, this executes the script’s agent.resolve() function with the provided arguments and access to the context bridge (search, get, sources).

Returns 404 if the agent is not found.