Ai
1 Star 0 Fork 0

tmfll/mcp-golang

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
prompt_response_types.go 1.60 KB
一键复制 编辑 原始数据 按行查看 历史
package mcp_golang
import "encoding/json"
type baseGetPromptRequestParamsArguments struct {
// We will deserialize the arguments into the users struct later on
Arguments json.RawMessage `json:"arguments,omitempty" yaml:"arguments,omitempty" mapstructure:"arguments,omitempty"`
// The name of the prompt or prompt template.
Name string `json:"name" yaml:"name" mapstructure:"name"`
}
// The server's response to a prompts/list request from the client.
type listPromptsResult struct {
// Prompts corresponds to the JSON schema field "prompts".
Prompts []*promptSchema `json:"prompts" yaml:"prompts" mapstructure:"prompts"`
}
// A promptSchema or prompt template that the server offers.
type promptSchema struct {
// A list of arguments to use for templating the prompt.
Arguments []promptSchemaArgument `json:"arguments,omitempty" yaml:"arguments,omitempty" mapstructure:"arguments,omitempty"`
// An optional description of what this prompt provides
Description *string `json:"description,omitempty" yaml:"description,omitempty" mapstructure:"description,omitempty"`
// The name of the prompt or prompt template.
Name string `json:"name" yaml:"name" mapstructure:"name"`
}
type promptSchemaArgument struct {
// A human-readable description of the argument.
Description *string `json:"description,omitempty" yaml:"description,omitempty" mapstructure:"description,omitempty"`
// The name of the argument.
Name string `json:"name" yaml:"name" mapstructure:"name"`
// Whether this argument must be provided.
Required *bool `json:"required,omitempty" yaml:"required,omitempty" mapstructure:"required,omitempty"`
}
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

搜索帮助