pub struct AgentAsyncMessage {
pub role: Option<String>,
pub content: Option<Vec<AgentAsyncContentPart>>,
}Expand description
One generated message returned by the async-result endpoint.
Fields§
§role: Option<String>Response role.
content: Option<Vec<AgentAsyncContentPart>>Generated file content parts.
Trait Implementations§
Source§impl Clone for AgentAsyncMessage
impl Clone for AgentAsyncMessage
Source§fn clone(&self) -> AgentAsyncMessage
fn clone(&self) -> AgentAsyncMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AgentAsyncMessage
impl Debug for AgentAsyncMessage
Source§impl<'de> Deserialize<'de> for AgentAsyncMessage
impl<'de> Deserialize<'de> for AgentAsyncMessage
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 AgentAsyncMessage
impl RefUnwindSafe for AgentAsyncMessage
impl Send for AgentAsyncMessage
impl Sync for AgentAsyncMessage
impl Unpin for AgentAsyncMessage
impl UnsafeUnpin for AgentAsyncMessage
impl UnwindSafe for AgentAsyncMessage
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