pub struct GetTokenData;Implementations§
Source§impl GetTokenData
impl GetTokenData
Trait Implementations§
Source§impl Default for GetTokenData
impl Default for GetTokenData
Source§fn default() -> GetTokenData
fn default() -> GetTokenData
Returns the “default value” for a type. Read more
Source§impl Tool for GetTokenData
impl Tool for GetTokenData
Source§const NAME: &'static str = "get_token_data_by_address"
const NAME: &'static str = "get_token_data_by_address"
The name of the tool. This name should be unique.
Source§type Error = GetTokenDataError
type Error = GetTokenDataError
The error type of the tool.
Source§type Args = GetTokenDataArgs
type Args = GetTokenDataArgs
The arguments type of the tool.
Source§type Output = GetTokenDataOutput
type Output = GetTokenDataOutput
The output type of the tool.
Source§async fn definition(&self, _prompt: String) -> ToolDefinition
async fn definition(&self, _prompt: String) -> ToolDefinition
A method returning the tool definition. The user prompt can be used to
tailor the definition to the specific use case.
Source§impl ToolEmbedding for GetTokenData
impl ToolEmbedding for GetTokenData
type InitError = InitError
Source§type Context = ()
type Context = ()
Type of the tool’ context. This context will be saved and loaded from the
vector store when ragging the tool.
This context can be used to store the tool’s static configuration and local
context.
Source§type State = ()
type State = ()
Type of the tool’s state. This state will be passed to the tool when initializing it.
This state can be used to pass runtime arguments to the tool such as clients,
API keys and other configuration.
Source§fn init(
_state: Self::State,
_context: Self::Context,
) -> Result<Self, Self::InitError>
fn init( _state: Self::State, _context: Self::Context, ) -> Result<Self, Self::InitError>
A method to initialize the tool from the context, and a state.
Source§fn embedding_docs(&self) -> Vec<String>
fn embedding_docs(&self) -> Vec<String>
A method returning the documents that will be used as embeddings for the tool.
This allows for a tool to be retrieved from multiple embedding “directions”.
If the tool will not be RAGged, this method should return an empty vector.
Auto Trait Implementations§
impl Freeze for GetTokenData
impl RefUnwindSafe for GetTokenData
impl Send for GetTokenData
impl Sync for GetTokenData
impl Unpin for GetTokenData
impl UnwindSafe for GetTokenData
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> 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 more