Versions in this module Expand all Collapse all v0 v0.4.5 Jun 23, 2026 v0.4.4 Jun 11, 2026 Changes in this version + func WithLabel(key, value string) opt.Opt + func WithLimit(limit *uint) opt.Opt + func WithName(name string) opt.Opt + func WithOffset(offset uint) opt.Opt + func WithProvider(provider string) opt.Opt + func WithVersion(version uint) 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) CallTool(ctx context.Context, name string, input json.RawMessage) (*schema.CallToolResponse, error) + func (c *Client) Chat(ctx context.Context, req schema.ChatRequest, opts ...ChatOpt) (*schema.ChatResponse, error) + func (c *Client) CreateAgent(ctx context.Context, meta schema.AgentMeta) (*schema.Agent, error) + func (c *Client) CreateAgentSession(ctx context.Context, agentID string, request schema.CreateAgentSessionRequest) (*schema.CreateAgentSessionResponse, error) + func (c *Client) CreateConnector(ctx context.Context, req schema.ConnectorInsert) (*schema.Connector, error) + func (c *Client) CreateSession(ctx context.Context, meta schema.SessionMeta) (*schema.Session, error) + func (c *Client) DeleteAgent(ctx context.Context, id string) error + func (c *Client) DeleteConnector(ctx context.Context, url_ string) error + func (c *Client) DeleteCredential(ctx context.Context, url_ string) error + func (c *Client) DeleteModel(ctx context.Context, name string, opts ...opt.Opt) error + func (c *Client) DeleteSession(ctx context.Context, id string) error + func (c *Client) DownloadModel(ctx context.Context, name string, opts ...opt.Opt) (*schema.Model, error) + func (c *Client) Embedding(ctx context.Context, req schema.EmbeddingRequest) (*schema.EmbeddingResponse, error) + func (c *Client) GetAgent(ctx context.Context, id string) (*schema.Agent, error) + func (c *Client) GetConnector(ctx context.Context, url_ string) (*schema.Connector, error) + func (c *Client) GetCredential(ctx context.Context, url_ string) (*schema.OAuthCredentials, 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) ListAgents(ctx context.Context, opts ...opt.Opt) (*schema.ListAgentResponse, error) + func (c *Client) ListConnectors(ctx context.Context, req schema.ConnectorListRequest) (*schema.ConnectorList, error) + func (c *Client) ListModels(ctx context.Context, opts ...opt.Opt) (*schema.ModelList, error) + func (c *Client) ListSessions(ctx context.Context, opts ...opt.Opt) (*schema.SessionList, error) + func (c *Client) ListTools(ctx context.Context, opts ...opt.Opt) (*schema.ToolList, error) + func (c *Client) SetCredential(ctx context.Context, url_ string, cred schema.OAuthCredentials) error + func (c *Client) UpdateAgent(ctx context.Context, meta schema.AgentMeta) (*schema.Agent, error) + func (c *Client) UpdateConnector(ctx context.Context, url_ string, meta schema.ConnectorMeta) (*schema.Connector, error) + func (c *Client) UpdateSession(ctx context.Context, id string, meta schema.SessionMeta) (*schema.Session, error)