You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have looked for existing issues (including closed) about this
Feature Request
Motivation
I want to persist some state in the tool.
Proposal
Change:
/// The tool execution method./// Both the arguments and return value are a String since these values are meant to/// be the output and input of LLM models (respectively)fncall(&self,args:Self::Args,) -> implFuture<Output = Result<Self::Output,Self::Error>> + Send + Sync;
to
/// The tool execution method./// Both the arguments and return value are a String since these values are meant to/// be the output and input of LLM models (respectively)fncall(&mutself,args:Self::Args,) -> implFuture<Output = Result<Self::Output,Self::Error>> + Send + Sync;
Alternatives
Currently, I'm forced to store data behind an Arc, so that I can update it and access later:
Feature Request
Motivation
I want to persist some state in the tool.
Proposal
Change:
to
Alternatives
Currently, I'm forced to store data behind an Arc, so that I can update it and access later:
I'm not sure if there is an easier way right now
The text was updated successfully, but these errors were encountered: