Documentation
¶
Index ¶
- func Describe(ctx context.Context, h Handler) (string, error)
- func MustUnmarshalFn(data []byte) provider.ToolFunction
- func MustUnmarshalTool(data []byte) provider.Tool
- func UnmarshalFn(data []byte) (provider.ToolFunction, error)
- func UnmarshalTool(data []byte) (provider.Tool, error)
- type DescriptionSource
- type Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Describe ¶
Describe gets a tool description, or an empty string if the tool doesn't provide additional description.
func MustUnmarshalFn ¶
func MustUnmarshalFn(data []byte) provider.ToolFunction
MustUnmarshalFn unmarshals a JSON-encoded tool function and panics on error.
func MustUnmarshalTool ¶
MustUnmarshalTool unmarshals a JSON-encoded tool and panics on error.
func UnmarshalFn ¶
func UnmarshalFn(data []byte) (provider.ToolFunction, error)
UnmarshalFn unmarshals a JSON-encoded tool function and returns a ToolFunction struct.
Types ¶
type DescriptionSource ¶
Click to show internal directories.
Click to hide internal directories.