Python: updated API in sync with dotnet (#269)

* updated API in sync with dotnet

* fix test

* updated name and display_name

* fixed mypy setup

* add pre-commit cache
This commit is contained in:
Eduard van Valkenburg
2025-07-30 10:50:22 +02:00
committed by GitHub
Unverified
parent dc993b4734
commit 1ed89d4db8
13 changed files with 138 additions and 84 deletions
@@ -96,7 +96,7 @@ class FoundrySettings(AFBaseSettings):
class FoundryChatClient(ChatClientBase):
"""Azure AI Foundry Chat client."""
MODEL_PROVIDER_NAME: ClassVar[str] = "azure_ai_foundry" # type: ignore[reportIncompatibleVariableOverride]
MODEL_PROVIDER_NAME: ClassVar[str] = "azure_ai_foundry" # type: ignore[reportIncompatibleVariableOverride, misc]
client: AIProjectClient = Field(...)
credential: AsyncTokenCredential | None = Field(...)
agent_id: str | None = Field(default=None)
+2
View File
@@ -76,6 +76,8 @@ exclude_dirs = ["tests"]
[tool.poe]
executor.type = "uv"
include = "../../shared_tasks.toml"
[tool.poe.tasks]
mypy = "mypy --config-file $POE_ROOT/pyproject.toml agent_framework_foundry"
[tool.uv.build-backend]
module-name = "agent_framework_foundry"