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 + type ChannelCallback func(context.Context, client.JSONStream) error + type Client struct + func New(url string, opts ...client.ClientOpt) (*Client, error) + func (c *Client) Ask(ctx context.Context, req schema.AskRequest, streamFn opt.StreamFn) (*schema.AskResponse, error) + func (c *Client) CallAgent(ctx context.Context, name string, req schema.CallAgentRequest) (llm.Resource, error) + func (c *Client) CallTool(ctx context.Context, name string, req schema.CallToolRequest) (llm.Resource, error) + func (c *Client) Channel(ctx context.Context, session uuid.UUID, callback ChannelCallback) error + func (c *Client) Chat(ctx context.Context, req schema.ChatRequest, streamFn opt.StreamFn) (*schema.ChatResponse, error) + func (c *Client) CreateConnector(ctx context.Context, req schema.ConnectorInsert) (*schema.Connector, error) + func (c *Client) CreateProvider(ctx context.Context, req schema.ProviderInsert) (*schema.Provider, error) + func (c *Client) CreateSession(ctx context.Context, req schema.SessionInsert) (*schema.Session, error) + func (c *Client) DeleteConnector(ctx context.Context, rawURL string) (*schema.Connector, error) + func (c *Client) DeleteModel(ctx context.Context, req schema.DeleteModelRequest) (*schema.Model, error) + func (c *Client) DeleteProvider(ctx context.Context, name string) (*schema.Provider, error) + func (c *Client) DeleteSession(ctx context.Context, id uuid.UUID) (*schema.Session, error) + func (c *Client) DownloadModel(ctx context.Context, req schema.DownloadModelRequest, ...) (*schema.Model, error) + func (c *Client) Embedding(ctx context.Context, req schema.EmbeddingRequest) (*schema.EmbeddingResponse, error) + func (c *Client) GetAgent(ctx context.Context, name string) (*schema.AgentMeta, error) + func (c *Client) GetConnector(ctx context.Context, rawURL string) (*schema.Connector, error) + func (c *Client) GetModel(ctx context.Context, req schema.GetModelRequest) (*schema.Model, error) + func (c *Client) GetProvider(ctx context.Context, name string) (*schema.Provider, error) + func (c *Client) GetSession(ctx context.Context, id uuid.UUID) (*schema.Session, error) + func (c *Client) GetTool(ctx context.Context, name string) (*schema.ToolMeta, error) + func (c *Client) ListAgents(ctx context.Context, req schema.AgentListRequest) (*schema.AgentList, error) + func (c *Client) ListConnectors(ctx context.Context, req schema.ConnectorListRequest) (*schema.ConnectorList, error) + func (c *Client) ListMessages(ctx context.Context, session uuid.UUID, req schema.MessageListRequest) (*schema.MessageList, error) + func (c *Client) ListModels(ctx context.Context, req schema.ModelListRequest) (*schema.ModelList, error) + func (c *Client) ListProviders(ctx context.Context, req schema.ProviderListRequest) (*schema.ProviderList, error) + func (c *Client) ListSessions(ctx context.Context, req schema.SessionListRequest) (*schema.SessionList, error) + func (c *Client) ListTools(ctx context.Context, req schema.ToolListRequest) (*schema.ToolList, error) + func (c *Client) UpdateConnector(ctx context.Context, rawURL string, req schema.ConnectorMeta) (*schema.Connector, error) + func (c *Client) UpdateProvider(ctx context.Context, name string, req schema.ProviderMeta) (*schema.Provider, error) + func (c *Client) UpdateSession(ctx context.Context, id uuid.UUID, meta schema.SessionMeta) (*schema.Session, error)