pub enum KnownResponseOutputItem {
Message(ResponseOutputMessage),
FunctionCall(ResponseFunctionToolCall),
OutputText(ResponseOutputText),
Refusal(ResponseOutputRefusal),
}Expand description
已知的响应输出项类型。
Variants§
Message(ResponseOutputMessage)
assistant message。
FunctionCall(ResponseFunctionToolCall)
function call。
OutputText(ResponseOutputText)
某些兼容 Provider 直接把 output_text 作为顶层输出项返回。
Refusal(ResponseOutputRefusal)
某些兼容 Provider 直接把 refusal 作为顶层输出项返回。
Trait Implementations§
Source§impl Clone for KnownResponseOutputItem
impl Clone for KnownResponseOutputItem
Source§fn clone(&self) -> KnownResponseOutputItem
fn clone(&self) -> KnownResponseOutputItem
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KnownResponseOutputItem
impl Debug for KnownResponseOutputItem
Source§impl<'de> Deserialize<'de> for KnownResponseOutputItem
impl<'de> Deserialize<'de> for KnownResponseOutputItem
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 KnownResponseOutputItem
impl RefUnwindSafe for KnownResponseOutputItem
impl Send for KnownResponseOutputItem
impl Sync for KnownResponseOutputItem
impl Unpin for KnownResponseOutputItem
impl UnsafeUnpin for KnownResponseOutputItem
impl UnwindSafe for KnownResponseOutputItem
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