Versions in this module Expand all Collapse all v1 v1.14.0 Nov 24, 2026 Changes in this version + const EffectMetaKey + const MaxLine + const ProtocolVersion + const SocketEnv + var ErrNoRuntimeDir = errors.New("XDG_RUNTIME_DIR is not set to an absolute path") + func SocketPath(flag string) (string, error) + type Client struct + Server ServerInfo + func Dial(ctx context.Context, path string) (*Client, error) + func (c *Client) Call(ctx context.Context, name string, arguments map[string]any) (*Result, error) + func (c *Client) Close() error + func (c *Client) Tools(ctx context.Context) ([]Tool, error) + type ConnectError struct + Cause error + Path string + func (e *ConnectError) Error() string + func (e *ConnectError) Unwrap() error + type Content struct + Text string + Type string + type DoorClosedError struct + Cause error + Path string + func (e *DoorClosedError) Error() string + func (e *DoorClosedError) Unwrap() error + type Pending struct + Confirmation json.RawMessage + Snapshot json.RawMessage + type ProtocolError struct + Closed bool + Method string + Reason string + func (e *ProtocolError) Error() string + type Result struct + Content []Content + IsError bool + StructuredContent json.RawMessage + func (r *Result) Answer() json.RawMessage + func (r *Result) Pending() (*Pending, bool) + func (r *Result) Text() string + type ServerError struct + Code int + Message string + Method string + func (e *ServerError) Error() string + type ServerInfo struct + Name string + Title string + Version string + type TimeoutError struct + Cause error + Method string + func (e *TimeoutError) Error() string + func (e *TimeoutError) Unwrap() error + type Tool struct + Annotations json.RawMessage + Description string + InputSchema json.RawMessage + Meta map[string]any + Name string + func (t Tool) Effect() string