neighbor

package
v1.0.0-alpha.5 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildNeighborTools

func BuildNeighborTools(neighbors []Config, logger *zap.Logger) []fantasy.AgentTool

Types

type Client

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

func NewClient

func NewClient(cfg Config) *Client

func (*Client) SendMessage

func (c *Client) SendMessage(ctx context.Context, message string) (string, error)

type Config

type Config struct {
	Name  string
	URL   string
	Token string
}

type MessageInput

type MessageInput struct {
	Message string `json:"message" jsonschema:"description=The message to send to the neighbor agent"`
}

Jump to

Keyboard shortcuts

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