Versions in this module Expand all Collapse all v0 v0.1.0 Oct 11, 2026 Changes in this version + const AccountUsageMethod + const RawEventMethod + const SessionStoreFormat + func Serve(ctx context.Context, input io.Reader, output io.Writer, opts ...Option) (returnErr error) + func SetModelRequest(sessionID acp.SessionId, model string) acp.SetSessionConfigOptionRequest + func ValidateHermesSessionMeta(meta map[string]any) error + func WithSessionHermesOptions(options HermesOptions) wire.SessionRequestOption + func WithSessionRawEvents(enabled bool) wire.SessionRequestOption + type Agent struct + func NewAgent(opts ...Option) *Agent + func (a *Agent) Authenticate(_ context.Context, params acp.AuthenticateRequest) (acp.AuthenticateResponse, error) + func (a *Agent) Cancel(ctx context.Context, params acp.CancelNotification) (err error) + func (a *Agent) Close() error + func (a *Agent) CloseSession(ctx context.Context, params acp.CloseSessionRequest) (resp acp.CloseSessionResponse, err error) + func (a *Agent) HandleExtensionMethod(ctx context.Context, method string, params json.RawMessage) (any, error) + func (a *Agent) Initialize(ctx context.Context, params acp.InitializeRequest) (resp acp.InitializeResponse, err error) + func (a *Agent) ListSessions(ctx context.Context, params acp.ListSessionsRequest) (resp acp.ListSessionsResponse, err error) + func (a *Agent) LoadSession(ctx context.Context, params acp.LoadSessionRequest) (resp acp.LoadSessionResponse, err error) + func (a *Agent) Logout(_ context.Context, params acp.LogoutRequest) (acp.LogoutResponse, error) + func (a *Agent) NewSession(ctx context.Context, params acp.NewSessionRequest) (resp acp.NewSessionResponse, err error) + func (a *Agent) Prompt(ctx context.Context, params acp.PromptRequest) (resp acp.PromptResponse, err error) + func (a *Agent) ResumeSession(ctx context.Context, params acp.ResumeSessionRequest) (resp acp.ResumeSessionResponse, err error) + func (a *Agent) SetSessionConfigOption(ctx context.Context, params acp.SetSessionConfigOptionRequest) (resp acp.SetSessionConfigOptionResponse, err error) + func (a *Agent) SetSessionMode(_ context.Context, params acp.SetSessionModeRequest) (acp.SetSessionModeResponse, error) + func (a *Agent) UnstableDeleteSession(ctx context.Context, params acp.UnstableDeleteSessionRequest) (resp acp.UnstableDeleteSessionResponse, err error) + type ConcurrencyLimits struct + MaxActiveSessions int + MaxConcurrentClientCalls int + type HermesOption func(*HermesOptions) + func WithHermesEffort(level string) HermesOption + func WithHermesEnv(env map[string]string) HermesOption + func WithHermesExtraPathDirs(dirs ...string) HermesOption + func WithHermesModel(model string) HermesOption + type HermesOptions struct + Effort string + Env map[string]string + ExtraPathDirs []string + Model string + func NewHermesOptions(opts ...HermesOption) HermesOptions + func (options HermesOptions) Meta() map[string]any + type ImageLimits struct + MaxInputBytesPerImage int64 + MaxInputBytesPerPrompt int64 + MaxOutputBytesPerImage int64 + MaxOutputBytesPerToolCall int64 + type Option func(*Options) + func WithAgentName(name string) Option + func WithAgentTitle(title string) Option + func WithAgentVersion(version string) Option + func WithConcurrencyLimits(limits ConcurrencyLimits) Option + func WithConfiguredModels(ids []string) Option + func WithDefaultModel(model string) Option + func WithEnv(env map[string]string) Option + func WithExecutablePath(path string) Option + func WithHome(path string) Option + func WithImageLimits(limits ImageLimits) Option + func WithInputHandoffRoot(dir string) Option + func WithLogger(logger *slog.Logger) Option + func WithMeterProvider(provider metric.MeterProvider) Option + func WithScratchDir(dir string) Option + func WithSeedFiles(files map[string]string) Option + func WithSessionStore(store acpcore.SessionStore) Option + func WithTextMapPropagator(propagator propagation.TextMapPropagator) Option + func WithTracerProvider(provider trace.TracerProvider) Option + type Options struct + AgentName string + AgentTitle string + AgentVersion string + ConcurrencyLimits ConcurrencyLimits + ConfiguredModels []string + DefaultModel string + Env map[string]string + ExecutablePath string + Home string + ImageLimits ImageLimits + InputHandoffRoot string + Logger *slog.Logger + MeterProvider metric.MeterProvider + ScratchDir string + SeedFiles map[string]string + SessionStore acpcore.SessionStore + TextMapPropagator propagation.TextMapPropagator + TracerProvider trace.TracerProvider