pub struct ConversationRequest {
pub conversation: Conversation,
pub inference_options: InferenceOptions,
pub parsing_options: ParsingOptions,
pub model: Option<String>,
pub stream: bool,
}Expand description
A conversation with inference parameters and output parsing options.
Protocol adapters produce this representation. The caller renders the conversation, tokenizes the prompt, and constructs the inference request. Protocol-specific metadata is available on the protocol request before conversion.
Fields§
§conversation: Conversation§inference_options: InferenceOptions§parsing_options: ParsingOptions§model: Option<String>Original model name, when exposed by the adapter. The caller resolves it.
stream: boolImplementations§
Source§impl ConversationRequest
impl ConversationRequest
Sourcepub fn new(conversation: Conversation) -> Self
pub fn new(conversation: Conversation) -> Self
Construct a request with default inference, parsing, and transport options.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConversationRequest
impl RefUnwindSafe for ConversationRequest
impl Send for ConversationRequest
impl Sync for ConversationRequest
impl Unpin for ConversationRequest
impl UnsafeUnpin for ConversationRequest
impl UnwindSafe for ConversationRequest
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> 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