Skip to content

v0.3.8-alpha release

Pre-release
Pre-release
Compare
Choose a tag to compare
@jhakulin jhakulin released this 18 May 19:58
· 93 commits to main since this release

Purpose

  • Refactored ConversationThreadClient, Conversation and different message type classes
    • ConversationThreadClient class
      • conversation_thread_client.retrieve_messages still returns Conversation, however the structure of Conversation class has been changed
      • new method retrieve_message added which retrieves ConversationMessage from OpenAI Message instance.
    • Conversation class
      • Creates ConversationMessage list
    • ConversationMessage class
      • Creates and provide properties for TextMessage, FileMessage and ImageMessage class instances
    • AssistantClientCallbacks on_run_update method has been modified to take ConversationMessage, which is used to provide convenient way to get text, file, image content information from the assistant messages
  • Update the version to 0.3.8-alpha.

Does this introduce a breaking change?

Due to Conversation class restructure, there is breaking change. See samples and sample templates for required changes.

[X] Yes
[ ] No

Release Type

[X] Bugfix
[X] Feature
[ ] Code style update (formatting, local variables)
[X] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

Other Information

  • Please install new version azure_ai_assistant-0.3.8a1-py3-none-any.whl for middleware SDK from this release. See the README for installation details.