O365Toolkit
is not fully defined; you should define Account
, then call O365Toolkit.model_rebuild()
#26743
-
Checked other resources
Commit to Help
Example Codefrom dotenv import load_dotenv
from langchain_community.agent_toolkits import O365Toolkit
toolkit = O365Toolkit()
tools = toolkit.get_tools()
print(tools) DescriptionI am trying to use Error message:Traceback (most recent call last): For further information visit https://errors.pydantic.dev/2.9/u/class-not-fully-defined System InfoHere is the libraries and their versions that I am using: |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 6 replies
-
Hey there, @Muntasir2179! I'm here to help you with any bugs, questions, or contributions you have. Let's tackle this issue together! Hey @Muntasir2179! It looks like you're diving deep into some technical waters with |
Beta Was this translation helpful? Give feedback.
-
PydanticUserError Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/pydantic/_internal/_mock_val_ser.py in getattr(self, item) PydanticUserError: For further information visit https://errors.pydantic.dev/2.10/u/class-not-fully-defined |
Beta Was this translation helpful? Give feedback.
-
Any update on this error? Frustrating ! |
Beta Was this translation helpful? Give feedback.
-
unauthorized_client: The client does not exist or is not enabled for consumers. If you are the application developer, configure a new application through the App Registrations in the Azure Portal at https://go.microsoft.com/fwlink/?linkid=@#$@#$@ |
Beta Was this translation helpful? Give feedback.
-
Here is the solution I have : We first need to import each tool :
Then set the toolkit and use model_rebuild() for each tool like :
Which gives me :
|
Beta Was this translation helpful? Give feedback.
@krish240574 @Muntasir2179
Here is the solution I have :
We first need to import each tool :
Then set the toolkit and use model_rebuild() for each tool like :