mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
Python: AzureAI Agent AI Search Sample (#1281)
* azure ai search sample * small fix
This commit is contained in:
committed by
GitHub
Unverified
parent
523127fbf4
commit
334d52f300
@@ -907,6 +907,10 @@ class AzureAIAgentClient(BaseChatClient):
|
||||
filter=additional_props.get("filter", ""),
|
||||
)
|
||||
tool_definitions.extend(ai_search.definitions)
|
||||
# Add tool resources for Azure AI Search
|
||||
if run_options is not None:
|
||||
run_options.setdefault("tool_resources", {})
|
||||
run_options["tool_resources"].update(ai_search.resources)
|
||||
case ToolDefinition():
|
||||
tool_definitions.append(tool)
|
||||
case dict():
|
||||
|
||||
Reference in New Issue
Block a user