tools

package
v1.6.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnonymousTool added in v1.0.8

type AnonymousTool interface {
	ITool
	RunAnonymous(context.Context, any) (any, error)
}

type Config

type Config struct {
	// contains filtered or unexported fields
}

Config class for tools within the Atomic Agents framework

func (Config) Description

func (c Config) Description() string

func (*Config) EndHook added in v1.0.8

func (c *Config) EndHook() func(context.Context, AnonymousTool, any, any)

func (*Config) ErrorHook added in v1.0.8

func (c *Config) ErrorHook() func(context.Context, AnonymousTool, any, error)

func (*Config) SetDescription

func (c *Config) SetDescription(v string)

func (*Config) SetEndHook added in v1.0.8

func (c *Config) SetEndHook(fn func(context.Context, AnonymousTool, any, any))

func (*Config) SetErrorHook added in v1.0.8

func (c *Config) SetErrorHook(fn func(context.Context, AnonymousTool, any, error))

func (*Config) SetStartHook added in v1.0.8

func (c *Config) SetStartHook(fn func(context.Context, AnonymousTool, any))

func (*Config) SetTitle

func (c *Config) SetTitle(v string)

func (*Config) StartHook added in v1.0.8

func (c *Config) StartHook() func(context.Context, AnonymousTool, any)

func (Config) Title

func (c Config) Title() string

type ITool added in v1.0.8

type ITool interface {
	SetTitle(string)
	Title() string
	SetDescription(string)
	Description() string
	SetStartHook(fn func(context.Context, AnonymousTool, any))
	SetEndHook(fn func(context.Context, AnonymousTool, any, any))
	SetErrorHook(fn func(context.Context, AnonymousTool, any, error))
}

type Option

type Option func(c *Config)

func WithDescription

func WithDescription(desc string) Option

func WithEndHook added in v1.0.8

func WithEndHook(fn func(context.Context, AnonymousTool, any, any)) Option

func WithErrorHook added in v1.0.8

func WithErrorHook(fn func(context.Context, AnonymousTool, any, error)) Option

func WithStartHook added in v1.0.8

func WithStartHook(fn func(context.Context, AnonymousTool, any)) Option

func WithTitle

func WithTitle(title string) Option

type Tool

type Tool[I schema.Schema, O schema.Schema] interface {
	ITool
	Run(context.Context, *I, *O) error
}

Directories

Path Synopsis
Package calculator The Calculator Tool is a utility within the Atomic Agents ecosystem designed for performing a variety of mathematical calculations.
Package calculator The Calculator Tool is a utility within the Atomic Agents ecosystem designed for performing a variety of mathematical calculations.
Package orchestration includes tools orchestration
Package orchestration includes tools orchestration
Package searxng The SearxNG Search Tool is a powerful utility within the Atomic Agents ecosystem that allows you to perform searches using SearxNG, a privacy-respecting metasearch engine.
Package searxng The SearxNG Search Tool is a powerful utility within the Atomic Agents ecosystem that allows you to perform searches using SearxNG, a privacy-respecting metasearch engine.
Package webscraper The Webpage Scraper Tool is a utility within the Atomic Agents ecosystem designed for scraping web content and converting it to markdown format.
Package webscraper The Webpage Scraper Tool is a utility within the Atomic Agents ecosystem designed for scraping web content and converting it to markdown format.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL