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 ¶
type PermissionHandler = acpagent.PermissionHandler
PermissionHandler decides how ACP permission requests should be handled.
Click to show internal directories.
Click to hide internal directories.