diff --git a/gptscript_test.go b/gptscript_test.go index eb471c8..82bf735 100644 --- a/gptscript_test.go +++ b/gptscript_test.go @@ -696,14 +696,14 @@ func TestFmt(t *testing.T) { ToolDef: ToolDef{ Name: "echo", Instructions: "#!/bin/bash\necho hello there", - }, - Arguments: &openapi3.Schema{ - Type: &openapi3.Types{"object"}, - Properties: map[string]*openapi3.SchemaRef{ - "input": { - Value: &openapi3.Schema{ - Description: "The string input to echo", - Type: &openapi3.Types{"string"}, + Arguments: &openapi3.Schema{ + Type: &openapi3.Types{"object"}, + Properties: map[string]*openapi3.SchemaRef{ + "input": { + Value: &openapi3.Schema{ + Description: "The string input to echo", + Type: &openapi3.Types{"string"}, + }, }, }, }, @@ -757,14 +757,14 @@ func TestFmtWithTextNode(t *testing.T) { ToolDef: ToolDef{ Instructions: "#!/bin/bash\necho hello there", Name: "echo", - }, - Arguments: &openapi3.Schema{ - Type: &openapi3.Types{"object"}, - Properties: map[string]*openapi3.SchemaRef{ - "input": { - Value: &openapi3.Schema{ - Description: "The string input to echo", - Type: &openapi3.Types{"string"}, + Arguments: &openapi3.Schema{ + Type: &openapi3.Types{"object"}, + Properties: map[string]*openapi3.SchemaRef{ + "input": { + Value: &openapi3.Schema{ + Description: "The string input to echo", + Type: &openapi3.Types{"string"}, + }, }, }, }, diff --git a/tool.go b/tool.go index 36eb535..306723b 100644 --- a/tool.go +++ b/tool.go @@ -105,7 +105,6 @@ type ToolNode struct { type Tool struct { ToolDef `json:",inline"` ID string `json:"id,omitempty"` - Arguments *openapi3.Schema `json:"arguments,omitempty"` ToolMapping map[string][]ToolReference `json:"toolMapping,omitempty"` LocalTools map[string]string `json:"localTools,omitempty"` Source ToolSource `json:"source,omitempty"`