Persona K54: name the parsed answer's type (clippy type_complexity)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
1e02b11b76
commit
2b5a70c6fc
1 changed files with 3 additions and 1 deletions
|
|
@ -732,7 +732,9 @@ pub(crate) fn decide_in(model: &dyn Model, request_id: &str, packet: &Packet, na
|
|||
// failed. A turn fails only when no answer parsed: a model error on the first call, or no answer the contract.
|
||||
let mut retried: Option<Value> = None;
|
||||
let mut asking = prompt.clone();
|
||||
let mut parsed_first: Option<(Answer, Vec<Value>, Vec<String>, Vec<usize>)> = None;
|
||||
// An answer that parsed, with its resolved gaps, its hold faults and its drafts accounted for nowhere.
|
||||
type Parsed = (Answer, Vec<Value>, Vec<String>, Vec<usize>);
|
||||
let mut parsed_first: Option<Parsed> = None;
|
||||
let (parsed, gaps, unopened, undecided) = loop {
|
||||
let answer = match model.ask(request_id, &tuning.interpreter.model, &asking, Some(SPEECH_SCHEMA)) {
|
||||
Ok(answer) => answer,
|
||||
|
|
|
|||
Loading…
Reference in a new issue