pub struct ConversationEntry {
pub role: EntryRole,
pub text: String,
pub call_id: Option<String>,
pub name: Option<String>,
pub item_id: Option<String>,
}Expand description
One protocol block or item.
Fields§
§role: EntryRoleWhat the block is, by the protocol block-to-role table.
text: StringVisible text; a tool call’s arguments or input as sent, a tool result’s output.
call_id: Option<String>Identifier pairing a tool call with its result; tool entries only.
name: Option<String>Tool name; tool calls only.
item_id: Option<String>Identity of the item the entry belongs to, as the traffic carries it. A model output keeps the identity its provider assigned when a later request sends it back as history, so the request entry and the response entry that produced it carry the same value.
Trait Implementations§
Source§impl Clone for ConversationEntry
impl Clone for ConversationEntry
Source§impl Debug for ConversationEntry
impl Debug for ConversationEntry
Source§impl<'de> Deserialize<'de> for ConversationEntry
impl<'de> Deserialize<'de> for ConversationEntry
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
impl Eq for ConversationEntry
Source§impl PartialEq for ConversationEntry
impl PartialEq for ConversationEntry
Source§impl Serialize for ConversationEntry
impl Serialize for ConversationEntry
impl StructuralPartialEq for ConversationEntry
Auto Trait Implementations§
impl Forget for ConversationEntry
impl Freeze for ConversationEntry
impl RefUnwindSafe for ConversationEntry
impl Send for ConversationEntry
impl Sync for ConversationEntry
impl Unpin for ConversationEntry
impl UnsafeUnpin for ConversationEntry
impl UnwindSafe for ConversationEntry
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