openai

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: MIT Imports: 25 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFilePath added in v0.8.0

func GetFilePath(filePath string) (*string, error)

func GetOpenAIAPIError added in v0.19.0

func GetOpenAIAPIError(err error) *openai.APIError

func New

func New(version string) func() provider.Provider

func NewAssistantResource added in v0.26.0

func NewAssistantResource() resource.Resource

func NewFileDataSource added in v0.2.0

func NewFileDataSource() datasource.DataSource

func NewFileResource added in v0.2.0

func NewFileResource() resource.Resource

func NewFilesDataSource added in v0.2.0

func NewFilesDataSource() datasource.DataSource

func NewFineTuningJobDataSource added in v0.25.0

func NewFineTuningJobDataSource() datasource.DataSource

func NewFineTuningJobResource added in v0.25.0

func NewFineTuningJobResource() resource.Resource

func NewFineTuningJobsDataSource added in v0.25.0

func NewFineTuningJobsDataSource() datasource.DataSource

func NewModelDataSource

func NewModelDataSource() datasource.DataSource

func NewModelsDataSource

func NewModelsDataSource() datasource.DataSource

func NewProjectDataSource added in v1.7.0

func NewProjectDataSource() datasource.DataSource

func NewProjectResource added in v1.7.0

func NewProjectResource() resource.Resource

func NewProjectServiceAccountDataSource added in v1.7.0

func NewProjectServiceAccountDataSource() datasource.DataSource

func NewProjectServiceAccountResource added in v1.7.0

func NewProjectServiceAccountResource() resource.Resource

func NewProjectServiceAccountsDataSource added in v1.7.0

func NewProjectServiceAccountsDataSource() datasource.DataSource

func NewProjectsDataSource added in v1.7.0

func NewProjectsDataSource() datasource.DataSource

func NewVectorStoreResource added in v1.4.0

func NewVectorStoreResource() resource.Resource

Types

type AssistantResource added in v0.26.0

type AssistantResource struct {
	*OpenAIResource
}

AssistantResource defines the resource implementation.

func (*AssistantResource) Create added in v0.26.0

func (*AssistantResource) Delete added in v0.26.0

func (*AssistantResource) ImportState added in v0.26.0

func (*AssistantResource) Metadata added in v0.26.0

func (*AssistantResource) Read added in v0.26.0

func (*AssistantResource) Schema added in v0.26.0

func (*AssistantResource) Update added in v0.26.0

type FileDataSource added in v0.2.0

type FileDataSource struct {
	*OpenAIDatasource
}

DataSource defines the data source implementation.

func (*FileDataSource) Metadata added in v0.2.0

func (*FileDataSource) Read added in v0.2.0

func (*FileDataSource) Schema added in v0.2.0

type FileResource added in v0.2.0

type FileResource struct {
	*OpenAIResource
}

FileResource defines the resource implementation.

func (*FileResource) Create added in v0.2.0

func (*FileResource) Delete added in v0.2.0

func (*FileResource) ImportState added in v0.2.0

func (*FileResource) Metadata added in v0.2.0

func (*FileResource) Read added in v0.2.0

func (*FileResource) Schema added in v0.2.0

func (*FileResource) Update added in v0.2.0

type FilesDataSource added in v0.2.0

type FilesDataSource struct {
	*OpenAIDatasource
}

FilesDataSource defines the data source implementation.

func (*FilesDataSource) Metadata added in v0.2.0

func (*FilesDataSource) Read added in v0.2.0

func (*FilesDataSource) Schema added in v0.2.0

type FilesDataSourceModel added in v0.2.0

type FilesDataSourceModel struct {
	Id    types.String      `tfsdk:"id"`
	Files []OpenAIFileModel `tfsdk:"files"`
}

FilesDataSourceModel describes the data source data model.

type FineTuningJobDataSource added in v0.25.0

type FineTuningJobDataSource struct {
	*OpenAIDatasource
}

FineTuningJobDataSource defines the data source implementation.

func (*FineTuningJobDataSource) Metadata added in v0.25.0

func (*FineTuningJobDataSource) Read added in v0.25.0

func (*FineTuningJobDataSource) Schema added in v0.25.0

type FineTuningJobResource added in v0.25.0

type FineTuningJobResource struct {
	*OpenAIResource
}

FineTuningJobResource defines the resource implementation.

