-
Notifications
You must be signed in to change notification settings - Fork 649
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shared state Initialization #165
Labels
bug
Something isn't working
Comments
VRSEN
added a commit
that referenced
this issue
Aug 15, 2024
Hey, the shared state is stored in the agency class. Base tools use pointers, so when initializing tools separately, the state did not exist. Can you install from the main and try again, please? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I am trying to understand how tools function with an easy example and while exploring the
shared_state
fundamentals, got into the following error using the below code.Error:
On further inspection, I could not find the initialization of the
shared_state
variable in theBaseTool
class in order for the extended tools to use this variable. As we can see below, it is set toNone
by default.Can someone guide on how to resolve this error or the right approach to use the
shared_state
variable ? btw, I have already referred theAdvanced Usage
section of the documentationThe text was updated successfully, but these errors were encountered: