Python: name changes executed (#607)

* name changes executed

* updated adr to accepted

* renamed openai base config

* renamed openai config to mixin

* added renames in user docs

* reverted mcperror

* fix tests

* remove sse from tests
This commit is contained in:
Eduard van Valkenburg
2025-09-04 17:00:38 +02:00
committed by GitHub
Unverified
parent 6310ca5be0
commit 40ab6e9d67
100 changed files with 1223 additions and 1100 deletions
@@ -5,7 +5,7 @@ import logging
from random import randint
from typing import Annotated
from agent_framework import ChatClientAgent
from agent_framework import ChatAgent
from agent_framework.openai import OpenAIChatClient
from azure.monitor.opentelemetry import configure_azure_monitor
from opentelemetry import trace
@@ -163,7 +163,7 @@ async def main():
with tracer.start_as_current_span("Scenario: Agent Chat", kind=SpanKind.CLIENT) as current_span:
print("Running scenario: Agent Chat")
print("Welcome to the chat, type 'exit' to quit.")
agent = ChatClientAgent(
agent = ChatAgent(
chat_client=OpenAIChatClient(),
tools=get_weather,
name="WeatherAgent",
@@ -174,7 +174,7 @@ async def main():
try:
while message.lower() != "exit":
print(f"{agent.display_name}: ", end="")
async for update in agent.run_streaming(
async for update in agent.run_stream(
message,
thread=thread,
):
@@ -217,7 +217,7 @@ async def run_sequential_workflow() -> None:
print(f"Starting workflow with input: '{input_text}'")
completion_event = None
async for event in workflow.run_streaming(input_text):
async for event in workflow.run_stream(input_text):
print(f"Event: {event}")
if isinstance(event, WorkflowCompletedEvent):
# The WorkflowCompletedEvent contains the final result.