We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0fb2e8 commit f243c37Copy full SHA for f243c37
tool.go
@@ -33,6 +33,20 @@ type ToolDef struct {
33
MetaData map[string]string `json:"metadata,omitempty"`
34
}
35
36
+func ToolDefsToNodes(tools []ToolDef) []Node {
37
+ nodes := make([]Node, 0, len(tools))
38
+ for _, tool := range tools {
39
+ nodes = append(nodes, Node{
40
+ ToolNode: &ToolNode{
41
+ Tool: Tool{
42
+ ToolDef: tool,
43
+ },
44
45
+ })
46
+ }
47
+ return nodes
48
+}
49
+
50
func ObjectSchema(kv ...string) *openapi3.Schema {
51
s := &openapi3.Schema{
52
Type: &openapi3.Types{"object"},
0 commit comments