func (*FineTuningJobResource) Create added in v0.25.0

func (*FineTuningJobResource) Delete added in v0.25.0

func (*FineTuningJobResource) ImportState added in v0.25.0

func (*FineTuningJobResource) Metadata added in v0.25.0

func (*FineTuningJobResource) Read added in v0.25.0

func (*FineTuningJobResource) Schema added in v0.25.0

func (*FineTuningJobResource) Update added in v0.25.0

type FineTuningJobsDataSource added in v0.25.0

type FineTuningJobsDataSource struct {
	*OpenAIDatasource
}

FineTuningJobsDataSource defines the data source implementation.

func (*FineTuningJobsDataSource) Metadata added in v0.25.0

func (*FineTuningJobsDataSource) Read added in v0.25.0

func (*FineTuningJobsDataSource) Schema added in v0.25.0

type FineTuningJobsModel added in v0.25.0

type FineTuningJobsModel struct {
	Id   types.String               `tfsdk:"id"`
	Jobs []OpenAIFineTuningJobModel `tfsdk:"jobs"`
}

FineTuningJobsModel describes the data source data model.

type ModelDataSource

type ModelDataSource struct {
	*OpenAIDatasource
}

ModelDataSource defines the data source implementation.

func (*ModelDataSource) Metadata

func (*ModelDataSource) Read

func (*ModelDataSource) Schema

type ModelDataSourceModel

type ModelDataSourceModel struct {
	Id          types.String `tfsdk:"id"`
	Created     types.Int64  `tfsdk:"created"`
	Object      types.String `tfsdk:"object"`
	OwnedBy     types.String `tfsdk:"owned_by"`
	Parent      types.String `tfsdk:"parent"`
	Permissions types.List   `tfsdk:"permissions"`
	Root        types.String `tfsdk:"root"`
}

ModelDataSourceModel describes the data source data model.

func NewModelDataSourceModel

func NewModelDataSourceModel(model *openai.Model) ModelDataSourceModel

type ModelPermissionModel

type ModelPermissionModel struct {
	Id                 types.String `tfsdk:"id"`
	Created            types.Int64  `tfsdk:"created"`
	Object             types.String `tfsdk:"object"`
	AllowCreateEngine  types.Bool   `tfsdk:"allow_create_engine"`
	AllowSampling      types.Bool   `tfsdk:"allow_sampling"`
	AllowLogprobs      types.Bool   `tfsdk:"allow_logprobs"`
	AllowSearchIndices types.Bool   `tfsdk:"allow_search_indices"`
	AllowView          types.Bool   `tfsdk:"allow_view"`
	AllowFineTuning    types.Bool   `tfsdk:"allow_fine_tuning"`
	Organization       types.String `tfsdk:"organization"`
	// Group              types.String `tfsdk:"group"`
	IsBlocking types.Bool `tfsdk:"is_blocking"`
}

func (ModelPermissionModel) AttrTypes

func (p ModelPermissionModel) AttrTypes() map[string]attr.Type

type ModelsDataSource

type ModelsDataSource struct {
	*OpenAIDatasource
}

ModelsDataSource defines the data source implementation.

func (*ModelsDataSource) Metadata

func (*ModelsDataSource) Read

func (*ModelsDataSource) Schema

type ModelsDataSourceModel

type ModelsDataSourceModel struct {
	Id     types.String           `tfsdk:"id"`
	Models []ModelDataSourceModel `tfsdk:"models"`
}

ModelsDataSourceModel describes the data source data model.

type OpenAIAssistantResourceModel added in v0.26.0

type OpenAIAssistantResourceModel struct {
	Id             types.String                        `tfsdk:"id"`
	Object         types.String                        `tfsdk:"object"`
	CreatedAt      types.Int64                         `tfsdk:"created_at"`
	Name           types.String                        `tfsdk:"name"`
	Description    types.String                        `tfsdk:"description"`
	Model          types.String                        `tfsdk:"model"`
	Instructions   types.String                        `tfsdk:"instructions"`
	Tools          types.List                          `tfsdk:"tools"`
	ToolResources  *OpenAIAssistantToolResourcesModel  `tfsdk:"tool_resources"`
	Metadata       types.Map                           `tfsdk:"metadata"`
	Temperature    types.Float64                       `tfsdk:"temperature"`
	TopP           types.Float64                       `tfsdk:"top_p"`
	ResponseFormat *OpenAIAssistantResponseFormatModel `tfsdk:"response_format"`
}

