pub struct ToolTextEditor20250124 {
pub name: String,
pub cache_control: Option<CacheControlEphemeral>,
}Expand description
Parameters for the Text Editor tool type, version 20250124.
This tool allows the AI to perform text editing operations via the API.
Fields§
§name: StringName of the tool. This is how the tool will be called by the model and in tool_use blocks.
Always set to “str_replace_editor”.
cache_control: Option<CacheControlEphemeral>Create a cache control breakpoint at this content block. If provided, this instructs the API to not cache this tool or its results.
Implementations§
Source§impl ToolTextEditor20250124
impl ToolTextEditor20250124
Sourcepub fn with_ephemeral_cache_control(self) -> Self
pub fn with_ephemeral_cache_control(self) -> Self
Sets the cache control to ephemeral for this tool.
Trait Implementations§
Source§impl Clone for ToolTextEditor20250124
impl Clone for ToolTextEditor20250124
Source§fn clone(&self) -> ToolTextEditor20250124
fn clone(&self) -> ToolTextEditor20250124
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 ToolTextEditor20250124
impl Debug for ToolTextEditor20250124
Source§impl Default for ToolTextEditor20250124
impl Default for ToolTextEditor20250124
Source§impl<'de> Deserialize<'de> for ToolTextEditor20250124
impl<'de> Deserialize<'de> for ToolTextEditor20250124
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
Source§impl PartialEq for ToolTextEditor20250124
impl PartialEq for ToolTextEditor20250124
Source§fn eq(&self, other: &ToolTextEditor20250124) -> bool
fn eq(&self, other: &ToolTextEditor20250124) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ToolTextEditor20250124
impl Serialize for ToolTextEditor20250124
impl StructuralPartialEq for ToolTextEditor20250124
Source§impl<A: Agent> Tool<A> for ToolTextEditor20250124
impl<A: Agent> Tool<A> for ToolTextEditor20250124
Auto Trait Implementations§
impl Freeze for ToolTextEditor20250124
impl RefUnwindSafe for ToolTextEditor20250124
impl Send for ToolTextEditor20250124
impl Sync for ToolTextEditor20250124
impl Unpin for ToolTextEditor20250124
impl UnsafeUnpin for ToolTextEditor20250124
impl UnwindSafe for ToolTextEditor20250124
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