Python: [BREAKING] Remove deprecated Python OpenAI/Azure AI surfaces (#4990)

* [BREAKING] Remove deprecated Python OpenAI/Azure AI surfaces

Also clean up follow-on docs, environment guidance, package metadata, and lab test stability.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Fix deleted semantic-kernel sample links

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Address PR review feedback

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* improve foundry language

* Fix A2A Foundry sample regression

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Eduard van Valkenburg
2026-03-31 20:36:21 +00:00
committed by GitHub
co-authored by Copilot
parent a5eacbbe65
commit 3a49b1d6dd
144 changed files with 669 additions and 18739 deletions
@@ -138,23 +138,35 @@ Expected response:
The sample shows how to enable MCP tool triggers with flexible agent configuration:
```python
from agent_framework.azure import AgentFunctionApp, AzureOpenAIChatClient
import os
# Create Azure OpenAI Chat Client
client = AzureOpenAIChatClient()
from agent_framework import Agent
from agent_framework.azure import AgentFunctionApp
from agent_framework.foundry import FoundryChatClient
from azure.identity.aio import AzureCliCredential
# Create Foundry chat client
client = FoundryChatClient(
project_endpoint=os.environ["FOUNDRY_PROJECT_ENDPOINT"],
model=os.environ["FOUNDRY_MODEL"],
credential=AzureCliCredential(),
)
# Define agents with different roles
joker_agent = client.as_agent(
joker_agent = Agent(
client=client,
name="Joker",
instructions="You are good at telling jokes.",
)
stock_agent = client.as_agent(
stock_agent = Agent(
client=client,
name="StockAdvisor",
instructions="Check stock prices.",
)
plant_agent = client.as_agent(
plant_agent = Agent(
client=client,
name="PlantAdvisor",
instructions="Recommend plants.",
description="Get plant recommendations.",