Documentation
¶
Index ¶
- type CancelCustomLlmOptimizationRunRequest
- type Client
- func (c *Client) CancelCustomLlmOptimizationRun(ctx context.Context, req CancelCustomLlmOptimizationRunRequest, ...) error
- func (c *Client) CreateCustomLlm(ctx context.Context, req CreateCustomLlmRequest, opts ...call.Option) (*CustomLlm, error)
- func (c *Client) DeleteCustomLlm(ctx context.Context, req DeleteCustomLlmRequest, opts ...call.Option) error
- func (c *Client) GetCustomLlm(ctx context.Context, req GetCustomLlmRequest, opts ...call.Option) (*CustomLlm, error)
- func (c *Client) StartCustomLlmOptimizationRun(ctx context.Context, req StartCustomLlmOptimizationRunRequest, ...) (*CustomLlm, error)
- func (c *Client) UpdateCustomLlm(ctx context.Context, req UpdateCustomLlmRequest, opts ...call.Option) (*CustomLlm, error)
- type CreateCustomLlmRequest
- type CustomLlm
- type Dataset
- type DeleteCustomLlmRequest
- type GetCustomLlmRequest
- type StartCustomLlmOptimizationRunRequest
- type State
- type Table
- type UpdateCustomLlmRequest
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 (*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 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 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]
}
Click to show internal directories.
Click to hide internal directories.