pub struct FinishAndSummarize {
pub source: String,
pub correlation_id: Option<String>,
pub context: CurrentContext,
pub thought: String,
}Expand description
Event to trigger the completion and summarization phase.
This event indicates that the agent has gathered sufficient information to answer the user’s query and should generate a final response.
Fields§
§source: String§correlation_id: Option<String>§context: CurrentContextThe current context as we work through our response.
thought: StringThe reasoning behind the decision.
Trait Implementations§
Source§impl Clone for FinishAndSummarize
impl Clone for FinishAndSummarize
Source§fn clone(&self) -> FinishAndSummarize
fn clone(&self) -> FinishAndSummarize
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 FinishAndSummarize
impl Debug for FinishAndSummarize
Source§impl<'de> Deserialize<'de> for FinishAndSummarize
impl<'de> Deserialize<'de> for FinishAndSummarize
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
Source§impl Event for FinishAndSummarize
impl Event for FinishAndSummarize
Source§fn correlation_id(&self) -> Option<&str>
fn correlation_id(&self) -> Option<&str>
Returns the correlation ID if set
Source§fn set_correlation_id(&mut self, id: String)
fn set_correlation_id(&mut self, id: String)
Sets the correlation ID
Auto Trait Implementations§
impl Freeze for FinishAndSummarize
impl RefUnwindSafe for FinishAndSummarize
impl Send for FinishAndSummarize
impl Sync for FinishAndSummarize
impl Unpin for FinishAndSummarize
impl UnwindSafe for FinishAndSummarize
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