pub struct Turn {
pub invocation_id: String,
pub user_content: ContentData,
pub final_response: Option<ContentData>,
pub intermediate_data: Option<IntermediateData>,
}Expand description
A single turn in a conversation
Fields§
§invocation_id: StringUnique identifier for this turn
user_content: ContentDataUser input content
final_response: Option<ContentData>Expected final response from the agent
intermediate_data: Option<IntermediateData>Expected intermediate data (tool calls, etc.)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Turn
impl<'de> Deserialize<'de> for Turn
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 Turn
impl RefUnwindSafe for Turn
impl Send for Turn
impl Sync for Turn
impl Unpin for Turn
impl UnwindSafe for Turn
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