controller

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentLike

type AgentLike[T any] interface {
	CallLLM(ctx context.Context, input string) (string, error)
	CallLLMWithTools(ctx context.Context, input string) (*Completion, error)
	State() *T
	Tools() *tool.Registry
	RunToolCalls(ctx context.Context, calls []schema.ToolCall) ([]toolruntime.Result, error)
}

type Completion

type Completion struct {
	Text      string
	ToolCalls []schema.ToolCall
	Usage     llm.Usage
}

type Controller

type Controller[T any] interface {
	Run(ctx context.Context, agent AgentLike[T], input string) (string, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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