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 ¶
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 metaphor contains an implementation of the tool interface with the metaphor search api client.
|
// Package metaphor contains an implementation of the tool interface with the metaphor search api client. |
Package scraper contains an implementation of the tool interface for a web scraping tool.
|
Package scraper contains an implementation of the tool interface for a web scraping tool. |
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.