func NewOpenAIAssistantResourceModel added in v0.26.0

func NewOpenAIAssistantResourceModel(ctx context.Context, assistant *openai.Assistant) (OpenAIAssistantResourceModel, diag.Diagnostics)

func (OpenAIAssistantResourceModel) AttrTypes added in v0.26.0

func (e OpenAIAssistantResourceModel) AttrTypes() map[string]attr.Type

type OpenAIAssistantResponseFormatModel added in v1.5.0

type OpenAIAssistantResponseFormatModel struct {
	Type       types.String                            `tfsdk:"type"`
	JsonSchema *OpenAIAssistantResponseJsonSchemaModel `tfsdk:"json_schema"`
}

func (OpenAIAssistantResponseFormatModel) AttrTypes added in v1.5.0

type OpenAIAssistantResponseJsonSchemaModel added in v1.5.0

type OpenAIAssistantResponseJsonSchemaModel struct {
	Description types.String `tfsdk:"description"`
	Name        types.String `tfsdk:"name"`
	Schema      types.String `tfsdk:"schema"`
	Strict      types.Bool   `tfsdk:"strict"`
}

func (OpenAIAssistantResponseJsonSchemaModel) AttrTypes added in v1.5.0

type OpenAIAssistantToolFunctionModel added in v0.26.0

type OpenAIAssistantToolFunctionModel struct {
	Description types.String `tfsdk:"description"`
	Name        types.String `tfsdk:"name"`
	Parameters  types.String `tfsdk:"parameters"`
}

func (OpenAIAssistantToolFunctionModel) AttrTypes added in v0.26.0

type OpenAIAssistantToolModel added in v0.26.0

type OpenAIAssistantToolModel struct {
	Type     types.String                      `tfsdk:"type"`
	Function *OpenAIAssistantToolFunctionModel `tfsdk:"function"`
}

func (OpenAIAssistantToolModel) AttrTypes added in v0.26.0

func (e OpenAIAssistantToolModel) AttrTypes() map[string]attr.Type

type OpenAIAssistantToolResourceCodeInterpreterModel added in v1.2.0

type OpenAIAssistantToolResourceCodeInterpreterModel struct {
	FileIDs types.List `tfsdk:"file_ids"`
}

func (OpenAIAssistantToolResourceCodeInterpreterModel) AttrTypes added in v1.2.0

type OpenAIAssistantToolResourceFileSearchModel added in v1.2.0

type OpenAIAssistantToolResourceFileSearchModel struct {
	VectorStoreIDs types.List `tfsdk:"vector_store_ids"`
}

func (OpenAIAssistantToolResourceFileSearchModel) AttrTypes added in v1.2.0

type OpenAIAssistantToolResourceFileSearchVectorStoresModel added in v1.2.2

type OpenAIAssistantToolResourceFileSearchVectorStoresModel struct {
	FileIDs  types.List `tfsdk:"file_ids"`
	MetaData types.Map  `tfsdk:"metadata"`
}

func (OpenAIAssistantToolResourceFileSearchVectorStoresModel) AttrTypes added in v1.2.2

type OpenAIAssistantToolResourcesModel added in v1.2.0

type OpenAIAssistantToolResourcesModel struct {
	CodeInterpreter types.Object `tfsdk:"code_interpreter"`
	FileSearch      types.Object `tfsdk:"file_search"`
}

func (OpenAIAssistantToolResourcesModel) AttrTypes added in v1.2.0

type OpenAIDatasource added in v0.2.0

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

func (*OpenAIDatasource) Configure added in v0.2.0

type OpenAIExpiresAfterModel added in v1.4.0

type OpenAIExpiresAfterModel struct {
	Anchor types.String `tfsdk:"anchor"`
	Days   types.Int64  `tfsdk:"days"`
}

func (OpenAIExpiresAfterModel) AttrTypes added in v1.4.0

func (e OpenAIExpiresAfterModel) AttrTypes() map[string]attr.Type

type OpenAIFileCountsModel added in v1.4.0

type OpenAIFileCountsModel struct {
	InProgress types.Int64 `tfsdk:"in_progress"`
	Completed  types.Int64 `tfsdk:"completed"`
	Failed     types.Int64 `tfsdk:"failed"`
	Cancelled  types.Int64 `tfsdk:"cancelled"`
	Total      types.Int64 `tfsdk:"total"`
}

func (OpenAIFileCountsModel) AttrTypes added in v1.4.0

func (e OpenAIFileCountsModel) AttrTypes() map[string]attr.Type

type OpenAIFileModel added in v0.2.0

type OpenAIFileModel struct {
	Id       types.String `tfsdk:"id"`
	Bytes    types.Int64  `tfsdk:"bytes"`
	Created  types.Int64  `tfsdk:"created"`
	Filename types.String `tfsdk:"filename"`
	Filepath types.String `tfsdk:"filepath"`
	Object   types.String `tfsdk:"object"`
	Purpose  types.String `tfsdk:"purpose"`
}

OpenAIFileModel describes the OpenAI file model.

func NewOpenAIFileModel added in v0.2.0

func NewOpenAIFileModel(f *openai.File) OpenAIFileModel

func NewOpenAIFileModelWithPath added in v0.18.0

func NewOpenAIFileModelWithPath(f *openai.File, path string) OpenAIFileModel

func (OpenAIFileModel) AttrTypes added in v0.14.0

func (e OpenAIFileModel) AttrTypes() map[string]attr.Type

type OpenAIFineTuneEventModel added in v0.5.0

type OpenAIFineTuneEventModel struct {
	Object  types.String `tfsdk:"object"`
	Created types.Int64  `tfsdk:"created"`
	Level   types.String `tfsdk:"level"`
	Message types.String `tfsdk:"message"`
}

func (OpenAIFineTuneEventModel) AttrTypes added in v0.5.0

func (e OpenAIFineTuneEventModel) AttrTypes() map[string]attr.Type

type OpenAIFineTuningJobHyperparamsModel added in v0.25.0

type OpenAIFineTuningJobHyperparamsModel struct {
	NEpochs types.Int64 `tfsdk:"n_epochs"`
}

func (OpenAIFineTuningJobHyperparamsModel) AttrTypes added in v0.25.0

type OpenAIFineTuningJobModel added in v0.25.0

type OpenAIFineTuningJobModel struct {
	Id             types.String `tfsdk:"id"`
	Object         types.String `tfsdk:"object"`
	CreatedAt      types.Int64  `tfsdk:"created_at"`
	FinishedAt     types.Int64  `tfsdk:"finished_at"`
	Model          types.String `tfsdk:"model"`
	FineTunedModel types.String `tfsdk:"fine_tuned_model"`
	OrganizationId types.String `tfsdk:"organization_id"`
	Status         types.String `tfsdk:"status"`
	Hyperparams    types.Object `tfsdk:"hyperparams"`
	TrainingFile   types.String `tfsdk:"training_file"`
	ValidationFile types.String `tfsdk:"validation_file"`
	ResultFiles    types.List   `tfsdk:"result_files"`
	TrainedTokens  types.Int64  `tfsdk:"trained_tokens"`
}

func NewOpenAIFineTuningJobModel added in v0.25.0

func NewOpenAIFineTuningJobModel(ft *openai.FineTuningJob) OpenAIFineTuningJobModel

func (OpenAIFineTuningJobModel) AttrTypes added in v0.25.0

func (e OpenAIFineTuningJobModel) AttrTypes() map[string]attr.Type

type OpenAIFineTuningJobResourceModel added in v0.25.0

type OpenAIFineTuningJobResourceModel struct {
	Id             types.String `tfsdk:"id"`
	Object         types.String `tfsdk:"object"`
	CreatedAt      types.Int64  `tfsdk:"created_at"`
	FinishedAt     types.Int64  `tfsdk:"finished_at"`
	Model          types.String `tfsdk:"model"`
	FineTunedModel types.String `tfsdk:"fine_tuned_model"`
	OrganizationId types.String `tfsdk:"organization_id"`
	Status         types.String `tfsdk:"status"`
	Hyperparams    types.Object `tfsdk:"hyperparams"`
	TrainingFile   types.String `tfsdk:"training_file"`
	ValidationFile types.String `tfsdk:"validation_file"`
	ResultFiles    types.List   `tfsdk:"result_files"`
	TrainedTokens  types.Int64  `tfsdk:"trained_tokens"`
	Suffix         types.String `tfsdk:"suffix"`
	Wait           types.Bool   `tfsdk:"wait"`
}

