Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateAsset ¶
ValidateAsset validates the first-version inference contract without making requests.
Types ¶
type Client ¶
type Client struct {
Provider string
Model string
APIKey string
MaxOutputTokens int
HTTPClient *http.Client
OnCacheUsage func(readTokens, writtenTokens int64)
}
Client calls a supported inference provider.
func (*Client) CompleteStructured ¶
func (c *Client) CompleteStructured(ctx context.Context, state, instructions string, columns []outputColumn) (map[string]any, error)
CompleteStructured asks the provider for one schema-constrained object and validates the object before returning it. Configuration and credentials must already have been validated by readConfig and resolveGroups.
type Operator ¶
type Operator struct {
// contains filtered or unexported fields
}
Operator enriches query results and publishes them through Bruin's ingestr writer.
func NewOperator ¶
func NewOperator(conn config.ConnectionAndDetailsGetter) *Operator
Click to show internal directories.
Click to hide internal directories.