1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! Outcome of one step of an agent loop.
//!
//! A "step" is a single round-trip with the model: the caller sends the
//! current conversation, the model responds, and the response either ends
//! the turn ([`StepResult::Stop`]) or asks for tools to be executed
//! ([`StepResult::Toolcalled`]). Higher-level loops (see `llmy-harness`)
//! drive these steps until a `Stop` is observed.
/// The result of running one agent step.