pub struct TurnRequest {
pub context: RequestContext,
pub session_id: SessionId,
pub run_id: RunId,
pub input_id: InputId,
pub content: Vec<ContentBlock>,
pub history: Vec<SessionEvent>,
}Expand description
Everything the loop needs to run one Turn.
Fields§
§context: RequestContextCaller identity and entitlements for this operation.
session_id: SessionIdSession this record belongs to.
run_id: RunIdRun this record belongs to.
input_id: InputIdQueued input this record refers to.
content: Vec<ContentBlock>Content blocks carried by this record.
history: Vec<SessionEvent>Committed Session events the Turn resumes from.
Trait Implementations§
Source§impl Clone for TurnRequest
impl Clone for TurnRequest
Source§fn clone(&self) -> TurnRequest
fn clone(&self) -> TurnRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TurnRequest
impl RefUnwindSafe for TurnRequest
impl Send for TurnRequest
impl Sync for TurnRequest
impl Unpin for TurnRequest
impl UnsafeUnpin for TurnRequest
impl UnwindSafe for TurnRequest
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