pub struct AssistantMessageBuilder(/* private fields */);Expand description
Builder for AssistantMessage.
Implementations§
Source§impl AssistantMessageBuilder
impl AssistantMessageBuilder
pub fn reasoning_details( self, value: impl Into<Option<Vec<ReasoningDetail>>>, ) -> Self
pub fn reasoning_content(self, value: impl Into<Option<String>>) -> Self
pub fn reasoning(self, value: impl Into<Option<String>>) -> Self
pub fn content(self, value: impl Into<Option<AssistantContent>>) -> Self
pub fn audio(self, value: impl Into<Option<AssistantAudio>>) -> Self
pub fn refusal(self, value: impl Into<Option<String>>) -> Self
pub fn name(self, value: impl Into<String>) -> Self
pub fn tool_calls(self, value: impl Into<Vec<MessageToolCall>>) -> Self
pub fn function_call(self, value: impl Into<Option<FunctionCall>>) -> Self
pub fn rest(self, value: Rest) -> Self
Sourcepub fn build(self) -> AssistantMessage
pub fn build(self) -> AssistantMessage
Return the completed wire value.
Auto Trait Implementations§
impl Freeze for AssistantMessageBuilder
impl RefUnwindSafe for AssistantMessageBuilder
impl Send for AssistantMessageBuilder
impl Sync for AssistantMessageBuilder
impl Unpin for AssistantMessageBuilder
impl UnsafeUnpin for AssistantMessageBuilder
impl UnwindSafe for AssistantMessageBuilder
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