Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenAI Assistants: fix function call arguments, rename related types for clarity #41771

Merged

Conversation

trrwilson
Copy link
Member

Bugs Fixed

  • Function calls initiated by the model (when a run enters a RequiresAction status involving function tools) will now provide the intended JSON Arguments string corresponding to the earlier FunctionDefinition's Parameters. The latter Parameters was previously reused within the required action flow, effectively ignoring the proper Arguments.

Breaking Changes

  • Addressing the above, RequiredFunctionToolCall has a property replacement:
    • REMOVED: Parameters of type BinaryData
    • ADDED: Arguments of type string
  • For improved clarity, several types specific to the representation of tool call information in run steps have been renamed with a RunStep prefix, better differentiating from request-time tool definitions and model-provided required tool calls:
    • ToolCall is now RunStepToolCall
    • FunctionToolCall is now RunStepFunctionToolCall
    • CodeInterpreterToolCall is now RunStepCodeInterpreterToolCall
      • CodeInterpreterToolCallOutput is now RunStepCodeInterpreterToolCallOutput
      • CodeInterpreterLogOutput is now RunStepCodeInterpreterToolCallOutput
      • CodeInterpreterImageOutput is now RunStepCodeInterpreterImageOutput
      • CodeInterpreterImageReference is now RunStepCodeInterpreterImageReference
    • RetrievalToolCall is now RunStepRetrievalToolCall

Notes

@azure-sdk
Copy link
Collaborator

API change check

APIView has identified API level changes in this PR and created following API reviews.

Azure.AI.OpenAI.Assistants

@trrwilson trrwilson enabled auto-merge (squash) February 3, 2024 00:23
@trrwilson trrwilson merged commit 61ff8d7 into main Feb 5, 2024
15 checks passed
@trrwilson trrwilson deleted the user/travisw/aoai-assistants-tool-use-fix-and-naming branch February 5, 2024 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants