pub struct RequestContext {
pub original_request: RequestPayload,
pub enriched_request: RequestPayload,
pub new_input_items: Vec<InputItem>,
pub response_id: String,
pub conversation_id: Option<String>,
pub conversation_version: Option<ConversationVersion>,
}Expand description
Context built by rehydrate_conversation, threaded through the execute pipeline.
Fields§
§original_request: RequestPayloadUntouched original request from the client.
enriched_request: RequestPayloadEnriched request with rehydrated conversation history injected into .input.
This is the request forwarded to the LLM.
new_input_items: Vec<InputItem>Only the new input items submitted by the client this turn (used for persistence).
response_id: StringOur generated response ID (uuid7 with “resp_” prefix).
conversation_id: Option<String>Resolved conversation ID. None when store=false or non-conversational.
conversation_version: Option<ConversationVersion>Conversation version captured with rehydrated history.
None for non-conversation and previous_response_id execution.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RequestContext
impl RefUnwindSafe for RequestContext
impl Send for RequestContext
impl Sync for RequestContext
impl Unpin for RequestContext
impl UnsafeUnpin for RequestContext
impl UnwindSafe for RequestContext
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more