Ai
1 Star 0 Fork 0

tmfll/mcp-golang

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
resource_response_types.go 1.46 KB
一键复制 编辑 原始数据 按行查看 历史
package mcp_golang
type readResourceRequestParams struct {
// The URI of the resource to read. The URI can use any protocol; it is up to the
// server how to interpret it.
Uri string `json:"uri" yaml:"uri" mapstructure:"uri"`
}
// The server's response to a resources/list request from the client.
type listResourcesResult struct {
// Resources corresponds to the JSON schema field "resources".
Resources []*resourceSchema `json:"resources" yaml:"resources" mapstructure:"resources"`
}
// A known resource that the server is capable of reading.
type resourceSchema struct {
// Annotations corresponds to the JSON schema field "annotations".
Annotations *Annotations `json:"annotations,omitempty" yaml:"annotations,omitempty" mapstructure:"annotations,omitempty"`
// A description of what this resource represents.
//
// This can be used by clients to improve the LLM's understanding of available
// resources. It can be thought of like a "hint" to the model.
Description *string `json:"description,omitempty" yaml:"description,omitempty" mapstructure:"description,omitempty"`
// The MIME type of this resource, if known.
MimeType *string `json:"mimeType,omitempty" yaml:"mimeType,omitempty" mapstructure:"mimeType,omitempty"`
// A human-readable name for this resource.
//
// This can be used by clients to populate UI elements.
Name string `json:"name" yaml:"name" mapstructure:"name"`
// The URI of this resource.
Uri string `json:"uri" yaml:"uri" mapstructure:"uri"`
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tmfll/mcp-golang.git
git@gitee.com:tmfll/mcp-golang.git
tmfll
mcp-golang
mcp-golang
Chrisbattarbee-patch-1

搜索帮助