Skip to main content

summary_request

Function summary_request 

Source
pub fn summary_request(
    messages: &[impl Borrow<Message>],
    (previous, instructions): (Option<&SummaryState>, &str),
    spec: &ModelSpec,
    reasoning: Option<Reasoning>,
) -> Result<CompletionRequest, UnsupportedOption>
Expand description

The request for the history summary of messages to spec with the reasoning effort, updating previous (the newest summary, sent with its file lists) when it holds anything, focused on instructions.

ยงErrors

As summarization_request.