tensorzero

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: MIT Imports: 8 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 TensorZero API interactions

func NewClient

func NewClient() *Client

NewClient creates a new TensorZero client FAILS if TENSORZERO_API_URL or TENSORZERO_API_KEY is not set

func (*Client) CallChatCompletion

func (c *Client) CallChatCompletion(messages []types.ChatMessage, model types.TensorZeroModel, episodeID string) (*types.TensorZeroResponse, error)

CallChatCompletion calls TensorZero Core API for investigation

func (*Client) RetrieveEpisode

func (c *Client) RetrieveEpisode(episodeID string) (*map[string]interface{}, error)

RetrieveEpisode retrieves episode data from ClickHouse

func (*Client) RetrieveInference

func (c *Client) RetrieveInference(inferenceID string) (*map[string]interface{}, error)

RetrieveInference retrieves inference details from TensorZero ClickHouse

Jump to

Keyboard shortcuts

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