Enum rig::completion::ModelChoice
source · pub enum ModelChoice {
Message(String),
ToolCall(String, Value),
}
Expand description
Enum representing the high-level completion choice returned by the completion model provider.
Variants§
Message(String)
Represents a completion response as a message
ToolCall(String, Value)
Represents a completion response as a tool call of the form
ToolCall(function_name, function_params)
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ModelChoice
impl RefUnwindSafe for ModelChoice
impl Send for ModelChoice
impl Sync for ModelChoice
impl Unpin for ModelChoice
impl UnwindSafe for ModelChoice
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