From 90aaf65c9853a5d8ebb26f32611ba785302852ad Mon Sep 17 00:00:00 2001 From: Kofo Okesola Date: Sun, 29 Jun 2025 05:29:29 +0100 Subject: [PATCH] added tool config --- apiconfig/apiconfig.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apiconfig/apiconfig.go b/apiconfig/apiconfig.go index 9e87eaa..f0c5a56 100644 --- a/apiconfig/apiconfig.go +++ b/apiconfig/apiconfig.go @@ -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,8 @@ 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"` } type ArgType struct {