@@ -9,27 +9,28 @@ import (
99
1010// ToolDef struct represents a tool with various configurations.
1111type ToolDef struct {
12- Name string `json:"name,omitempty"`
13- Description string `json:"description,omitempty"`
14- MaxTokens int `json:"maxTokens,omitempty"`
15- ModelName string `json:"modelName,omitempty"`
16- ModelProvider bool `json:"modelProvider,omitempty"`
17- JSONResponse bool `json:"jsonResponse,omitempty"`
18- Chat bool `json:"chat,omitempty"`
19- Temperature * float32 `json:"temperature,omitempty"`
20- Cache * bool `json:"cache,omitempty"`
21- InternalPrompt * bool `json:"internalPrompt"`
22- Arguments * openapi3.Schema `json:"arguments,omitempty"`
23- Tools []string `json:"tools,omitempty"`
24- GlobalTools []string `json:"globalTools,omitempty"`
25- GlobalModelName string `json:"globalModelName,omitempty"`
26- Context []string `json:"context,omitempty"`
27- ExportContext []string `json:"exportContext,omitempty"`
28- Export []string `json:"export,omitempty"`
29- Agents []string `json:"agents,omitempty"`
30- Credentials []string `json:"credentials,omitempty"`
31- Instructions string `json:"instructions,omitempty"`
32- Type string `json:"type,omitempty"`
12+ Name string `json:"name,omitempty"`
13+ Description string `json:"description,omitempty"`
14+ MaxTokens int `json:"maxTokens,omitempty"`
15+ ModelName string `json:"modelName,omitempty"`
16+ ModelProvider bool `json:"modelProvider,omitempty"`
17+ JSONResponse bool `json:"jsonResponse,omitempty"`
18+ Chat bool `json:"chat,omitempty"`
19+ Temperature * float32 `json:"temperature,omitempty"`
20+ Cache * bool `json:"cache,omitempty"`
21+ InternalPrompt * bool `json:"internalPrompt"`
22+ Arguments * openapi3.Schema `json:"arguments,omitempty"`
23+ Tools []string `json:"tools,omitempty"`
24+ GlobalTools []string `json:"globalTools,omitempty"`
25+ GlobalModelName string `json:"globalModelName,omitempty"`
26+ Context []string `json:"context,omitempty"`
27+ ExportContext []string `json:"exportContext,omitempty"`
28+ Export []string `json:"export,omitempty"`
29+ Agents []string `json:"agents,omitempty"`
30+ Credentials []string `json:"credentials,omitempty"`
31+ Instructions string `json:"instructions,omitempty"`
32+ Type string `json:"type,omitempty"`
33+ MetaData map [string ]string `json:"metadata,omitempty"`
3334}
3435
3536func ObjectSchema (kv ... string ) * openapi3.Schema {
@@ -87,7 +88,6 @@ type Tool struct {
8788 ID string `json:"id,omitempty"`
8889 Arguments * openapi3.Schema `json:"arguments,omitempty"`
8990 ToolMapping map [string ][]ToolReference `json:"toolMapping,omitempty"`
90- MetaData map [string ]string `json:"metadata,omitempty"`
9191 LocalTools map [string ]string `json:"localTools,omitempty"`
9292 Source ToolSource `json:"source,omitempty"`
9393 WorkingDir string `json:"workingDir,omitempty"`
0 commit comments