Skip to content

O365Toolkit is not fully defined; you should define Account, then call O365Toolkit.model_rebuild() #26743

Closed Answered by valentin-glt
Muntasir2179 asked this question in Q&A
Discussion options

You must be logged in to vote

@krish240574 @Muntasir2179

Here is the solution I have :

We first need to import each tool :

from langchain_community.tools.office365.events_search import O365SearchEvents
from langchain_community.tools.office365.messages_search import O365SearchEmails
from langchain_community.tools.office365.send_event import O365SendEvent
from langchain_community.tools.office365.send_message import O365SendMessage
from langchain_community.tools.office365.utils import authenticate
from langchain_community.tools.office365.create_draft_message import (
    O365CreateDraftMessage,
)

Then set the toolkit and use model_rebuild() for each tool like :

toolkit = O365Toolkit()

O365SearchEvents.model_rebuild()
O…

Replies: 5 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@dosubot
Comment options

@Muntasir2179
Comment options

@dosubot
Comment options

@Muntasir2179
Comment options

@dosubot
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Muntasir2179
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants