agentrepl

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunAgentREPL

func RunAgentREPL(ctx context.Context, cfg AgentREPLConfig) error

RunAgentREPL runs a line-based REPL for an ADK agent factory.

Types

type AgentFactory

type AgentFactory func(context.Context, PermissionHandler, io.Writer) (adkagent.Agent, func() error, error)

AgentFactory builds an ADK agent and returns an optional close function.

type AgentREPLConfig

type AgentREPLConfig struct {
	AppName             string
	UserID              string
	Stdin               io.Reader
	Stdout              io.Writer
	Stderr              io.Writer
	AgentFactory        AgentFactory
	StartupPrompt       string
	StartupPromptSilent bool
}

AgentREPLConfig configures a generic ADK-backed terminal REPL.

type PermissionHandler

PermissionHandler decides how ACP permission requests should be handled.

Jump to

Keyboard shortcuts

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