Skip to main content

compact_response

Function compact_response 

Source
pub async fn compact_response(
    request: CompactRequest,
    exec_ctx: &ExecutionContext,
    auth: Option<&str>,
) -> ExecutorResult<CompactedResponse>
Expand description

Compact direct input or a stored previous-response chain into a reusable item window.

ยงErrors

Returns an invalid-request error when neither input nor a previous response ID is supplied, and propagates history, inference, and persistence failures.