KnowledgeBaseTool Constructor
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.
Initializes a new instance of KnowledgeBaseTool.
public KnowledgeBaseTool(string name, string description, System.Collections.Generic.IEnumerable<Azure.Search.Documents.Indexes.Models.KnowledgeBaseToolKnowledgeSourceReference> knowledgeSources);
new Azure.Search.Documents.Indexes.Models.KnowledgeBaseTool : string * string * seq<Azure.Search.Documents.Indexes.Models.KnowledgeBaseToolKnowledgeSourceReference> -> Azure.Search.Documents.Indexes.Models.KnowledgeBaseTool
Public Sub New (name As String, description As String, knowledgeSources As IEnumerable(Of KnowledgeBaseToolKnowledgeSourceReference))
Parameters
- name
- String
The unique, case-sensitive tool name. Contains 2 to 64 lowercase ASCII letters, digits, or hyphens, with no leading or trailing hyphen.
- description
- String
A nonempty description of when to use the tool, at most 1024 characters. Advertised verbatim in the MCP catalog.
- knowledgeSources
- IEnumerable<KnowledgeBaseToolKnowledgeSourceReference>
A nonempty list of unique source references. Each source must belong to the knowledge base. Different tools may reference the same source.
Exceptions
name, description or knowledgeSources is null.