SearchModelFactory.KnowledgeBaseMessage 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.
The natural language message style object.
public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseMessage KnowledgeBaseMessage(string role = default, System.Collections.Generic.IEnumerable<Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseMessageContent> content = default);
static member KnowledgeBaseMessage : string * seq<Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseMessageContent> -> Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseMessage
Public Shared Function KnowledgeBaseMessage (Optional role As String = Nothing, Optional content As IEnumerable(Of KnowledgeBaseMessageContent) = Nothing) As KnowledgeBaseMessage
Parameters
- role
- String
The role of the tool response.
- content
- IEnumerable<KnowledgeBaseMessageContent>
The content of the message.
Returns
A new KnowledgeBaseMessage instance for mocking.