pub struct DeployToken { /* private fields */ }Implementations§
Source§impl DeployToken
impl DeployToken
pub fn new(agent: Arc<SolanaAgentKit>) -> Self
Trait Implementations§
Source§impl Tool for DeployToken
impl Tool for DeployToken
Source§type Error = DeployTokenError
type Error = DeployTokenError
The error type of the tool.
Source§type Args = DeployTokenArgs
type Args = DeployTokenArgs
The arguments type of the tool.
Source§type Output = DeployTokenOutput
type Output = DeployTokenOutput
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 DeployToken
impl ToolEmbedding for DeployToken
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 = Arc<SolanaAgentKit>
type State = Arc<SolanaAgentKit>
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 DeployToken
impl !RefUnwindSafe for DeployToken
impl Send for DeployToken
impl Sync for DeployToken
impl Unpin for DeployToken
impl !UnwindSafe for DeployToken
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