fix: fix OpenAPI build (#2036)
This commit is contained in:
@@ -424,6 +424,39 @@
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"description": "Frontend-provided tools that will be called through the frontend",
|
||||
"required": [
|
||||
"name",
|
||||
"tools",
|
||||
"type"
|
||||
],
|
||||
"properties": {
|
||||
"instructions": {
|
||||
"type": "string",
|
||||
"description": "Instructions for how to use these tools",
|
||||
"nullable": true
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "The name used to identify this extension"
|
||||
},
|
||||
"tools": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/Tool"
|
||||
},
|
||||
"description": "The tools provided by the frontend"
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"frontend"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"description": "Represents the different types of MCP extensions that can be added to the manager",
|
||||
@@ -566,6 +599,63 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"Tool": {
|
||||
"type": "object",
|
||||
"description": "A tool that can be used by a model.",
|
||||
"required": [
|
||||
"name",
|
||||
"description",
|
||||
"inputSchema"
|
||||
],
|
||||
"properties": {
|
||||
"annotations": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/ToolAnnotations"
|
||||
}
|
||||
],
|
||||
"nullable": true
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"description": "A description of what the tool does"
|
||||
},
|
||||
"inputSchema": {
|
||||
"description": "A JSON Schema object defining the expected parameters for the tool"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "The name of the tool"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ToolAnnotations": {
|
||||
"type": "object",
|
||||
"description": "Additional properties describing a tool to clients.\n\nNOTE: all properties in ToolAnnotations are **hints**.\nThey are not guaranteed to provide a faithful description of\ntool behavior (including descriptive properties like `title`).\n\nClients should never make tool use decisions based on ToolAnnotations\nreceived from untrusted servers.",
|
||||
"properties": {
|
||||
"destructiveHint": {
|
||||
"type": "boolean",
|
||||
"description": "If true, the tool may perform destructive updates to its environment.\nIf false, the tool performs only additive updates.\n\n(This property is meaningful only when `read_only_hint == false`)\n\nDefault: true"
|
||||
},
|
||||
"idempotentHint": {
|
||||
"type": "boolean",
|
||||
"description": "If true, calling the tool repeatedly with the same arguments\nwill have no additional effect on its environment.\n\n(This property is meaningful only when `read_only_hint == false`)\n\nDefault: false"
|
||||
},
|
||||
"openWorldHint": {
|
||||
"type": "boolean",
|
||||
"description": "If true, this tool may interact with an \"open world\" of external\nentities. If false, the tool's domain of interaction is closed.\nFor example, the world of a web search tool is open, whereas that\nof a memory tool is not.\n\nDefault: true"
|
||||
},
|
||||
"readOnlyHint": {
|
||||
"type": "boolean",
|
||||
"description": "If true, the tool does not modify its environment.\n\nDefault: false"
|
||||
},
|
||||
"title": {
|
||||
"type": "string",
|
||||
"description": "A human-readable title for the tool.",
|
||||
"nullable": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"UpsertConfigQuery": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
|
||||
Reference in New Issue
Block a user