agent

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	MaxIterations int
	Timeout       time.Duration
}

Config configures agent behavior.

type Orchestrator

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

Orchestrator processes agent-mode requests, automatically calling MCP tools and Memory as configured.

func NewOrchestrator

func NewOrchestrator(p provider.Provider, mem memory.MemoryStore) *Orchestrator

NewOrchestrator creates a new Agent Orchestrator.

func (*Orchestrator) Process

func (o *Orchestrator) Process(ctx context.Context, req *Request) (*Response, error)

Process handles an agent-mode request end-to-end.

type Request

type Request struct {
	SessionID    string
	AgentID      string
	Messages     []*schema.Message
	Tools        []*schema.ToolInfo
	Config       *Config
	EnableMCP    bool
	EnableMemory bool
	AutoToolCall bool
}

Request is an agent-mode request.

type Response

type Response struct {
	SessionID string
	Messages  []*schema.Message
	Usage     provider.Usage
}

Response is the final agent-mode response.

Jump to

Keyboard shortcuts

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