ProjectsAgentsModelFactory.ToolConfig(Nullable<Boolean>, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Per-tool configuration that controls tool visibility and search behavior.
public static Azure.AI.Projects.Agents.ToolConfig ToolConfig(bool? pin = default, string additionalSearchText = default);
static member ToolConfig : Nullable<bool> * string -> Azure.AI.Projects.Agents.ToolConfig
Public Shared Function ToolConfig (Optional pin As Nullable(Of Boolean) = Nothing, Optional additionalSearchText As String = Nothing) As ToolConfig
Parameters
When true, the tool is always included in agent context and visible in tools/list.
When false (default), the tool is hidden from tools/list and only discoverable via tool_search.
- additionalSearchText
- String
Additional text indexed for tool_search. Supplements the native tool description
to improve discoverability. Does not alter tools/list output.
Returns
A new ToolConfig instance for mocking.