pub struct ChatCompletionRequestToolMessageArgs { /* private fields */ }Available on crate feature
chat-completion-types only.Expand description
Builder for ChatCompletionRequestToolMessage.
Implementations§
Source§impl ChatCompletionRequestToolMessageArgs
impl ChatCompletionRequestToolMessageArgs
Sourcepub fn content<VALUE: Into<ChatCompletionRequestToolMessageContent>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn content<VALUE: Into<ChatCompletionRequestToolMessageContent>>( &mut self, value: VALUE, ) -> &mut Self
The contents of the tool message.
pub fn tool_call_id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn build(&self) -> Result<ChatCompletionRequestToolMessage, OpenAIError>
pub fn build(&self) -> Result<ChatCompletionRequestToolMessage, OpenAIError>
Builds a new ChatCompletionRequestToolMessage.
§Errors
If a required field has not been initialized.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChatCompletionRequestToolMessageArgs
impl RefUnwindSafe for ChatCompletionRequestToolMessageArgs
impl Send for ChatCompletionRequestToolMessageArgs
impl Sync for ChatCompletionRequestToolMessageArgs
impl Unpin for ChatCompletionRequestToolMessageArgs
impl UnsafeUnpin for ChatCompletionRequestToolMessageArgs
impl UnwindSafe for ChatCompletionRequestToolMessageArgs
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