mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
Python: ollama + azureai openapi samples fix (#1244)
* ollama + azureai openapi samples fix * small fix
This commit is contained in:
committed by
GitHub
Unverified
parent
d01d9afb92
commit
1d27b57672
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user