Documentation
¶
Overview ¶
Package toolhouse provides a Toolhouse extension for pegwings-go.
It allows you to use the Toolhouse API to give tools to your ai models.
Package toolhouse provides a Toolhouse extension for pegwings-go.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options func(*Toolhouse)
Options is a function that sets options for a Toolhouse extension.
func WithBaseURL ¶
WithBaseURL sets the base URL for the Toolhouse extension.
func WithClient ¶
WithClient sets the client for the Toolhouse extension.
func WithLogger ¶
WithLogger sets the logger for the Toolhouse extension.
func WithMetadata ¶
WithMetadata sets the metadata for the get tools request.
type Toolhouse ¶
type Toolhouse struct {
// contains filtered or unexported fields
}
Toolhouse is a Toolhouse extension.
func NewExtension ¶
NewExtension creates a new Toolhouse extension.
func (*Toolhouse) Run ¶
func (e *Toolhouse) Run( ctx context.Context, response pegwings.ChatCompletionResponse, ) ([]pegwings.ChatCompletionMessage, error)
Run runs the extension on the given history.