pub struct FetchTokenReportSummary {}Implementations§
Trait Implementations§
Source§impl Default for FetchTokenReportSummary
impl Default for FetchTokenReportSummary
Source§fn default() -> FetchTokenReportSummary
fn default() -> FetchTokenReportSummary
Returns the “default value” for a type. Read more
Source§impl Tool for FetchTokenReportSummary
impl Tool for FetchTokenReportSummary
Source§const NAME: &'static str = "fetch_summary_report"
const NAME: &'static str = "fetch_summary_report"
The name of the tool. This name should be unique.
Source§type Error = FetchTokenReportSummaryError
type Error = FetchTokenReportSummaryError
The error type of the tool.
Source§type Args = FetchTokenReportSummaryArgs
type Args = FetchTokenReportSummaryArgs
The arguments type of the tool.
Source§type Output = FetchTokenReportSummaryOutput
type Output = FetchTokenReportSummaryOutput
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 FetchTokenReportSummary
impl ToolEmbedding for FetchTokenReportSummary
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 FetchTokenReportSummary
impl RefUnwindSafe for FetchTokenReportSummary
impl Send for FetchTokenReportSummary
impl Sync for FetchTokenReportSummary
impl Unpin for FetchTokenReportSummary
impl UnwindSafe for FetchTokenReportSummary
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