pub enum StreamedUserContent {
ToolResult(ToolResult),
}Expand description
Streamed user content. This content is primarily used to represent tool results from tool calls made during a multi-turn/step agent prompt.
Variants§
ToolResult(ToolResult)
Implementations§
Source§impl StreamedUserContent
impl StreamedUserContent
pub fn tool_result(tool_result: ToolResult) -> StreamedUserContent
Trait Implementations§
Source§impl Clone for StreamedUserContent
impl Clone for StreamedUserContent
Source§fn clone(&self) -> StreamedUserContent
fn clone(&self) -> StreamedUserContent
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StreamedUserContent
impl Debug for StreamedUserContent
Source§impl<'de> Deserialize<'de> for StreamedUserContent
impl<'de> Deserialize<'de> for StreamedUserContent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<StreamedUserContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<StreamedUserContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for StreamedUserContent
impl PartialEq for StreamedUserContent
Source§impl Serialize for StreamedUserContent
impl Serialize for StreamedUserContent
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for StreamedUserContent
Auto Trait Implementations§
impl Freeze for StreamedUserContent
impl RefUnwindSafe for StreamedUserContent
impl Send for StreamedUserContent
impl Sync for StreamedUserContent
impl Unpin for StreamedUserContent
impl UnwindSafe for StreamedUserContent
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)