added tool config

This commit is contained in:
Kofo Okesola 2025-06-29 05:29:29 +01:00
parent 52979a1eaf
commit 451d408c24
1 changed files with 4 additions and 1 deletions

View File

@ -18,7 +18,7 @@ type APIConfig struct {
Conditionals map[string]Conditional `json:"conditionals" yaml:"conditionals"`
Responses map[string]ResponseConfig `json:"responses" yaml:"responses"`
HttpConfig HttpConfig `json:"http" yaml:"http"`
McpConfig McpConfig `json:"mcp" yaml:"mcp"`
McpTool MCPToolConfig `json:"mcpTool" yaml:"mcpTool"`
}
type HttpConfig struct {
@ -36,6 +36,9 @@ type MCPToolConfig struct {
Name string `json:"name" yaml:"name"`
Description string `json:"description" yaml:"description"`
Args map[string]ArgType `json:"args" yaml:"args"`
// Result represents the tag to get the result from
Result string `json:"result" yaml:"result"`
Start string `json:"start" yaml:"start"`
}
type ArgType struct {