Skip to main content

handle_agent_preset_get

Function handle_agent_preset_get 

Source
pub(super) async fn handle_agent_preset_get(
    __arg0: State<AppState>,
    caller: Option<Extension<Caller>>,
    __arg2: Query<AgentPresetGetQuery>,
) -> impl IntoResponse
Expand description

GET /api/v1/agent/preset/get?agent_id=<slug>&id=&name= — fetch a preset by id or name; with neither, return the agent’s own bound preset (self). Backs the PresetGet MCP tool.