#[non_exhaustive]pub struct MessagePosition {
pub message_id: String,
pub index: u32,
}Expand description
A relayed call’s place among the tool calls of one model message.
A host may run one message’s tool calls concurrently, so a provider whose actions must follow the model’s intended order (for example input events on a shared screen) reads this to sequence them. The message id and the index travel together, because an index means nothing without the message it counts within; a position missing either one does not decode.
Like the rest of CallOrigin, it is a claim by the forwarding module and
never authority.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.message_id: StringThe model message’s id, an opaque token with the same bounds as
ToolCallRequest::call_key.
index: u32The call’s 0-based position among that message’s tool calls, in the order the model wrote them.
Implementations§
Trait Implementations§
Source§impl Clone for MessagePosition
impl Clone for MessagePosition
Source§impl Debug for MessagePosition
impl Debug for MessagePosition
Source§impl<'de> Deserialize<'de> for MessagePosition
impl<'de> Deserialize<'de> for MessagePosition
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 MessagePosition
Source§impl PartialEq for MessagePosition
impl PartialEq for MessagePosition
Source§impl Serialize for MessagePosition
impl Serialize for MessagePosition
impl StructuralPartialEq for MessagePosition
Auto Trait Implementations§
impl Freeze for MessagePosition
impl RefUnwindSafe for MessagePosition
impl Send for MessagePosition
impl Sync for MessagePosition
impl Unpin for MessagePosition
impl UnsafeUnpin for MessagePosition
impl UnwindSafe for MessagePosition
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