func NewOpenAIFineTuningJobResourceModel added in v0.25.0

func NewOpenAIFineTuningJobResourceModel(ft *openai.FineTuningJob, wait bool) OpenAIFineTuningJobResourceModel

type OpenAIProvider

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

OpenAIProvider defines the provider implementation.

func (*OpenAIProvider) Configure

func (*OpenAIProvider) DataSources

func (p *OpenAIProvider) DataSources(ctx context.Context) []func() datasource.DataSource

func (*OpenAIProvider) Metadata

func (*OpenAIProvider) Resources

func (p *OpenAIProvider) Resources(ctx context.Context) []func() resource.Resource

func (*OpenAIProvider) Schema

type OpenAIProviderModel

type OpenAIProviderModel struct {
	ApiKey         types.String `tfsdk:"api_key"`
	AdminKey       types.String `tfsdk:"admin_key"`
	OrganizationID types.String `tfsdk:"organization_id"`
}

OpenAIProviderModel describes the provider data model.

type OpenAIResource added in v0.2.0

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

func (*OpenAIResource) Configure added in v0.2.0

type OpenAIVectorStoreModel added in v1.4.0

type OpenAIVectorStoreModel struct {
	Id           types.String             `tfsdk:"id"`
	Object       types.String             `tfsdk:"object"`
	CreatedAt    types.Int64              `tfsdk:"created_at"`
	Name         types.String             `tfsdk:"name"`
	FileIDs      types.List               `tfsdk:"file_ids"`
	UsageBytes   types.Int64              `tfsdk:"usage_bytes"`
	FileCounts   types.Object             `tfsdk:"file_counts"`
	Status       types.String             `tfsdk:"status"`
	ExpiresAfter *OpenAIExpiresAfterModel `tfsdk:"expires_after"`
	ExpiresAt    types.Int64              `tfsdk:"expires_at"`
	LastActiveAt types.Int64              `tfsdk:"last_active_at"`
	Metadata     types.Map                `tfsdk:"metadata"`
}

OpenAIVectorStoreModel describes the OpenAI vector store model.

func NewOpenAIVectoreStoreModel added in v1.4.0

func NewOpenAIVectoreStoreModel(ctx context.Context, vs *openai.VectorStore, data *OpenAIVectorStoreModel) (OpenAIVectorStoreModel, diag.Diagnostics)

func (OpenAIVectorStoreModel) AttrTypes added in v1.4.0

func (e OpenAIVectorStoreModel) AttrTypes() map[string]attr.Type

type ProjectDataSource added in v1.7.0

type ProjectDataSource struct {
	*OpenAIDatasource
}

ProjectDataSource defines the data source implementation.

func (*ProjectDataSource) Metadata added in v1.7.0

func (*ProjectDataSource) Read added in v1.7.0

func (*ProjectDataSource) Schema added in v1.7.0

type ProjectModel added in v1.7.0

type ProjectModel struct {
	Id         types.String `tfsdk:"id"`
	Object     types.String `tfsdk:"object"`
	Name       types.String `tfsdk:"name"`
	CreatedAt  types.Int64  `tfsdk:"created_at"`
	ArchivedAt types.Int64  `tfsdk:"archived_at"`
	Status     types.String `tfsdk:"status"`
}

ProjectModel describes the data source data model.

func NewProjectModel added in v1.7.0

func NewProjectModel(project *openai.Project) ProjectModel

type ProjectResource added in v1.7.0

type ProjectResource struct {
	*OpenAIResource
}

ProjectResource defines the resource implementation.

func (*ProjectResource) Create added in v1.7.0

func (*ProjectResource) Delete added in v1.7.0

func (*ProjectResource) ImportState added in v1.7.0

func (*ProjectResource) Metadata added in v1.7.0

func (*ProjectResource) Read added in v1.7.0

func (*ProjectResource) Schema added in v1.7.0

func (*ProjectResource) Update added in v1.7.0

type ProjectServiceAccountApiKeyModel added in v1.7.0

type ProjectServiceAccountApiKeyModel struct {
	Id        types.String `tfsdk:"id"`
	Object    types.String `tfsdk:"object"`
	Name      types.String `tfsdk:"name"`
	Value     types.String `tfsdk:"value"`
	CreatedAt types.Int64  `tfsdk:"created_at"`
}

