Documentation
¶
Index ¶
- type Client
- func (c *Client) CallChatCompletion(messages []types.ChatMessage, model types.TensorZeroModel, episodeID string) (*types.TensorZeroResponse, error)
- func (c *Client) RetrieveEpisode(episodeID string) (*map[string]interface{}, error)
- func (c *Client) RetrieveInference(inferenceID string) (*map[string]interface{}, error)
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 ¶
RetrieveEpisode retrieves episode data from ClickHouse
Click to show internal directories.
Click to hide internal directories.