Versions in this module Expand all Collapse all v0 v0.0.5 Mar 7, 2026 v0.0.4 Mar 7, 2026 v0.0.3 Mar 7, 2026 v0.0.2 Mar 7, 2026 v0.0.1 Mar 5, 2026 Changes in this version + type AppServerAdapter struct + func NewAppServerAdapter(log *slog.Logger, opts *config.Options) *AppServerAdapter + func (a *AppServerAdapter) Close() error + func (a *AppServerAdapter) EndInput() error + func (a *AppServerAdapter) IsReady() bool + func (a *AppServerAdapter) ReadMessages(_ context.Context) (<-chan map[string]any, <-chan error) + func (a *AppServerAdapter) SendMessage(ctx context.Context, data []byte) error + func (a *AppServerAdapter) Start(ctx context.Context) error + type AppServerTransport struct + func NewAppServerTransport(log *slog.Logger, opts *config.Options) *AppServerTransport + func (t *AppServerTransport) Close() error + func (t *AppServerTransport) IsReady() bool + func (t *AppServerTransport) Notifications() <-chan *RPCNotification + func (t *AppServerTransport) Requests() <-chan *RPCIncomingRequest + func (t *AppServerTransport) SendRequest(ctx context.Context, method string, params any) (*RPCResponse, error) + func (t *AppServerTransport) SendResponse(id int64, result json.RawMessage, rpcErr *RPCError) error + func (t *AppServerTransport) Start(ctx context.Context) error + type CLITransport struct + func NewCLITransport(log *slog.Logger, prompt string, options *config.Options) *CLITransport + func NewCLITransportWithMode(log *slog.Logger, prompt string, options *config.Options, isStreaming bool) *CLITransport + func (t *CLITransport) Close() error + func (t *CLITransport) CloseStdin() error + func (t *CLITransport) EndInput() error + func (t *CLITransport) IsReady() bool + func (t *CLITransport) ReadMessages(ctx context.Context) (<-chan map[string]any, <-chan error) + func (t *CLITransport) SendMessage(ctx context.Context, data []byte) error + func (t *CLITransport) Start(ctx context.Context) error + type RPCError struct + Code int + Message string + func (e *RPCError) Error() string + type RPCIncomingRequest struct + ID int64 + JSONRPC string + Method string + Params json.RawMessage + type RPCNotification struct + JSONRPC string + Method string + Params json.RawMessage + type RPCRequest struct + ID int64 + JSONRPC string + Method string + Params any + type RPCResponse struct + Error *RPCError + ID int64 + JSONRPC string + Result json.RawMessage