pub struct AgentMessage {
pub thread_id: String,
pub turn_id: String,
pub text: String,
pub phase: Option<String>,
}Expand description
A finished message from the model, decoded from an item/completed
notification by Notification::agent_message.
Fields§
§thread_id: StringThe thread the message belongs to.
turn_id: StringThe turn the message belongs to.
text: StringThe message text.
phase: Option<String>commentary for a progress remark, final_answer for the answer.
None if the server sent no phase.
Implementations§
Source§impl AgentMessage
impl AgentMessage
Sourcepub fn is_final_answer(&self) -> bool
pub fn is_final_answer(&self) -> bool
Whether this is the turn’s answer rather than a progress remark.
Trait Implementations§
Source§impl Clone for AgentMessage
impl Clone for AgentMessage
Source§impl Debug for AgentMessage
impl Debug for AgentMessage
impl Eq for AgentMessage
Source§impl PartialEq for AgentMessage
impl PartialEq for AgentMessage
impl StructuralPartialEq for AgentMessage
Auto Trait Implementations§
impl Forget for AgentMessage
impl Freeze for AgentMessage
impl RefUnwindSafe for AgentMessage
impl Send for AgentMessage
impl Sync for AgentMessage
impl Unpin for AgentMessage
impl UnsafeUnpin for AgentMessage
impl UnwindSafe for AgentMessage
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