Skip to content

Commit 03e9a30

Browse files
author
Copilot
committed
Address review feedback for #5396: Python: [Samples][Python] redis package missing from requirements.txt in streaming samples
1 parent f28b253 commit 03e9a30

5 files changed

Lines changed: 6 additions & 3 deletions

File tree

python/packages/core/agent_framework/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,11 +277,11 @@
277277
"USER_AGENT_TELEMETRY_DISABLED_ENV_VAR",
278278
"Agent",
279279
"AgentContext",
280-
"AgentFrameworkException",
281280
"AgentEvalConverter",
282281
"AgentExecutor",
283282
"AgentExecutorRequest",
284283
"AgentExecutorResponse",
284+
"AgentFrameworkException",
285285
"AgentMiddleware",
286286
"AgentMiddlewareLayer",
287287
"AgentMiddlewareTypes",

python/packages/core/tests/core/test_exceptions.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
"""Tests for AgentFrameworkException inner_exception handling."""
44

5-
import pytest
65

76
from agent_framework import AgentFrameworkException
87

python/samples/01-get-started/05_functional_workflow_with_agents.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ async def poem_workflow(topic: str) -> str:
3737
poem = (await writer.run(f"Write a poem about: {topic}")).text
3838
review = (await reviewer.run(f"Review this poem: {poem}")).text
3939
return f"Poem:\n{poem}\n\nReview: {review}"
40+
41+
4042
# </create_workflow>
4143

4244

python/samples/01-get-started/06_functional_workflow_basics.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ async def text_workflow(text: str) -> str:
3636
"""Uppercase the text, then reverse it."""
3737
upper = await to_upper_case(text)
3838
return await reverse_text(upper)
39+
40+
3941
# </create_workflow>
4042

4143

python/samples/04-hosting/a2a/agent_framework_to_a2a.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
agent = Agent(
5252
client=OpenAIChatClient(),
5353
name="Europe Travel Agent",
54-
instructions="You are a helpful Europe Travel Agent. You can help users search and book flights and hotels across Europe."
54+
instructions="You are a helpful Europe Travel Agent. You can help users search and book flights and hotels across Europe.",
5555
)
5656

5757
request_handler = DefaultRequestHandler(

0 commit comments

Comments
 (0)