agents

package
v0.0.0-...-fa69716 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DEFAULT_SYSTEM_PROMPT = `` /* 2576-byte string literal not displayed */

)

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent interface {
	Chat(ctx context.Context, req *api.Request) *api.Response
}

func New

func New(llm providers.Client, option Option) Agent

type Option

type Option struct {
	SystemPrompt string
	MaxLoopTimes int

	Tools []*tools.Tool
}

type ToolUse

type ToolUse struct {
	XMLName   xml.Name `xml:"tool_use"`
	GenID     string   `xml:"id"`
	Name      string   `xml:"name"`
	Arguments string   `xml:"arguments"`
}

func (*ToolUse) ID

func (t *ToolUse) ID() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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