customllms

package
v0.0.1-dev.8 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CancelCustomLlmOptimizationRunRequest

type CancelCustomLlmOptimizationRunRequest struct {
	Id *string
}

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(ctx context.Context, opts ...client.Option) (*Client, error)

func (*Client) CancelCustomLlmOptimizationRun

func (c *Client) CancelCustomLlmOptimizationRun(ctx context.Context, req CancelCustomLlmOptimizationRunRequest, opts ...call.Option) error

Cancel a Custom LLM Optimization Run.

func (*Client) CreateCustomLlm

func (c *Client) CreateCustomLlm(ctx context.Context, req CreateCustomLlmRequest, opts ...call.Option) (*CustomLlm, error)

Create a Custom LLM.

func (*Client) DeleteCustomLlm

func (c *Client) DeleteCustomLlm(ctx context.Context, req DeleteCustomLlmRequest, opts ...call.Option) error

Delete a Custom LLM.

func (*Client) GetCustomLlm

func (c *Client) GetCustomLlm(ctx context.Context, req GetCustomLlmRequest, opts ...call.Option) (*CustomLlm, error)

Get a Custom LLM.

func (*Client) StartCustomLlmOptimizationRun

func (c *Client) StartCustomLlmOptimizationRun(ctx context.Context, req StartCustomLlmOptimizationRunRequest, opts ...call.Option) (*CustomLlm, error)

Start a Custom LLM Optimization Run.

func (*Client) UpdateCustomLlm

func (c *Client) UpdateCustomLlm(ctx context.Context, req UpdateCustomLlmRequest, opts ...call.Option) (*CustomLlm, error)

Update a Custom LLM.

type CreateCustomLlmRequest

type CreateCustomLlmRequest struct {
	// Name of the custom LLM. Only alphanumeric characters and dashes allowed.
	Name *string
	// Instructions for the custom LLM to follow
	Instructions *string
	// Datasets used for training and evaluating the model, not for inference.
	// Currently, only 1 dataset is accepted.
	Datasets []Dataset
	// Guidelines for the custom LLM to adhere to
	Guidelines []string
	// This will soon be deprecated!! Optional: UC path for agent artifacts. If you
	// are using a dataset that you only have read permissions, please provide a
	// destination path where you have write permissions. Please provide this in
	// catalog.schema format.
	AgentArtifactPath *string
}

type CustomLlm

type CustomLlm struct {
	Id *string `fieldmask:"id"`
	// Name of the custom LLM
	Name *string `fieldmask:"name"`
	// Name of the endpoint that will be used to serve the custom LLM
	EndpointName *string `fieldmask:"endpoint_name"`
	// Instructions for the custom LLM to follow
	Instructions *string `fieldmask:"instructions"`
	// Datasets used for training and evaluating the model, not for inference
	Datasets []Dataset `fieldmask:"datasets"`
	// Guidelines for the custom LLM to adhere to
	Guidelines []string `fieldmask:"guidelines"`
	// If optimization is kicked off, tracks the state of the custom LLM
	OptimizationState State `fieldmask:"optimization_state"`
	// Creator of the custom LLM
	Creator *string `fieldmask:"creator"`
	// Creation timestamp of the custom LLM
	CreationTime      *types.Time `fieldmask:"creation_time"`
	AgentArtifactPath *string     `fieldmask:"agent_artifact_path"`
}

type Dataset

type Dataset struct {
	Table *Table
}

type DeleteCustomLlmRequest

type DeleteCustomLlmRequest struct {
	// The id of the custom llm
	Id *string
}

type GetCustomLlmRequest

type GetCustomLlmRequest struct {
	// The id of the custom llm
	Id *string
}

type StartCustomLlmOptimizationRunRequest

type StartCustomLlmOptimizationRunRequest struct {
	// The Id of the tile.
	Id *string
}

type State

type State string

States of Custom LLM optimization lifecycle.

const (
	State_Unspecified State = ""
	State_Created     State = "CREATED"
	State_Running     State = "RUNNING"
	State_Completed   State = "COMPLETED"
	State_Failed      State = "FAILED"
	State_Pending     State = "PENDING"
	State_Cancelled   State = "CANCELLED"
)

type Table

type Table struct {
	// Full UC table path in catalog.schema.table_name format
	TablePath *string
	// Name of the request column
	RequestCol *string
	// Optional: Name of the response column if the data is labeled
	ResponseCol *string
}

type UpdateCustomLlmRequest

type UpdateCustomLlmRequest struct {
	// The id of the custom llm
	Id *string
	// The CustomLlm containing the fields which should be updated.
	CustomLlm *CustomLlm
	// The list of the CustomLlm fields to update. These should correspond to the
	// values (or lack thereof) present in `custom_llm`.
	UpdateMask *types.FieldMask[CustomLlm]
}

Jump to

Keyboard shortcuts

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