pub struct ToolEventContextV1 {
pub session_id: String,
pub root_session_id: String,
pub tool_name: String,
pub tool_call_id: String,
pub extensions: BTreeMap<String, Value>,
}Expand description
Stable identity attached to every tool event.
Fields§
§session_id: String§root_session_id: StringAuthoritative root-session identity for the executing session tree.
tool_name: StringStable canonical tool name (for example Edit, even for apply_patch).
tool_call_id: StringOriginal model-provided tool-call identifier.
extensions: BTreeMap<String, Value>Additive context fields added by a future compatible producer.
Implementations§
Source§impl ToolEventContextV1
impl ToolEventContextV1
Sourcepub fn bounded_from(
session_id: &str,
root_session_id: &str,
tool_name: &str,
tool_call_id: &str,
) -> Result<Self, ToolEventBuildError>
pub fn bounded_from( session_id: &str, root_session_id: &str, tool_name: &str, tool_call_id: &str, ) -> Result<Self, ToolEventBuildError>
Validate borrowed fields before allocating owned wire DTO strings.
pub fn bounded( session_id: impl Into<String>, root_session_id: impl Into<String>, tool_name: impl Into<String>, tool_call_id: impl Into<String>, ) -> Result<Self, ToolEventBuildError>
Trait Implementations§
Source§impl Clone for ToolEventContextV1
impl Clone for ToolEventContextV1
Source§fn clone(&self) -> ToolEventContextV1
fn clone(&self) -> ToolEventContextV1
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ToolEventContextV1
impl Debug for ToolEventContextV1
Source§impl<'de> Deserialize<'de> for ToolEventContextV1
impl<'de> Deserialize<'de> for ToolEventContextV1
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 ToolEventContextV1
Source§impl PartialEq for ToolEventContextV1
impl PartialEq for ToolEventContextV1
Source§impl Serialize for ToolEventContextV1
impl Serialize for ToolEventContextV1
impl StructuralPartialEq for ToolEventContextV1
Auto Trait Implementations§
impl Freeze for ToolEventContextV1
impl RefUnwindSafe for ToolEventContextV1
impl Send for ToolEventContextV1
impl Sync for ToolEventContextV1
impl Unpin for ToolEventContextV1
impl UnsafeUnpin for ToolEventContextV1
impl UnwindSafe for ToolEventContextV1
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