Add openai_client as property and update notebook. (#654)

* Initial commit

* Add code interpreter notebook.

* Update code interpreter notebook.

* Update notebook.

* Update agentchat_oai_code_interpreter.ipynb

* Update agentchat_oai_code_interpreter.ipynb

* Add openai_client as property.

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
This commit is contained in:
LeoLjl 2023-11-13 21:21:20 +08:00 committed by GitHub
parent 991d2066d5
commit 6d621a9840
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 44 additions and 15 deletions

View File

@ -341,6 +341,10 @@ class GPTAssistantAgent(ConversableAgent):
"""Return the assistant id"""
return self._openai_assistant.id
@property
def openai_client(self):
return self._openai_client
def get_assistant_instructions(self):
"""Return the assistant instructions from OAI assistant API"""
return self._openai_assistant.instructions

File diff suppressed because one or more lines are too long