Python: ollama + azureai openapi samples fix (#1244)

* ollama + azureai openapi samples fix

* small fix
This commit is contained in:
Giles Odigwe
2025-10-07 09:14:34 -07:00
committed by GitHub
Unverified
parent d01d9afb92
commit 1d27b57672
2 changed files with 3 additions and 1 deletions
@@ -898,6 +898,8 @@ class AzureAIAgentClient(BaseChatClient):
filter=additional_props.get("filter", ""),
)
tool_definitions.extend(ai_search.definitions)
case ToolDefinition():
tool_definitions.append(tool)
case dict():
tool_definitions.append(tool)
case _:
@@ -44,7 +44,7 @@ async def non_streaming_example() -> None:
query = "What's the weather like in Seattle?"
print(f"User: {query}")
result = await agent.run(query)
print(f"Result: {result}\n")
print(f"Agent: {result}\n")
async def streaming_example() -> None: