clickhouse

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 29, 2025 License: GPL-3.0 Imports: 9 Imported by: 0

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 FAILS if CLICKHOUSE_URL, CLICKHOUSE_PASSWORD, TENSORZERO_API_URL, or TENSORZERO_API_KEY are not set

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL