pub struct ChatCompletionRequestToolMessage {
pub content: Value,
pub role: String,
pub tool_call_id: String,
}
Fields§
§content: Value
The contents of the tool message.
role: String
The role of the messages author, in this case tool
.
tool_call_id: String
Tool call that this message is responding to.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ChatCompletionRequestToolMessage
impl<'de> Deserialize<'de> for ChatCompletionRequestToolMessage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ChatCompletionRequestToolMessage
impl RefUnwindSafe for ChatCompletionRequestToolMessage
impl Send for ChatCompletionRequestToolMessage
impl Sync for ChatCompletionRequestToolMessage
impl Unpin for ChatCompletionRequestToolMessage
impl UnwindSafe for ChatCompletionRequestToolMessage
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