Skip to main content

handle_fresh_self

Function handle_fresh_self 

Source
pub(crate) async fn handle_fresh_self(
    __arg0: State<AppState>,
    caller: Option<Extension<Caller>>,
    __arg2: Json<SelfContextRequest>,
) -> Response
Expand description

POST /api/v1/agent/self/fresh: scheduled (when the caller’s turn ends, its session ends and a new one starts with the handoff) or refused. focus carries the handoff here.