mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
Python: [BREAKING] Remove deprecated kwargs compatibility paths (#4858)
* [BREAKING] Remove deprecated kwargs compatibility paths Remove the deprecated kwargs compatibility shims across core agents, clients, tools, middleware, and telemetry. Keep workflow kwargs behavior intact in this branch and follow up separately in #4850. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Fix PR CI fallout for kwargs removal Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Address PR review feedback Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * updates * Fix Azure AI CI fallout Remove the stale _get_current_conversation_id override from the Azure AI client after the OpenAI base helper was deleted. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fixed new classes * Fix Assistants deprecated import gating Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Fix integration replay regressions Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Switch multi-agent hosting samples to Azure chat completions Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Simplify Azure multi-agent sample config 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:
committed by
GitHub
Unverified
parent
ca6cdd142e
commit
b1b528e4a8
@@ -446,7 +446,7 @@ async def executor_with_real_agent() -> tuple[AgentFrameworkExecutor, str, MockB
|
||||
name="Test Chat Agent",
|
||||
description="A real Agent for testing execution flow",
|
||||
client=mock_client,
|
||||
system_message="You are a helpful test assistant.",
|
||||
instructions="You are a helpful test assistant.",
|
||||
)
|
||||
|
||||
# Register the real agent
|
||||
@@ -478,14 +478,14 @@ async def sequential_workflow() -> tuple[AgentFrameworkExecutor, str, MockBaseCh
|
||||
name="Writer",
|
||||
description="Content writer agent",
|
||||
client=mock_client,
|
||||
system_message="You are a content writer. Create clear, engaging content.",
|
||||
instructions="You are a content writer. Create clear, engaging content.",
|
||||
)
|
||||
reviewer = Agent(
|
||||
id="reviewer",
|
||||
name="Reviewer",
|
||||
description="Content reviewer agent",
|
||||
client=mock_client,
|
||||
system_message="You are a reviewer. Provide constructive feedback.",
|
||||
instructions="You are a reviewer. Provide constructive feedback.",
|
||||
)
|
||||
|
||||
workflow = SequentialBuilder(participants=[writer, reviewer]).build()
|
||||
@@ -523,21 +523,21 @@ async def concurrent_workflow() -> tuple[AgentFrameworkExecutor, str, MockBaseCh
|
||||
name="Researcher",
|
||||
description="Research agent",
|
||||
client=mock_client,
|
||||
system_message="You are a researcher. Find key data and insights.",
|
||||
instructions="You are a researcher. Find key data and insights.",
|
||||
)
|
||||
analyst = Agent(
|
||||
id="analyst",
|
||||
name="Analyst",
|
||||
description="Analysis agent",
|
||||
client=mock_client,
|
||||
system_message="You are an analyst. Identify trends and patterns.",
|
||||
instructions="You are an analyst. Identify trends and patterns.",
|
||||
)
|
||||
summarizer = Agent(
|
||||
id="summarizer",
|
||||
name="Summarizer",
|
||||
description="Summary agent",
|
||||
client=mock_client,
|
||||
system_message="You are a summarizer. Provide concise summaries.",
|
||||
instructions="You are a summarizer. Provide concise summaries.",
|
||||
)
|
||||
|
||||
workflow = ConcurrentBuilder(participants=[researcher, analyst, summarizer]).build()
|
||||
|
||||
@@ -309,7 +309,7 @@ async def test_full_pipeline_workflow_events_are_json_serializable():
|
||||
name="Serialization Test Agent",
|
||||
description="Agent for testing serialization",
|
||||
client=mock_client,
|
||||
system_message="You are a test assistant.",
|
||||
instructions="You are a test assistant.",
|
||||
)
|
||||
|
||||
agent_executor = AgentExecutor(id="agent_node", agent=agent)
|
||||
|
||||
Reference in New Issue
Block a user