Skip to main content

process_turn

Function process_turn 

Source
pub async fn process_turn(
    __arg0: State<Arc<AppState>>,
    agent: Option<Extension<AuthenticatedAgent>>,
    __arg2: Json<Value>,
) -> Result<impl IntoResponse, ApiError>
Expand description

Run the full cognitive turn pipeline: embed, recall context, store the turn, reconcile, analyze. The same engine call the hosted platform serves; self-hosters get the one-call pipeline instead of assembling it from the store and recall primitives. Delta serving is tracked per agent across requests via AppState::turn_trackers.