Python: Introducing the Anthropic Client (#1819)

* initial version of anthropic connector

* updated implementation and added tests

* fix type and readme

* mypy fix and int tests enabled

* add integration test setup

* updated based on comments

* improved function result handling

* added extra unordered test

* updated from review

* fix tool choice handling

* same fix for chat client
This commit is contained in:
Eduard van Valkenburg
2025-11-03 19:32:28 +00:00
committed by GitHub
parent a766a81243
commit 12d17acdc0
23 changed files with 1826 additions and 63 deletions
@@ -735,10 +735,10 @@ class AzureAIAgentClient(BaseChatClient):
chat_tool_mode = chat_options.tool_choice
if chat_tool_mode is None or chat_tool_mode == ToolMode.NONE or chat_tool_mode == "none":
chat_options.tools = None
chat_options.tool_choice = ToolMode.NONE.mode
chat_options.tool_choice = ToolMode.NONE
return
chat_options.tool_choice = chat_tool_mode.mode if isinstance(chat_tool_mode, ToolMode) else chat_tool_mode
chat_options.tool_choice = chat_tool_mode
async def _create_run_options(
self,