pub struct Turn {
pub invocation_id: String,
pub user_content: ContentData,
pub final_response: Option<ContentData>,
pub intermediate_data: Option<IntermediateData>,
pub expected_vision: Option<VisionExpected>,
}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.)
expected_vision: Option<VisionExpected>Expected perception output — regions, page text, fields, click targets — scored by
the vision criteria.
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 Forget for Turn
impl Freeze for Turnwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Part>: Freeze,
PhantomData<ToolUse>: Freeze,
PhantomData<ContentData>: Freeze,
PhantomData<ExpectedRegion>: Freeze,
*const LeafNode<String, String> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, String)>>: Freeze,
impl Move for Turn
impl RefUnwindSafe for Turn
impl Send for Turn
impl Sync for Turn
impl Unpin for Turn
impl UnsafeUnpin for Turnwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Part>: UnsafeUnpin,
PhantomData<ToolUse>: UnsafeUnpin,
PhantomData<ContentData>: UnsafeUnpin,
PhantomData<ExpectedRegion>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
impl UnwindSafe for Turnwhere
RawVecInner: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
Arc<[u8]>: UnwindSafe,
BTreeMap<String, String>: UnwindSafe,
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