Versions in this module Expand all Collapse all v0 v0.2.0 Feb 16, 2026 v0.1.0 Feb 15, 2026 Changes in this version + func WithLabel(key, value string) opt.Opt + func WithLimit(limit *uint) opt.Opt + func WithOffset(offset uint) opt.Opt + func WithProvider(provider string) opt.Opt + type AskOpt func(*askOptions) + func WithFile(filename string, r io.Reader) AskOpt + func WithURL(u string) AskOpt + type ChatOpt func(*chatOptions) + func WithChatFile(filename string, r io.Reader) ChatOpt + func WithChatStream(fn opt.StreamFn) ChatOpt + func WithChatURL(u string) ChatOpt + type Client struct + func New(url string, opts ...client.ClientOpt) (*Client, error) + func (c *Client) Ask(ctx context.Context, req schema.AskRequest, opts ...AskOpt) (*schema.AskResponse, error) + func (c *Client) Chat(ctx context.Context, req schema.ChatRequest, opts ...ChatOpt) (*schema.ChatResponse, error) + func (c *Client) CreateSession(ctx context.Context, meta schema.SessionMeta) (*schema.Session, error) + func (c *Client) DeleteSession(ctx context.Context, id string) error + func (c *Client) Embedding(ctx context.Context, req schema.EmbeddingRequest) (*schema.EmbeddingResponse, error) + func (c *Client) GetModel(ctx context.Context, name string, opts ...opt.Opt) (*schema.Model, error) + func (c *Client) GetSession(ctx context.Context, id string) (*schema.Session, error) + func (c *Client) GetTool(ctx context.Context, name string) (*schema.ToolMeta, error) + func (c *Client) ListModels(ctx context.Context, opts ...opt.Opt) (*schema.ListModelsResponse, error) + func (c *Client) ListSessions(ctx context.Context, opts ...opt.Opt) (*schema.ListSessionResponse, error) + func (c *Client) ListTools(ctx context.Context, opts ...opt.Opt) (*schema.ListToolResponse, error) + func (c *Client) UpdateSession(ctx context.Context, id string, meta schema.SessionMeta) (*schema.Session, error)