Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrToolCreation ¶
type ErrToolCreation struct {
Message string
}
func (ErrToolCreation) Error ¶
func (e ErrToolCreation) Error() string
type SkillCardOption ¶
type SkillCardOption interface {
Apply(*SkillCard)
}
func WithExamples ¶
func WithExamples(examples ...string) SkillCardOption
func WithTags ¶
func WithTags(tags ...string) SkillCardOption
type SkillOptionFunc ¶
type SkillOptionFunc func(*SkillCard)
func (SkillOptionFunc) Apply ¶
func (s SkillOptionFunc) Apply(r *SkillCard)
type Tool ¶
type Tool struct {
// Argument agnostic function wrapper over the user's implementaion.
Callable ToolCallable
// Parameters Schema
Schema *jsonschema.Schema
// SkillCard card
SkillCard
}
func NewTool ¶
func NewTool(name, description string, callable func(ctx context.Context) (string, error), options ...SkillCardOption) Tool
Declare tool that does not require any arguments
func NewToolWithArgs ¶
func NewToolWithArgs[T any](name, description string, callable ToolCallableTyped[T], options ...SkillCardOption) (Tool, error)
Declare a tool with required arguments
type ToolCallable ¶
type ToolCallableTyped ¶
Click to show internal directories.
Click to hide internal directories.