Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client manages ClickHouse queries for TensorZero data
func NewClient ¶
func NewClient() *Client
NewClient creates a new ClickHouse client Uses CLICKHOUSE_URL which should contain all connection details: Format: https://user:password@host:port/database Or: https://host:port?user=xxx&password=xxx&database=xxx Legacy env vars (CLICKHOUSE_DATABASE, CLICKHOUSE_USER, CLICKHOUSE_PASSWORD) are still supported for backwards compatibility
func (*Client) FetchInferenceDetails ¶
func (c *Client) FetchInferenceDetails(inferenceID string) (*types.InferenceDetailsResponse, error)
FetchInferenceDetails fetches detailed information about a specific inference
func (*Client) FetchInferencesByEpisode ¶
func (c *Client) FetchInferencesByEpisode(episodeID string) ([]types.ClickHouseInference, error)
FetchInferencesByEpisode fetches all inferences for a given episode_id
Click to show internal directories.
Click to hide internal directories.