Versions in this module Expand all Collapse all v1 v1.0.0 Jun 4, 2026 Changes in this version + const Version + var ErrSynapCores = errors.New("synapcores: error") + func InlineParams(sql string, params map[string]any) (string, error) + type AgentRunOptions struct + MaxIterations int + Model string + Tools []string + type AgentRunResult struct + Answer string + Persona string + QueryResult *QueryResult + Task string + TookMs int + func (a *AgentRunResult) String() string + type AuthError struct + func (e *AuthError) Error() string + func (e *AuthError) Unwrap() error + type Client struct + func New(cfg Config) (*Client, error) + func (c *Client) AgentRun(ctx context.Context, persona, task string, opts *AgentRunOptions) (*AgentRunResult, error) + func (c *Client) Config() Config + func (c *Client) Embed(ctx context.Context, text string) ([]float64, error) + func (c *Client) ExecRecipe(ctx context.Context, recipeID string, params map[string]any) (*RecipeExecResult, error) + func (c *Client) ImportRecipe(ctx context.Context, url string) (*RecipeImportResult, error) + func (c *Client) KNNSearch(ctx context.Context, table string, vector []float64, k int, opts KNNOptions) (*QueryResult, error) + func (c *Client) Login(ctx context.Context, username, password string) (string, error) + func (c *Client) Query(ctx context.Context, sql string, params map[string]any) (*QueryResult, error) + func (c *Client) RAGSearch(ctx context.Context, query string, opts RAGOptions) (*QueryResult, error) + func (c *Client) SQL(ctx context.Context, sql string, params map[string]any) (*QueryResult, error) + func (c *Client) Token() string + type Config struct + APIKey string + Database string + Host string + Password string + Port int + Tenant string + Timeout time.Duration + Token string + Transport Transport + UseHTTPS bool + UserAgent string + Username string + type EnvelopeError struct + func (e *EnvelopeError) Error() string + func (e *EnvelopeError) Unwrap() error + type KNNOptions struct + Params map[string]any + VecCol string + Where string + type NetworkError struct + func (e *NetworkError) Error() string + func (e *NetworkError) Unwrap() error + type QueryError struct + func (e *QueryError) Error() string + func (e *QueryError) Unwrap() error + type QueryResult struct + Columns []string + Raw map[string]any + RowCount int + Rows []map[string]any + TookMs int + func (q *QueryResult) First() map[string]any + func (q *QueryResult) Scalar() any + type RAGOptions struct + K int + Params map[string]any + Table string + VecCol string + Where string + type RecipeExecResult struct + Raw map[string]any + Steps []any + SucceededSteps int + TookMs int + TotalSteps int + func (r *RecipeExecResult) OK() bool + type RecipeImportResult struct + Name string + Raw map[string]any + RecipeID string + Version string + type Request struct + Body map[string]any + Headers map[string]string + Method string + Timeout time.Duration + URL string + type Response struct + Body map[string]any + Raw []byte + Status int + type Transport interface + Do func(ctx context.Context, req *Request) (*Response, error)