[Feature]: json_schema in response support for Anthropic (#6748)

* _convert_tool_response_to_message

* fix ModelResponseIterator

* fix test_json_response_format

* test_json_response_format_stream

* fix _convert_tool_response_to_message

* use helper _handle_json_mode_chunk

* fix _process_response

* unit testing for test_convert_tool_response_to_message_no_arguments

* update doc for JSON mode
This commit is contained in:
Ishaan Jaff 2024-11-14 16:59:45 -08:00 committed by GitHub
parent a70a0688d8
commit 6ae0bc4a11
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 221 additions and 9 deletions

View file

@ -75,6 +75,7 @@ Works for:
- Google AI Studio - Gemini models
- Vertex AI models (Gemini + Anthropic)
- Bedrock Models
- Anthropic API Models
<Tabs>
<TabItem value="sdk" label="SDK">