#[non_exhaustive]pub struct MiniMaxOptions {
pub chat: MiniMaxChat,
pub messages: MiniMaxMessages,
}Expand description
MiniMax’s request options, by route. The field setters here write the same field as the section setters, which replace every field of their section set before them, and each names the one route that sends it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.chat: MiniMaxChatSent on the OpenAI-format API only.
messages: MiniMaxMessagesSent on the Anthropic-format Messages API only.
Implementations§
Source§impl MiniMaxOptions
impl MiniMaxOptions
Sourcepub fn chat(self, chat: MiniMaxChat) -> Self
pub fn chat(self, chat: MiniMaxChat) -> Self
Send chat on the OpenAI-format API.
Sourcepub fn messages(self, messages: MiniMaxMessages) -> Self
pub fn messages(self, messages: MiniMaxMessages) -> Self
Send messages on the Messages API.
Sourcepub fn reasoning_split(self, split: bool) -> Self
pub fn reasoning_split(self, split: bool) -> Self
Return the reasoning apart from the content when split, on the
OpenAI-format API only, as MiniMaxChat::reasoning_split.
Sourcepub fn metadata_user_id(self, user_id: impl Into<String>) -> Self
pub fn metadata_user_id(self, user_id: impl Into<String>) -> Self
Send user_id as metadata.user_id, on the Messages API only, as
MiniMaxMessages::metadata_user_id.
Trait Implementations§
Source§impl Clone for MiniMaxOptions
impl Clone for MiniMaxOptions
Source§impl Debug for MiniMaxOptions
impl Debug for MiniMaxOptions
Source§impl Default for MiniMaxOptions
impl Default for MiniMaxOptions
Source§impl ExtensionOptions for MiniMaxOptions
impl ExtensionOptions for MiniMaxOptions
Source§type Ext = MiniMaxExt
type Ext = MiniMaxExt
The provider these options are for: the entry
ProviderOptions::set stores them under. A type that serves as the
Options of several providers names one of them here, and is stored
for the others with ProviderOptions::with.Source§fn unsupported(
&self,
target: &dyn ReplayTarget,
request: &CompletionRequest,
) -> Vec<(&'static str, String)>
fn unsupported( &self, target: &dyn ReplayTarget, request: &CompletionRequest, ) -> Vec<(&'static str, String)>
The fields
target cannot send for request, each a top-level body
key with the reason. Each one set is reported through the request’s
OnUnsupported policy under the
name "<provider>.<section>.<field>". It must not call
options::param, which reads
it. By default every field is sent.Source§impl PartialEq for MiniMaxOptions
impl PartialEq for MiniMaxOptions
Source§impl Serialize for MiniMaxOptions
impl Serialize for MiniMaxOptions
impl StructuralPartialEq for MiniMaxOptions
Auto Trait Implementations§
impl Freeze for MiniMaxOptions
impl RefUnwindSafe for MiniMaxOptions
impl Send for MiniMaxOptions
impl Sync for MiniMaxOptions
impl Unpin for MiniMaxOptions
impl UnsafeUnpin for MiniMaxOptions
impl UnwindSafe for MiniMaxOptions
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> IntoToolOutput for Twhere
T: Serialize + 'static,
impl<T> IntoToolOutput for Twhere
T: Serialize + 'static,
Source§fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
Convert this value without routing structured data through a string.