Skip to content

Commit 204928d

Browse files
committed
Address Copilot comments
1 parent 7fb93d1 commit 204928d

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

examples/pydanticai_multiagent.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ async def find_flight() -> Flight | None:
6464
if isinstance(result.output, Flight):
6565
return result.output
6666
else:
67-
# Deprecated parameter result_tool_return_content removed in >=0.6; just reuse messages
6867
message_history = result.all_messages()
6968

7069

examples/pydanticai_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
model = OpenAIChatModel(os.environ["OLLAMA_MODEL"], provider=OpenAIProvider(openai_client=client))
3838

3939

40-
def get_weather(city: str, date: str) -> str:
40+
def get_weather(city: str, date: str) -> dict:
4141
logger.info(f"Getting weather for {city}")
4242
if random.random() < 0.05:
4343
return {

examples/spanish/pydanticai_multiagent.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ async def find_flight() -> Flight | None:
6464
if isinstance(result.output, Flight):
6565
return result.output
6666
else:
67-
# Deprecated result_tool_return_content removed; reuse messages
6867
message_history = result.all_messages()
6968

7069

0 commit comments

Comments
 (0)