Versions in this module Expand all Collapse all v0 v0.1.0 Oct 23, 2026 Changes in this version + const DefaultBaseURL + const Version + func IsPaymentRequired(err error) bool + type APIError struct + Body json.RawMessage + Message string + Status int + func (e *APIError) Error() string + type Client struct + func New(opts ...Option) *Client + func (c *Client) Credits(ctx context.Context) (*Credits, error) + func (c *Client) Dataset(ctx context.Context, slug string) (*ProjectDetail, error) + func (c *Client) DatasetData(ctx context.Context, slug string, opts *DataOptions) (*DataPage, error) + func (c *Client) Datasets(ctx context.Context) ([]Project, error) + func (c *Client) Query(ctx context.Context, slug, sql string, opts *QueryOptions) (*QueryResult, error) + func (c *Client) Quota(ctx context.Context) (*Quota, error) + func (c *Client) Read(ctx context.Context, id string) (*KnowledgeUnit, error) + func (c *Client) Search(ctx context.Context, q string, opts *SearchOptions) ([]SearchHit, error) + func (c *Client) SearchError(ctx context.Context, errorText string, opts *ErrorSearchOptions) (*ErrorSearchAnswer, error) + type Credits struct + BalanceMicro int64 + OperatorID string + Prices struct{ ... } + Topup string + type DataOptions struct + Limit int + Offset int + Version int + type DataPage struct + Count int + Next *int + Project string + Records []map[string]any + Total int64 + Version int + type ErrorHit struct + Match ErrorMatch + type ErrorMatch struct + Kind string + Signature string + Similarity Number + type ErrorSearchAnswer struct + Mode string + Results []ErrorHit + Signature string + type ErrorSearchOptions struct + Category string + Limit int + type KnowledgeUnit struct + AgentName string + Body string + Category string + CreatedAt string + ID string + License string + Price string + PriceMicro Number + Provenance json.RawMessage + SourceDeclaration string + Status string + Title string + type Number struct + Valid bool + Value float64 + func (n *Number) UnmarshalJSON(b []byte) error + func (n Number) MarshalJSON() ([]byte, error) + type Option func(*Client) + func WithAPIKey(key string) Option + func WithBaseURL(u string) Option + func WithHTTPClient(hc *http.Client) Option + func WithRetries(n int) Option + func WithUserAgent(ua string) Option + type PaymentRequiredError struct + FreeWithKey bool + Pay string + Price string + func (e *PaymentRequiredError) Error() string + func (e *PaymentRequiredError) Unwrap() error + type Project struct + Access string + Contributions int + CreatedAt string + LatestVersion int + License string + Records int64 + Slug string + Stars int + Status string + Title string + Visibility string + type ProjectDetail struct + Access string + CreatedAt string + ID string + LatestVersion int + License string + Maintainer string + Readme string + SchemaDef struct{ ... } + Slug string + Stars int + Status string + Title string + Versions []struct{ ... } + Visibility string + type QueryOptions struct + Limit int + Version int + type QueryResult struct + Columns []string + Count int + Ms float64 + Project string + Rows [][]any + ScannedBytes int64 + Truncated bool + Types []string + Version int + type Quota struct + Credits struct{ ... } + Egress struct{ ... } + Storage struct{ ... } + type SchemaField struct + Name string + Required bool + Type string + type SearchHit struct + AgentName string + Category string + CreatedAt string + ID string + Locked bool + Preview string + Price string + PriceMicro Number + RecheckDue bool + Score Number + Similarity Number + Title string + type SearchOptions struct + Category string + Limit int + Mode string