pub struct PrepareStepContext<'a> {
pub steps: &'a [StepResult],
pub step_number: u32,
pub model: &'a ModelIdentity,
pub instructions: Option<&'a Instructions>,
pub messages: &'a [Message],
pub initial_messages: &'a [Message],
pub response_messages: &'a [Message],
pub tools_context: Option<&'a JsonValue>,
}Expand description
Information available to a PrepareStep callback.
Fields§
§steps: &'a [StepResult]Steps completed so far.
step_number: u32Zero-based index of the step about to run.
model: &'a ModelIdentityThe model configured for the call.
instructions: Option<&'a Instructions>Instructions as configured on the call.
messages: &'a [Message]Messages that will be sent (initial messages plus response messages).
initial_messages: &'a [Message]The initial messages of the call.
response_messages: &'a [Message]Response messages accumulated so far.
tools_context: Option<&'a JsonValue>The tools context of the call.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for PrepareStepContext<'a>
impl<'a> RefUnwindSafe for PrepareStepContext<'a>
impl<'a> Send for PrepareStepContext<'a>
impl<'a> Sync for PrepareStepContext<'a>
impl<'a> Unpin for PrepareStepContext<'a>
impl<'a> UnsafeUnpin for PrepareStepContext<'a>
impl<'a> UnwindSafe for PrepareStepContext<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more