added tool config
This commit is contained in:
parent
52979a1eaf
commit
3ae969390e
|
@ -19,6 +19,7 @@ type APIConfig struct {
|
||||||
Responses map[string]ResponseConfig `json:"responses" yaml:"responses"`
|
Responses map[string]ResponseConfig `json:"responses" yaml:"responses"`
|
||||||
HttpConfig HttpConfig `json:"http" yaml:"http"`
|
HttpConfig HttpConfig `json:"http" yaml:"http"`
|
||||||
McpConfig McpConfig `json:"mcp" yaml:"mcp"`
|
McpConfig McpConfig `json:"mcp" yaml:"mcp"`
|
||||||
|
McpTool MCPToolConfig `json:"mcpTool" yaml:"mcpTool"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type HttpConfig struct {
|
type HttpConfig struct {
|
||||||
|
@ -36,6 +37,8 @@ type MCPToolConfig struct {
|
||||||
Name string `json:"name" yaml:"name"`
|
Name string `json:"name" yaml:"name"`
|
||||||
Description string `json:"description" yaml:"description"`
|
Description string `json:"description" yaml:"description"`
|
||||||
Args map[string]ArgType `json:"args" yaml:"args"`
|
Args map[string]ArgType `json:"args" yaml:"args"`
|
||||||
|
// Result represents the tag to get the result from
|
||||||
|
Result string `json:"result" yaml:"result"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ArgType struct {
|
type ArgType struct {
|
||||||
|
|
Loading…
Reference in New Issue