server

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2026 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenAndServe added in v0.15.9

func ListenAndServe(ctx context.Context, address string) error

ListenAndServe accepts ACP connections on a TCP address until ctx is cancelled. Each connection owns an independent ACP server, allowing a platform to disconnect and attach again without restarting the worker.

func Run

func Run(ctx context.Context, in io.Reader, out io.Writer) error

func Serve added in v0.15.9

func Serve(ctx context.Context, listener net.Listener) error

Serve serves ACP on listener. It is exported so embedders can provide a listener with their own networking or authentication policy.

Types

type Server

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

func (*Server) Cancel

func (s *Server) Cancel(_ context.Context, params acpsdk.CancelNotification) error

func (*Server) CloseSession

func (*Server) Confirm added in v0.10.3

func (s *Server) Confirm(ctx context.Context, message string) (bool, error)

func (*Server) Elicit added in v0.10.3

func (s *Server) Elicit(ctx context.Context, req tool.ElicitRequest) (tool.ElicitResult, error)

func (*Server) Initialize

func (*Server) ListSessions

func (*Server) LoadSession

func (*Server) Logout added in v0.8.5

func (*Server) NewSession

func (*Server) Prompt

func (*Server) ResumeSession

func (*Server) SetSessionMode

func (*Server) UnstableDeleteSession added in v0.12.0

UnstableDeleteSession implements the stable session/delete wire method. The v0.13.5 Go SDK still uses the Unstable prefix for its generated Go symbols.

Jump to

Keyboard shortcuts

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