agent

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

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

func NewAgent

func NewAgent(tr *tools.Registry, cfg *config.Config) *Agent

func (*Agent) GetStats

func (a *Agent) GetStats() UsageStats

func (*Agent) Start

func (a *Agent) Start(ctx context.Context, userMessage string, msgCh chan<- tea.Msg)

type ErrMsg

type ErrMsg struct{ Err error }

type FinalResultMsg

type FinalResultMsg struct{ Content string }

type ThoughtMsg

type ThoughtMsg struct{ Content string }

type TokenUsageMsg

type TokenUsageMsg struct{ Tokens int }

type ToolCallMsg

type ToolCallMsg struct{ Content string }

type ToolResultMsg

type ToolResultMsg struct{ Content string }

type UsageStats

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

Jump to

Keyboard shortcuts

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