KnowledgeBaseMcpServerReference Class
- java.
lang. Object - com.
azure. search. documents. knowledgebases. models. KnowledgeBaseReference - com.
azure. search. documents. knowledgebases. models. KnowledgeBaseMcpServerReference
- com.
- com.
public final class KnowledgeBaseMcpServerReference
extends KnowledgeBaseReference
Represents an MCP server document reference.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Knowledge |
fromJson(JsonReader jsonReader)
Reads an instance of Knowledge |
| String |
getTitle()
Get the title property: The title of the MCP server tool result. |
| String |
getToolName()
Get the tool |
|
Knowledge |
getType()
Get the type property: The type of the reference. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from KnowledgeBaseReference
Methods inherited from java.lang.Object
Method Details
fromJson
public static KnowledgeBaseMcpServerReference fromJson(JsonReader jsonReader)
Reads an instance of KnowledgeBaseMcpServerReference from the JsonReader.
Parameters:
Returns:
Throws:
getTitle
public String getTitle()
Get the title property: The title of the MCP server tool result.
Returns:
getToolName
public String getToolName()
Get the toolName property: The name of the MCP server tool that produced the reference.
Returns:
getType
public KnowledgeBaseReferenceType getType()
Get the type property: The type of the reference.
Overrides:
KnowledgeBaseMcpServerReference.getType()Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
KnowledgeBaseMcpServerReference.toJson(JsonWriter jsonWriter)Parameters:
Throws: