utils

package
v0.6.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 29, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallFunction

func CallFunction(fn interface{}, args ...interface{}) (interface{}, error, error)

CallTool invokes a tool by name with provided arguments returns the result, error, error the first error is the error from the function when called, the second error is if there was an error validating the arguments

func GetFullSchemaFromInterface

func GetFullSchemaFromInterface(t reflect.Type) (*jsonschema.Schema, string, error)

func GetSchemaFromType

func GetSchemaFromType(t reflect.Type) (*jsonschema.Schema, string, error)

func ValidateJsonSchemaWithBytes

func ValidateJsonSchemaWithBytes(schema *jsonschema.Schema, data []byte) error

func ValidateJsonSchemaWithObject

func ValidateJsonSchemaWithObject(schema *jsonschema.Schema, data interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL