pub enum ServerTool {
BashTool20241022,
BashTool20250124,
TextEditor20250124,
TextEditor20250429,
TextEditor20250728,
WebSearch20250305,
WebFetch20250124,
CodeExecution20250522,
ComputerUse20241022,
ComputerUse20250124,
Memory,
Unknown(String),
}Available on crate feature
anthropic-client only.Expand description
Built-in server tool types with forward-compatible Unknown catch-all.
Each variant maps to a specific wire name string used by the Anthropic API.
The Unknown(String) variant captures any unrecognised tool name.
Variants§
BashTool20241022
Bash tool version 20241022.
BashTool20250124
Bash tool version 20250124.
TextEditor20250124
Text editor version 20250124.
TextEditor20250429
Text editor version 20250429.
TextEditor20250728
Text editor version 20250728.
WebSearch20250305
Web search version 20250305.
WebFetch20250124
Web fetch version 20250124.
CodeExecution20250522
Code execution version 20250522.
ComputerUse20241022
Computer use version 20241022.
ComputerUse20250124
Computer use version 20250124.
Memory
Memory tool.
Unknown(String)
Unknown tool type (forward compatibility).
Implementations§
Trait Implementations§
Source§impl Clone for ServerTool
impl Clone for ServerTool
Source§fn clone(&self) -> ServerTool
fn clone(&self) -> ServerTool
Returns a duplicate of the value. Read more
1.0.0 · 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 ServerTool
impl Debug for ServerTool
Source§impl<'de> Deserialize<'de> for ServerTool
impl<'de> Deserialize<'de> for ServerTool
Source§fn deserialize<D>(
deserializer: D,
) -> Result<ServerTool, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<ServerTool, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&str> for ServerTool
impl From<&str> for ServerTool
Source§fn from(s: &str) -> ServerTool
fn from(s: &str) -> ServerTool
Converts to this type from the input type.
Source§impl PartialEq for ServerTool
impl PartialEq for ServerTool
Source§impl Serialize for ServerTool
impl Serialize for ServerTool
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for ServerTool
impl StructuralPartialEq for ServerTool
Auto Trait Implementations§
impl Freeze for ServerTool
impl RefUnwindSafe for ServerTool
impl Send for ServerTool
impl Sync for ServerTool
impl Unpin for ServerTool
impl UnsafeUnpin for ServerTool
impl UnwindSafe for ServerTool
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestCreates a shared type from an unshared type.