Support for tool_search in AzureChatCompletion #13684
-
|
Hi team, I’m exploring the new tool search capability available in the OpenAI Responses API, where tools can be dynamically discovered and loaded at runtime using: This is very useful for reducing token usage and improving latency by avoiding preloading all tool definitions. However, when using the Semantic Kernel connector with AzureChatCompletion, I don’t see any equivalent support for tool_search, if I did not miss it. The class currently only exposes configuration-related parameters (e.g., deployment, endpoint, credentials), and there doesn’t appear to be a way to pass dynamic tool discovery options. Questions: Any guidance or roadmap insights would be greatly appreciated. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
Hi @AisheeDasgupta, Great question-this is a very relevant gap when moving toward more agentic / dynamic tool usage patterns. Current SituationAs of now, Semantic Kernel’s The connector is primarily designed around:
So you're correct-there isn’t a direct way today to pass something like: {"type": "tool_search"}and have tools dynamically resolved at runtime. Recommended Workarounds1. Manual Tool Routing Layer (Closest to tool_search)You can implement a lightweight “tool registry + selector” before invoking Semantic Kernel:
This mimics 2. Planner-Based Approach (Semantic Kernel Native)Leverage SK planners (like stepwise planners):
Limitation: 3. Hybrid Approach (Recommended for Agentic Systems)Combine:
Flow: This gives:
Azure Limitation NoteEven when using Azure OpenAI deployments, feature parity with the Responses API (like Summary
SuggestionIf this capability is important, it might be worth opening a feature request in the Semantic Kernel repo to support:
|
Beta Was this translation helpful? Give feedback.
-
|
Tool search works with AzureOpenAI but you need to use the Azure OpenAI Responses API, not the Chat Completions API. The tool_search feature is part of the Responses API which requires a compatible model deployment (GPT-4o or newer). Make sure your |
Beta Was this translation helpful? Give feedback.
-
|
We recommend migrating to our SK V2 SDK - Microsoft Agent Framework. |
Beta Was this translation helpful? Give feedback.
Hi @AisheeDasgupta,
Great question-this is a very relevant gap when moving toward more agentic / dynamic tool usage patterns.
Current Situation
As of now, Semantic Kernel’s
AzureChatCompletionconnector does not natively supporttool_search(or dynamic tool discovery) like the newer OpenAI Responses API.The connector is primarily designed around:
So you're correct-there isn’t a direct way today to pass something like:
{"type": "tool_search"}and have tools dynamically resolved at runtime.
Recommended Workarounds
1. Manual Tool Routing Layer (Closest to tool_search)
You can implement a lightweight “tool regi…