acprepl

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: MIT Imports: 18 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.

func RunREPL

func RunREPL(
	ctx context.Context,
	workingDir string,
	command []string,
	sessionModel string,
	sessionMode string,
	stdin io.Reader,
	stdout io.Writer,
	stderr io.Writer,
) error

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

type PermissionHandler = acpagent.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