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 the
SLACK_USER_TOKEN= set correctly and installed all the needed packages including slack_sdk
But the SlackToolkin() gives exception:
Exception has occurred: PydanticUserError SlackToolkit is not fully defined; you should define WebClient, then call SlackToolkit.model_rebuild().
For further information visit https://errors.pydantic.dev/2.10/u/class-not-fully-defined
File "/Users/user/Projects/slack/main.py", line 13, in
toolkit = SlackToolkit()
^^^^^^^^^^^^^^
pydantic.errors.PydanticUserError: SlackToolkit is not fully defined; you should define WebClient, then call SlackToolkit.model_rebuild().
Discussed in #28566
Originally posted by edwardgonen December 6, 2024
Checked other resources
Commit to Help
Example Code
Description
I have the
SLACK_USER_TOKEN= set correctly and installed all the needed packages including slack_sdk
But the SlackToolkin() gives exception:
Exception has occurred: PydanticUserError
SlackToolkit
is not fully defined; you should defineWebClient
, then callSlackToolkit.model_rebuild()
.For further information visit https://errors.pydantic.dev/2.10/u/class-not-fully-defined
File "/Users/user/Projects/slack/main.py", line 13, in
toolkit = SlackToolkit()
^^^^^^^^^^^^^^
pydantic.errors.PydanticUserError:
SlackToolkit
is not fully defined; you should defineWebClient
, then callSlackToolkit.model_rebuild()
.For further information visit https://errors.pydantic.dev/2.10/u/class-not-fully-defined
I've tried to add WebClient but then fail on get_tools().
Can anyone help?
System Info
langchain==0.3.8
langchain-anthropic==0.3.0
langchain-community==0.3.8
langchain-core==0.3.21
langchain-experimental==0.3.3
langchain-openai==0.2.10
langchain-text-splitters==0.3.2
MAC
Python 3.12.3
The text was updated successfully, but these errors were encountered: