Versions in this module Expand all Collapse all v0 v0.1.0 Sep 10, 2026 Changes in this version + const DefaultBaseURL + const Version + type BatchItem struct + ID string + Path string + Query map[string]string + type Client struct + BaseURL string + HTTPClient *http.Client + Token string + func New() *Client + func (c *Client) Ask(ctx context.Context, query string, limit int) (map[string]any, error) + func (c *Client) Batch(ctx context.Context, items []BatchItem) (map[string]any, error) + func (c *Client) CallSandboxTool(ctx context.Context, name string, arguments map[string]any) (json.RawMessage, error) + func (c *Client) CallTool(ctx context.Context, name string, arguments map[string]any) (json.RawMessage, error) + func (c *Client) Directory(ctx context.Context, limit, page int) (map[string]any, error) + func (c *Client) Identity(ctx context.Context, identityType string) (map[string]any, error) + func (c *Client) Index(ctx context.Context) (map[string]any, error) + func (c *Client) ListDocs(ctx context.Context) (json.RawMessage, error) + func (c *Client) Member(ctx context.Context, username string) (map[string]any, error) + func (c *Client) ReadDoc(ctx context.Context, path string) (json.RawMessage, error) + func (c *Client) ReadMarkdown(ctx context.Context, path string) (string, error) + func (c *Client) SandboxTools(ctx context.Context) (json.RawMessage, error) + func (c *Client) SearchDocs(ctx context.Context, query string, limit int) (json.RawMessage, error) + func (c *Client) Tools(ctx context.Context) (json.RawMessage, error) + type Error struct + Code string + Message string + Status int + URL string + func (e *Error) Error() string