func (ProjectServiceAccountApiKeyModel) AttrTypes added in v1.7.0

type ProjectServiceAccountDataSource added in v1.7.0

type ProjectServiceAccountDataSource struct {
	*OpenAIDatasource
}

ProjectServiceAccountDataSource defines the data source implementation.

func (*ProjectServiceAccountDataSource) Metadata added in v1.7.0

func (*ProjectServiceAccountDataSource) Read added in v1.7.0

func (*ProjectServiceAccountDataSource) Schema added in v1.7.0

type ProjectServiceAccountModel added in v1.7.0

type ProjectServiceAccountModel struct {
	Id        types.String `tfsdk:"id"`
	ProjectId types.String `tfsdk:"project_id"`
	Object    types.String `tfsdk:"object"`
	Name      types.String `tfsdk:"name"`
	Role      types.String `tfsdk:"role"`
	CreatedAt types.Int64  `tfsdk:"created_at"`
	ApiKey    types.Object `tfsdk:"api_key"`
}

ProjectServiceAccountModel describes the data source data model.

func NewProjectServiceAccountModel added in v1.7.0

func NewProjectServiceAccountModel(ctx context.Context, projectServiceAccount *openai.ProjectServiceAccount) (ProjectServiceAccountModel, diag.Diagnostics)

func NewProjectServiceAccountResourceModel added in v1.7.0

func NewProjectServiceAccountResourceModel(projectServiceAccount *openai.ProjectServiceAccount) ProjectServiceAccountModel

func (ProjectServiceAccountModel) AttrTypes added in v1.7.0

func (e ProjectServiceAccountModel) AttrTypes() map[string]attr.Type

type ProjectServiceAccountResource added in v1.7.0

type ProjectServiceAccountResource struct {
	*OpenAIResource
}

ProjectServiceAccountResource defines the resource implementation.

func (*ProjectServiceAccountResource) Create added in v1.7.0

func (*ProjectServiceAccountResource) Delete added in v1.7.0

func (*ProjectServiceAccountResource) ImportState added in v1.7.0

func (*ProjectServiceAccountResource) Metadata added in v1.7.0

func (*ProjectServiceAccountResource) Read added in v1.7.0

func (*ProjectServiceAccountResource) Schema added in v1.7.0

func (*ProjectServiceAccountResource) Update added in v1.7.0

type ProjectServiceAccountsDataSource added in v1.7.0

type ProjectServiceAccountsDataSource struct {
	*OpenAIDatasource
}

ProjectServiceAccountsDataSource defines the data source implementation.

func (*ProjectServiceAccountsDataSource) Metadata added in v1.7.0

func (*ProjectServiceAccountsDataSource) Read added in v1.7.0

func (*ProjectServiceAccountsDataSource) Schema added in v1.7.0

type ProjectServiceAccountsModel added in v1.7.0

type ProjectServiceAccountsModel struct {
	Id                     types.String                 `tfsdk:"id"`
	ProjectId              types.String                 `tfsdk:"project_id"`
	ProjectServiceAccounts []ProjectServiceAccountModel `tfsdk:"project_service_accounts"`
}

ProjectServiceAccountsModel describes the data source data model.

type ProjectsDataSource added in v1.7.0

type ProjectsDataSource struct {
	*OpenAIDatasource
}

ProjectsDataSource defines the data source implementation.

func (*ProjectsDataSource) Metadata added in v1.7.0

func (*ProjectsDataSource) Read added in v1.7.0

func (*ProjectsDataSource) Schema added in v1.7.0

type ProjectsModel added in v1.7.0

type ProjectsModel struct {
	Id       types.String   `tfsdk:"id"`
	Projects []ProjectModel `tfsdk:"projects"`
}

ProjectsModel describes the data source data model.

type VectorStoreResource added in v1.4.0

type VectorStoreResource struct {
	*OpenAIResource
}

VectorStoreResource defines the resource implementation.

func (*VectorStoreResource) Create added in v1.4.0

func (*VectorStoreResource) Delete added in v1.4.0

func (*VectorStoreResource) ImportState added in v1.4.0

func (*VectorStoreResource) Metadata added in v1.4.0

func (*VectorStoreResource) Read added in v1.4.0

func (*VectorStoreResource) Schema added in v1.4.0

func (*VectorStoreResource) Update added in v1.4.0

Jump to

Keyboard shortcuts

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