Documentation
¶
Index ¶
- Constants
- func NewAITaskBuilderCommand(client client.API, w io.Writer) *cobra.Command
- func NewBatchCreateCommand(client client.API, w io.Writer) *cobra.Command
- func NewBatchInstructionsCommand(client client.API, w io.Writer) *cobra.Command
- func NewBatchSetupCommand(client client.API, w io.Writer) *cobra.Command
- func NewBatchTasksCommand(client client.API, w io.Writer) *cobra.Command
- func NewBatchesCommand(client client.API, w io.Writer) *cobra.Command
- func NewCreateDatasetCommand(client client.API, w io.Writer) *cobra.Command
- func NewDatasetUploadCommand(client client.API, w io.Writer) *cobra.Command
- func NewDatasetsCommand(client client.API, w io.Writer) *cobra.Command
- func NewGetBatchCommand(client client.API, w io.Writer) *cobra.Command
- func NewGetBatchStatusCommand(client client.API, w io.Writer) *cobra.Command
- func NewGetBatchesListCommand(client client.API, w io.Writer) *cobra.Command
- func NewGetDatasetStatusCommand(client client.API, w io.Writer) *cobra.Command
- func NewGetResponsesCommand(client client.API, w io.Writer) *cobra.Command
- type BatchCreateOptions
- type BatchGetBatchesOptions
- type BatchGetOptions
- type BatchGetResponsesOptions
- type BatchGetStatusOptions
- type BatchInstructionsOptions
- type BatchSetupOptions
- type BatchTasksOptions
- type CreateDatasetOptions
- type DatasetGetStatusOptions
- type DatasetUploadOptions
Constants ¶
View Source
const ( // Error messages ErrAtLeastOneInstructionRequired = "at least one instruction must be provided" ErrBatchIDRequired = "batch ID is required" ErrBatchNotFound = "batch not found" ErrBothInstructionInputsProvided = "cannot specify both instructions file (-f) and JSON string (-j)" ErrDatasetIDRequired = "dataset ID is required" ErrDatasetNotFound = "dataset not found" ErrInstructionInputRequired = "either instructions file (-f) or JSON string (-j) must be provided" ErrNameRequired = "name is required" ErrTaskIntroductionRequired = "task introduction is required" ErrTaskNameRequired = "task name is required" ErrTaskStepsRequired = "task steps is required" ErrTasksPerGroupMinimum = "tasks per group must be at least 1" ErrWorkspaceIDRequired = "workspace ID is required" )
Variables ¶
This section is empty.
Functions ¶
func NewAITaskBuilderCommand ¶
NewAITaskBuilderCommand creates a new `aitaskbuilder` command
func NewBatchCreateCommand ¶ added in v0.0.57
func NewBatchInstructionsCommand ¶ added in v0.0.57
NewBatchInstructionsCommand creates a new command for creating AI Task Builder instructions.
func NewBatchSetupCommand ¶ added in v0.0.57
func NewBatchTasksCommand ¶ added in v0.0.57
func NewBatchesCommand ¶ added in v0.0.57
NewBatchesCommand creates a new `batch` command
func NewCreateDatasetCommand ¶ added in v0.0.57
NewCreateDatasetCommand creates a new command for creating datasets
func NewDatasetUploadCommand ¶ added in v0.0.57
NewDatasetUploadCommand creates a new command for uploading to an AI Task Builder dataset.
func NewDatasetsCommand ¶ added in v0.0.57
NewDatasetsCommand creates a new `dataset` command
func NewGetBatchesListCommand ¶ added in v0.0.57
Types ¶
type BatchCreateOptions ¶ added in v0.0.57
type BatchGetBatchesOptions ¶
type BatchGetOptions ¶
type BatchGetStatusOptions ¶
type BatchInstructionsOptions ¶ added in v0.0.57
type BatchInstructionsOptions struct {
Args []string
BatchID string
InstructionsFile string
InstructionsJSON string
}
BatchInstructionsOptions are the options for creating AI Task Builder instructions.
type BatchSetupOptions ¶ added in v0.0.57
type BatchTasksOptions ¶ added in v0.0.57
type CreateDatasetOptions ¶ added in v0.0.57
CreateDatasetOptions holds the options for creating a dataset
type DatasetGetStatusOptions ¶
type DatasetUploadOptions ¶ added in v0.0.57
DatasetUploadOptions are the options for uploading to an AI Task Builder dataset.
Click to show internal directories.
Click to hide internal directories.