Documentation
¶
Overview ¶
Package tools defines a standard interface for tools to be used by agents.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Calculator ¶
type Calculator struct{}
Calculator is a tool that can do math.
func (Calculator) Call ¶
Call evaluates the input using a starlak evaluator and returns the result as a string. If the evaluator errors the error is given in the result to give the agent the ability to retry.
func (Calculator) Description ¶
func (c Calculator) Description() string
Description returns a string describing the calculator tool.
Directories
¶
Path | Synopsis |
---|---|
Package duckduckgo contains an implementation of the tool interface with the duckduckgo api client.
|
Package duckduckgo contains an implementation of the tool interface with the duckduckgo api client. |
Package serpapi contains an implementation of the tool interface with the serapi.
|
Package serpapi contains an implementation of the tool interface with the serapi. |
Package wikipedia contains an implementation of the tool interface with the wikipedia api.
|
Package wikipedia contains an implementation of the tool interface with the wikipedia api. |
Package zapier contains an implementation of the tool interface with the zapier NLA api client.
|
Package zapier contains an implementation of the tool interface with the zapier NLA api client. |
Click to show internal directories.
Click to hide internal directories.