types

package
v0.0.0-...-74e78cb Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotFound

func IsNotFound(err error) bool

Types

type Agent

type Agent struct {
	Metadata
	AgentManifest
	AliasAssigned      *bool                              `json:"aliasAssigned,omitempty"`
	AuthStatus         map[string]OAuthAppLoginAuthStatus `json:"authStatus,omitempty"`
	TextEmbeddingModel string                             `json:"textEmbeddingModel,omitempty"`
}

func (*Agent) DeepCopy

func (in *Agent) DeepCopy() *Agent

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Agent.

func (*Agent) DeepCopyInto

func (in *Agent) DeepCopyInto(out *Agent)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AgentIcons

type AgentIcons struct {
	Icon          string `json:"icon"`
	IconDark      string `json:"iconDark"`
	Collapsed     string `json:"collapsed"`
	CollapsedDark string `json:"collapsedDark"`
}

func (*AgentIcons) DeepCopy

func (in *AgentIcons) DeepCopy() *AgentIcons

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentIcons.

func (*AgentIcons) DeepCopyInto

func (in *AgentIcons) DeepCopyInto(out *AgentIcons)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AgentList

type AgentList List[Agent]

func (*AgentList) DeepCopy

func (in *AgentList) DeepCopy() *AgentList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentList.

func (*AgentList) DeepCopyInto

func (in *AgentList) DeepCopyInto(out *AgentList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AgentManifest

type AgentManifest struct {
	Name                 string            `json:"name"`
	Icons                *AgentIcons       `json:"icons"`
	Description          string            `json:"description"`
	Default              bool              `json:"default"`
	Temperature          *float32          `json:"temperature"`
	Cache                *bool             `json:"cache"`
	Alias                string            `json:"alias"`
	Prompt               string            `json:"prompt"`
	KnowledgeDescription string            `json:"knowledgeDescription"`
	Agents               []string          `json:"agents"`
	Workflows            []string          `json:"workflows"`
	Tools                []string          `json:"tools"`
	AvailableThreadTools []string          `json:"availableThreadTools"`
	DefaultThreadTools   []string          `json:"defaultThreadTools"`
	OAuthApps            []string          `json:"oauthApps"`
	MaxThreadTools       int               `json:"maxThreadTools"`
	Params               map[string]string `json:"params"`
	Model                string            `json:"model"`
	Env                  []EnvVar          `json:"env"`
}

func (*AgentManifest) DeepCopy

func (in *AgentManifest) DeepCopy() *AgentManifest

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentManifest.

func (*AgentManifest) DeepCopyInto

func (in *AgentManifest) DeepCopyInto(out *AgentManifest)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (AgentManifest) GetParams

func (m AgentManifest) GetParams() *openapi3.Schema

type Assistant

type Assistant struct {
	Metadata
	Name        string     `json:"name"`
	Default     bool       `json:"default"`
	Description string     `json:"description"`
	Icons       AgentIcons `json:"icons"`
	EntityID    string     `json:"entityID"`
}

func (*Assistant) DeepCopy

func (in *Assistant) DeepCopy() *Assistant

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Assistant.

func (*Assistant) DeepCopyInto

func (in *Assistant) DeepCopyInto(out *Assistant)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AssistantList

type AssistantList List[Assistant]

func (*AssistantList) DeepCopy

func (in *AssistantList) DeepCopy() *AssistantList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AssistantList.

func (*AssistantList) DeepCopyInto

func (in *AssistantList) DeepCopyInto(out *AssistantList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AssistantTool

type AssistantTool struct {
	ID          string `json:"id,omitempty"`
	Name        string `json:"name"`
	Description string `json:"description"`
	Icon        string `json:"icon,omitempty"`
	Enabled     bool   `json:"enabled,omitempty"`
	Builtin     bool   `json:"builtin,omitempty"`
}

func (*AssistantTool) DeepCopy

func (in *AssistantTool) DeepCopy() *AssistantTool

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AssistantTool.

func (*AssistantTool) DeepCopyInto

func (in *AssistantTool) DeepCopyInto(out *AssistantTool)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AssistantToolList

type AssistantToolList struct {
	ReadOnly bool            `json:"readOnly,omitempty"`
	Items    []AssistantTool `json:"items"`
}

func (*AssistantToolList) DeepCopy

func (in *AssistantToolList) DeepCopy() *AssistantToolList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AssistantToolList.

func (*AssistantToolList) DeepCopyInto

func (in *AssistantToolList) DeepCopyInto(out *AssistantToolList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Credential

type Credential struct {
	ContextID string   `json:"contextID,omitempty"`
	Name      string   `json:"name,omitempty"`
	EnvVars   []string `json:"envVars,omitempty"`
	ExpiresAt *Time    `json:"expiresAt,omitempty"`
}

func (*Credential) DeepCopy

func (in *Credential) DeepCopy() *Credential

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Credential.

func (*Credential) DeepCopyInto

func (in *Credential) DeepCopyInto(out *Credential)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type CredentialList

type CredentialList List[Credential]

func (*CredentialList) DeepCopy

func (in *CredentialList) DeepCopy() *CredentialList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialList.

func (*CredentialList) DeepCopyInto

func (in *CredentialList) DeepCopyInto(out *CredentialList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type CronJob

type CronJob struct {
	Metadata
	CronJobManifest
	LastRunStartedAt           *Time `json:"lastRunStartedAt,omitempty"`
	LastSuccessfulRunCompleted *Time `json:"lastSuccessfulRunCompleted,omitempty"`
	NextRunAt                  *Time `json:"nextRunAt,omitempty"`
}

func (*CronJob) DeepCopy

func (in *CronJob) DeepCopy() *CronJob

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CronJob.

func (*CronJob) DeepCopyInto

func (in *CronJob) DeepCopyInto(out *CronJob)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type CronJobList

type CronJobList List[CronJob]

func (*CronJobList) DeepCopy

func (in *CronJobList) DeepCopy() *CronJobList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CronJobList.

func (*CronJobList) DeepCopyInto

func (in *CronJobList) DeepCopyInto(out *CronJobList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type CronJobManifest

type CronJobManifest struct {
	Description  string    `json:"description,omitempty"`
	Schedule     string    `json:"schedule,omitempty"`
	Workflow     string    `json:"workflow,omitempty"`
	Input        string    `json:"input,omitempty"`
	TaskSchedule *Schedule `json:"taskSchedule,omitempty"`
}

func (*CronJobManifest) DeepCopy

func (in *CronJobManifest) DeepCopy() *CronJobManifest

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CronJobManifest.

func (*CronJobManifest) DeepCopyInto

func (in *CronJobManifest) DeepCopyInto(out *CronJobManifest)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type DefaultModelAlias

type DefaultModelAlias struct {
	DefaultModelAliasManifest
}

func (*DefaultModelAlias) DeepCopy

func (in *DefaultModelAlias) DeepCopy() *DefaultModelAlias

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DefaultModelAlias.

func (*DefaultModelAlias) DeepCopyInto

func (in *DefaultModelAlias) DeepCopyInto(out *DefaultModelAlias)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type DefaultModelAliasList

type DefaultModelAliasList List[DefaultModelAlias]

func (*DefaultModelAliasList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DefaultModelAliasList.

func (*DefaultModelAliasList) DeepCopyInto

func (in *DefaultModelAliasList) DeepCopyInto(out *DefaultModelAliasList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type DefaultModelAliasManifest

type DefaultModelAliasManifest struct {
	Alias string `json:"alias"`
	Model string `json:"model"`
}

func (*DefaultModelAliasManifest) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DefaultModelAliasManifest.

func (*DefaultModelAliasManifest) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type DefaultModelAliasType

type DefaultModelAliasType string
const (
	DefaultModelAliasTypeTextEmbedding   DefaultModelAliasType = "text-embedding"
	DefaultModelAliasTypeLLM             DefaultModelAliasType = "llm"
	DefaultModelAliasTypeLLMMini         DefaultModelAliasType = "llm-mini"
	DefaultModelAliasTypeImageGeneration DefaultModelAliasType = "image-generation"
	DefaultModelAliasTypeVision          DefaultModelAliasType = "vision"
)

type EmailReceiver

type EmailReceiver struct {
	Metadata
	EmailReceiverManifest
	AddressAssigned *bool  `json:"aliasAssigned,omitempty"`
	EmailAddress    string `json:"emailAddress,omitempty"`
}

func (*EmailReceiver) DeepCopy

func (in *EmailReceiver) DeepCopy() *EmailReceiver

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EmailReceiver.

func (*EmailReceiver) DeepCopyInto

func (in *EmailReceiver) DeepCopyInto(out *EmailReceiver)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type EmailReceiverList

type EmailReceiverList List[EmailReceiver]

func (*EmailReceiverList) DeepCopy

func (in *EmailReceiverList) DeepCopy() *EmailReceiverList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EmailReceiverList.

func (*EmailReceiverList) DeepCopyInto

func (in *EmailReceiverList) DeepCopyInto(out *EmailReceiverList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type EmailReceiverManifest

type EmailReceiverManifest struct {
	Name           string   `json:"name"`
	Description    string   `json:"description"`
	User           string   `json:"user,omitempty"`
	Workflow       string   `json:"workflow"`
	AllowedSenders []string `json:"allowedSenders,omitempty"`
}

func (*EmailReceiverManifest) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EmailReceiverManifest.

func (*EmailReceiverManifest) DeepCopyInto

func (in *EmailReceiverManifest) DeepCopyInto(out *EmailReceiverManifest)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type EnvVar

type EnvVar struct {
	Name        string `json:"name"`
	Value       string `json:"value"`
	Description string `json:"description"`
}

func (*EnvVar) DeepCopy

func (in *EnvVar) DeepCopy() *EnvVar

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvVar.

func (*EnvVar) DeepCopyInto

func (in *EnvVar) DeepCopyInto(out *EnvVar)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ErrHTTP

type ErrHTTP struct {
	Code    int
	Message string
}

func NewErrBadRequest

func NewErrBadRequest(message string, args ...interface{}) *ErrHTTP

func NewErrHttp

func NewErrHttp(code int, message string) *ErrHTTP

func NewErrNotFound

func NewErrNotFound(message string, args ...any) *ErrHTTP

func (*ErrHTTP) DeepCopy

func (in *ErrHTTP) DeepCopy() *ErrHTTP

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ErrHTTP.

func (*ErrHTTP) DeepCopyInto

func (in *ErrHTTP) DeepCopyInto(out *ErrHTTP)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ErrHTTP) Error

func (e *ErrHTTP) Error() string

type File

type File struct {
	Name string `json:"name,omitempty"`
}

func (*File) DeepCopy

func (in *File) DeepCopy() *File

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new File.

func (*File) DeepCopyInto

func (in *File) DeepCopyInto(out *File)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type FileList

type FileList List[File]

func (*FileList) DeepCopy

func (in *FileList) DeepCopy() *FileList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FileList.

func (*FileList) DeepCopyInto

func (in *FileList) DeepCopyInto(out *FileList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type FolderSet

type FolderSet map[string]Item

func (FolderSet) DeepCopy

func (in FolderSet) DeepCopy() FolderSet

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FolderSet.

func (FolderSet) DeepCopyInto

func (in FolderSet) DeepCopyInto(out *FolderSet)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type If

type If struct {
	Condition string `json:"condition,omitempty"`
	Steps     []Step `json:"steps,omitempty"`
	Else      []Step `json:"else,omitempty"`
}

func (*If) DeepCopy

func (in *If) DeepCopy() *If

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new If.

func (*If) DeepCopyInto

func (in *If) DeepCopyInto(out *If)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type InvokeResponse

type InvokeResponse struct {
	Events   <-chan Progress
	ThreadID string
}

+k8s:openapi-gen=false

type Item

type Item struct{}

func (*Item) DeepCopy

func (in *Item) DeepCopy() *Item

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Item.

func (*Item) DeepCopyInto

func (in *Item) DeepCopyInto(out *Item)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type KnowledgeFile

type KnowledgeFile struct {
	Metadata
	FileName               string             `json:"fileName"`
	State                  KnowledgeFileState `json:"state"`
	Error                  string             `json:"error,omitempty"`
	AgentID                string             `json:"agentID,omitempty"`
	ThreadID               string             `json:"threadID,omitempty"`
	KnowledgeSetID         string             `json:"knowledgeSetID,omitempty"`
	KnowledgeSourceID      string             `json:"knowledgeSourceID,omitempty"`
	Approved               *bool              `json:"approved,omitempty"`
	URL                    string             `json:"url,omitempty"`
	UpdatedAt              string             `json:"updatedAt,omitempty"`
	Checksum               string             `json:"checksum,omitempty"`
	LastIngestionStartTime *Time              `json:"lastIngestionStartTime,omitempty"`
	LastIngestionEndTime   *Time              `json:"lastIngestionEndTime,omitempty"`
	LastRunIDs             []string           `json:"lastRunIDs,omitempty"`
	SizeInBytes            int64              `json:"sizeInBytes,omitempty"`
}

func (*KnowledgeFile) DeepCopy

func (in *KnowledgeFile) DeepCopy() *KnowledgeFile

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KnowledgeFile.

func (*KnowledgeFile) DeepCopyInto

func (in *KnowledgeFile) DeepCopyInto(out *KnowledgeFile)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type KnowledgeFileList

type KnowledgeFileList List[KnowledgeFile]

func (*KnowledgeFileList) DeepCopy

func (in *KnowledgeFileList) DeepCopy() *KnowledgeFileList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KnowledgeFileList.

func (*KnowledgeFileList) DeepCopyInto

func (in *KnowledgeFileList) DeepCopyInto(out *KnowledgeFileList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type KnowledgeFileState

type KnowledgeFileState string
const (
	KnowledgeFileStatePending     KnowledgeFileState = "pending"
	KnowledgeFileStateIngesting   KnowledgeFileState = "ingesting"
	KnowledgeFileStateIngested    KnowledgeFileState = "ingested"
	KnowledgeFileStateError       KnowledgeFileState = "error"
	KnowledgeFileStateUnsupported KnowledgeFileState = "unsupported"

	// KnowledgeFileStateUnapproved This is only a public API state, not a real orchestration state
	KnowledgeFileStateUnapproved KnowledgeFileState = "unapproved"
	// KnowledgeFileStatePendingApproval This is only a public API state, not a real orchestration state
	KnowledgeFileStatePendingApproval KnowledgeFileState = "pending-approval"
)

func (KnowledgeFileState) IsTerminal

func (k KnowledgeFileState) IsTerminal() bool

type KnowledgeSource

type KnowledgeSource struct {
	Metadata
	KnowledgeSourceManifest `json:",inline"`
	AgentID                 string               `json:"agentID,omitempty"`
	State                   KnowledgeSourceState `json:"state,omitempty"`
	SyncDetails             json.RawMessage      `json:"syncDetails,omitempty"`
	Status                  string               `json:"status,omitempty"`
	Error                   string               `json:"error,omitempty"`
	LastSyncStartTime       *Time                `json:"lastSyncStartTime,omitempty"`
	LastSyncEndTime         *Time                `json:"lastSyncEndTime,omitempty"`
	LastRunID               string               `json:"lastRunID,omitempty"`
}

func (*KnowledgeSource) DeepCopy

func (in *KnowledgeSource) DeepCopy() *KnowledgeSource

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KnowledgeSource.

func (*KnowledgeSource) DeepCopyInto

func (in *KnowledgeSource) DeepCopyInto(out *KnowledgeSource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type KnowledgeSourceInput

type KnowledgeSourceInput struct {
	OneDriveConfig        *OneDriveConfig        `json:"onedriveConfig,omitempty"`
	NotionConfig          *NotionConfig          `json:"notionConfig,omitempty"`
	WebsiteCrawlingConfig *WebsiteCrawlingConfig `json:"websiteCrawlingConfig,omitempty"`
}

func (*KnowledgeSourceInput) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KnowledgeSourceInput.

func (*KnowledgeSourceInput) DeepCopyInto

func (in *KnowledgeSourceInput) DeepCopyInto(out *KnowledgeSourceInput)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*KnowledgeSourceInput) GetCredential

func (k *KnowledgeSourceInput) GetCredential() string

func (*KnowledgeSourceInput) GetType

func (*KnowledgeSourceInput) Validate

func (k *KnowledgeSourceInput) Validate() error

type KnowledgeSourceList

type KnowledgeSourceList List[KnowledgeSource]

func (*KnowledgeSourceList) DeepCopy

func (in *KnowledgeSourceList) DeepCopy() *KnowledgeSourceList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KnowledgeSourceList.

func (*KnowledgeSourceList) DeepCopyInto

func (in *KnowledgeSourceList) DeepCopyInto(out *KnowledgeSourceList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type KnowledgeSourceManifest

type KnowledgeSourceManifest struct {
	SyncSchedule          string   `json:"syncSchedule,omitempty"`
	AutoApprove           *bool    `json:"autoApprove,omitempty"`
	FilePathPrefixInclude []string `json:"filePathPrefixInclude,omitempty"`
	FilePathPrefixExclude []string `json:"filePathPrefixExclude,omitempty"`
	KnowledgeSourceInput  `json:",inline"`
}

func (*KnowledgeSourceManifest) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KnowledgeSourceManifest.

func (*KnowledgeSourceManifest) DeepCopyInto

func (in *KnowledgeSourceManifest) DeepCopyInto(out *KnowledgeSourceManifest)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type KnowledgeSourceState

type KnowledgeSourceState string
const (
	KnowledgeSourceStatePending KnowledgeSourceState = "pending"
	KnowledgeSourceStateSyncing KnowledgeSourceState = "syncing"
	KnowledgeSourceStateSynced  KnowledgeSourceState = "synced"
	KnowledgeSourceStateError   KnowledgeSourceState = "error"
)

func (KnowledgeSourceState) IsTerminal

func (k KnowledgeSourceState) IsTerminal() bool

type KnowledgeSourceType

type KnowledgeSourceType string
var (
	KnowledgeSourceTypeOneDrive KnowledgeSourceType = "onedrive"
	KnowledgeSourceTypeNotion   KnowledgeSourceType = "notion"
	KnowledgeSourceTypeWebsite  KnowledgeSourceType = "website"
)

type List

type List[T any] struct {
	Items []T `json:"items"`
}

+k8s:openapi-gen=false

type Metadata

type Metadata struct {
	ID       string            `json:"id,omitempty"`
	Created  Time              `json:"created,omitempty"`
	Deleted  *Time             `json:"deleted,omitempty"`
	Revision string            `json:"revision,omitempty"`
	Links    map[string]string `json:"links,omitempty"`
	Metadata map[string]string `json:"metadata,omitempty"`
	Type     string            `json:"type,omitempty"`
}

func (*Metadata) DeepCopy

func (in *Metadata) DeepCopy() *Metadata

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Metadata.

func (*Metadata) DeepCopyInto

func (in *Metadata) DeepCopyInto(out *Metadata)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Model

type Model struct {
	Metadata
	ModelManifest
	ModelStatus
}

func (*Model) DeepCopy

func (in *Model) DeepCopy() *Model

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Model.

func (*Model) DeepCopyInto

func (in *Model) DeepCopyInto(out *Model)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ModelList

type ModelList List[Model]

func (*ModelList) DeepCopy

func (in *ModelList) DeepCopy() *ModelList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModelList.

func (*ModelList) DeepCopyInto

func (in *ModelList) DeepCopyInto(out *ModelList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ModelManifest

type ModelManifest struct {
	Name          string     `json:"name,omitempty"`
	TargetModel   string     `json:"targetModel,omitempty"`
	ModelProvider string     `json:"modelProvider,omitempty"`
	Alias         string     `json:"alias,omitempty"`
	Active        bool       `json:"active"`
	Usage         ModelUsage `json:"usage"`
}

func (*ModelManifest) DeepCopy

func (in *ModelManifest) DeepCopy() *ModelManifest

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModelManifest.

func (*ModelManifest) DeepCopyInto

func (in *ModelManifest) DeepCopyInto(out *ModelManifest)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ModelProvider

type ModelProvider struct {
	Metadata
	ModelProviderManifest
	ModelProviderStatus
}

func (*ModelProvider) DeepCopy

func (in *ModelProvider) DeepCopy() *ModelProvider

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModelProvider.

func (*ModelProvider) DeepCopyInto

func (in *ModelProvider) DeepCopyInto(out *ModelProvider)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ModelProviderList

type ModelProviderList List[ModelProvider]

func (*ModelProviderList) DeepCopy

func (in *ModelProviderList) DeepCopy() *ModelProviderList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModelProviderList.

func (*ModelProviderList) DeepCopyInto

func (in *ModelProviderList) DeepCopyInto(out *ModelProviderList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ModelProviderManifest

type ModelProviderManifest struct {
	Name          string `json:"name"`
	ToolReference string `json:"toolReference"`
}

func (*ModelProviderManifest) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModelProviderManifest.

func (*ModelProviderManifest) DeepCopyInto

func (in *ModelProviderManifest) DeepCopyInto(out *ModelProviderManifest)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ModelProviderStatus

type ModelProviderStatus struct {
	Icon                            string   `json:"icon,omitempty"`
	Configured                      bool     `json:"configured"`
	ModelsBackPopulated             *bool    `json:"modelsBackPopulated,omitempty"`
	RequiredConfigurationParameters []string `json:"requiredConfigurationParameters,omitempty"`
	MissingConfigurationParameters  []string `json:"missingConfigurationParameters,omitempty"`
	OptionalConfigurationParameters []string `json:"optionalConfigurationParameters,omitempty"`
}

func (*ModelProviderStatus) DeepCopy

func (in *ModelProviderStatus) DeepCopy() *ModelProviderStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModelProviderStatus.

func (*ModelProviderStatus) DeepCopyInto

func (in *ModelProviderStatus) DeepCopyInto(out *ModelProviderStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ModelStatus

type ModelStatus struct {
	AliasAssigned *bool `json:"aliasAssigned,omitempty"`
}

func (*ModelStatus) DeepCopy

func (in *ModelStatus) DeepCopy() *ModelStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModelStatus.

func (*ModelStatus) DeepCopyInto

func (in *ModelStatus) DeepCopyInto(out *ModelStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ModelUsage

type ModelUsage string
const (
	ModelUsageLLM       ModelUsage = "llm"
	ModelUsageEmbedding ModelUsage = "text-embedding"
	ModelUsageImage     ModelUsage = "image-generation"
	ModelUsageVision    ModelUsage = "vision"
	ModelUsageOther     ModelUsage = "other"
	ModelUsageUnknown   ModelUsage = ""
)

type NotionConfig

type NotionConfig struct{}

func (*NotionConfig) DeepCopy

func (in *NotionConfig) DeepCopy() *NotionConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NotionConfig.

func (*NotionConfig) DeepCopyInto

func (in *NotionConfig) DeepCopyInto(out *NotionConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type OAuthApp

type OAuthApp struct {
	OAuthAppManifest
}

func (*OAuthApp) DeepCopy

func (in *OAuthApp) DeepCopy() *OAuthApp

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OAuthApp.

func (*OAuthApp) DeepCopyInto

func (in *OAuthApp) DeepCopyInto(out *OAuthApp)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type OAuthAppList

type OAuthAppList List[OAuthApp]

func (*OAuthAppList) DeepCopy

func (in *OAuthAppList) DeepCopy() *OAuthAppList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OAuthAppList.

func (*OAuthAppList) DeepCopyInto

func (in *OAuthAppList) DeepCopyInto(out *OAuthAppList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type OAuthAppLoginAuthStatus

type OAuthAppLoginAuthStatus struct {
	URL           string `json:"url,omitempty"`
	Authenticated bool   `json:"authenticated,omitempty"`
	Required      *bool  `json:"required,omitempty"`
	Error         string `json:"error,omitempty"`
}

func (*OAuthAppLoginAuthStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OAuthAppLoginAuthStatus.

func (*OAuthAppLoginAuthStatus) DeepCopyInto

func (in *OAuthAppLoginAuthStatus) DeepCopyInto(out *OAuthAppLoginAuthStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type OAuthAppManifest

type OAuthAppManifest struct {
	Metadata
	Type         OAuthAppType `json:"type"`
	Name         string       `json:"name,omitempty"`
	ClientID     string       `json:"clientID"`
	ClientSecret string       `json:"clientSecret,omitempty"`
	// These fields are only needed for custom OAuth apps.
	AuthURL  string `json:"authURL,omitempty"`
	TokenURL string `json:"tokenURL,omitempty"`
	// This field is only needed for Microsoft 365 OAuth apps.
	TenantID string `json:"tenantID,omitempty"`
	// This field is only needed for HubSpot OAuth apps.
	AppID string `json:"appID,omitempty"`
	// This field is optional for HubSpot OAuth apps.
	OptionalScope string `json:"optionalScope,omitempty"`
	// This field is required, it correlates to the integration name in the gptscript oauth cred tool
	Integration string `json:"integration,omitempty"`
	// Global indicates if the OAuth app is globally applied to all agents.
	Global *bool `json:"global,omitempty"`
	// This field is only used by Salesforce
	InstanceURL string `json:"instanceURL,omitempty"`
}

func (*OAuthAppManifest) DeepCopy

func (in *OAuthAppManifest) DeepCopy() *OAuthAppManifest

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OAuthAppManifest.

func (*OAuthAppManifest) DeepCopyInto

func (in *OAuthAppManifest) DeepCopyInto(out *OAuthAppManifest)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type OAuthAppType

type OAuthAppType string
const (
	OAuthAppTypeAtlassian    OAuthAppType = "atlassian"
	OAuthAppTypeMicrosoft365 OAuthAppType = "microsoft365"
	OAuthAppTypeSlack        OAuthAppType = "slack"
	OAuthAppTypeNotion       OAuthAppType = "notion"
	OAuthAppTypeHubSpot      OAuthAppType = "hubspot"
	OAuthAppTypeGitHub       OAuthAppType = "github"
	OAuthAppTypeGoogle       OAuthAppType = "google"
	OAuthAppTypeSalesforce   OAuthAppType = "salesforce"
	OAuthAppTypeCustom       OAuthAppType = "custom"
)

type OneDriveConfig

type OneDriveConfig struct {
	SharedLinks []string `json:"sharedLinks,omitempty"`
}

func (*OneDriveConfig) DeepCopy

func (in *OneDriveConfig) DeepCopy() *OneDriveConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OneDriveConfig.

func (*OneDriveConfig) DeepCopyInto

func (in *OneDriveConfig) DeepCopyInto(out *OneDriveConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Progress

type Progress struct {
	// RunID should be populated for all progress events to associate this event with a run
	// If RunID is not populated, the event will not specify tied to any particular run
	RunID string `json:"runID,omitempty"`

	// ParentRunID is the parent run of the run that is specified in the RunID field
	ParentRunID string `json:"parentRunID,omitempty"`

	// Time is the time the event was generated
	Time *Time `json:"time,omitempty"`

	// Content is the output data. The content for all events should be concatenated to form the entire output
	// If you wish to print event and are not concerned with tracking the internal progress when one can just
	// only the content field in a very simple loop
	Content string `json:"content"`

	// ContentID is a unique identifier for the content. This is used to track the content across multiple events.
	// This field applies to Content and ToolInput.Content fields.
	ContentID string `json:"contentID,omitempty"`

	// Some input that was provided to the run
	Input string `json:"input,omitempty"`
	// InputIsStepTemplateInput indicates that the input will be passed to a step template. Later an event will be
	// sent with the step template invoke information in the StepTemplateInvoke field
	InputIsStepTemplateInput bool `json:"inputIsStepTemplateInput,omitempty"`
	// StepTemplateInvoke indicates that a step template is being invoked
	StepTemplateInvoke *StepTemplateInvoke `json:"stepTemplateInvoke,omitempty"`
	// If prompt is set, content will also be set, but you can ignore the content field and instead handle the explicit
	// information in the prompt field which will provider more information for things such as OAuth
	Prompt *Prompt `json:"prompt,omitempty"`
	// The step that is currently being executed. When this is set the following events are assumed to be part of
	// this step until the next step is set. This field is not always set, only set when the set changes
	Step *Step `json:"step,omitempty"`
	// ToolInput indicates the LLM is currently generating tool arguments which can sometime take a while
	ToolInput *ToolInput `json:"toolInput,omitempty"`
	// ToolCall indicates the LLM is currently calling a tool.
	ToolCall *ToolCall `json:"toolCall,omitempty"`
	// ToolCall indicates the LLM is currently calling a tool.
	WorkflowCall *WorkflowCall `json:"workflowCall,omitempty"`
	// WaitingOnModel indicates we are waiting for the model to start responding with content
	WaitingOnModel bool `json:"waitingOnModel,omitempty"`
	// Error indicates that an error occurred
	Error string `json:"error,omitempty"`
	// The run is done, either success or failure
	RunComplete bool `json:"runComplete,omitempty"`
	// ReplayComplete indicates that all existing events have been sent and future events will be new events
	ReplayComplete bool `json:"replayComplete,omitempty"`
}

func (*Progress) DeepCopy

func (in *Progress) DeepCopy() *Progress

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Progress.

func (*Progress) DeepCopyInto

func (in *Progress) DeepCopyInto(out *Progress)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Prompt

type Prompt struct {
	ID          string            `json:"id,omitempty"`
	Name        string            `json:"name,omitempty"`
	Description string            `json:"description,omitempty"`
	Time        *Time             `json:"time,omitempty"`
	Message     string            `json:"message,omitempty"`
	Fields      []string          `json:"fields,omitempty"`
	Sensitive   bool              `json:"sensitive,omitempty"`
	Metadata    map[string]string `json:"metadata,omitempty"`
}

func (*Prompt) DeepCopy

func (in *Prompt) DeepCopy() *Prompt

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Prompt.

func (*Prompt) DeepCopyInto

func (in *Prompt) DeepCopyInto(out *Prompt)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PromptResponse

type PromptResponse struct {
	ID        string            `json:"id,omitempty"`
	Responses map[string]string `json:"response,omitempty"`
}

func (*PromptResponse) DeepCopy

func (in *PromptResponse) DeepCopy() *PromptResponse

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PromptResponse.

func (*PromptResponse) DeepCopyInto

func (in *PromptResponse) DeepCopyInto(out *PromptResponse)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Role

type Role int
const (
	RoleUnknown Role = iota
	RoleAdmin

	// RoleBasic is the default role. Leaving a little space for future roles.
	RoleBasic Role = 10
)

func (Role) HasRole

func (u Role) HasRole(role Role) bool

type Run

type Run struct {
	ID                string `json:"id,omitempty"`
	Created           Time   `json:"created,omitempty"`
	ThreadID          string `json:"threadID,omitempty"`
	AgentID           string `json:"agentID,omitempty"`
	WorkflowID        string `json:"workflowID,omitempty"`
	WorkflowStepID    string `json:"workflowStepID,omitempty"`
	SubCallWorkflowID string `json:"subCallWorkflowID,omitempty"`
	SubCallInput      string `json:"subCallInput,omitempty"`
	PreviousRunID     string `json:"previousRunID,omitempty"`
	Input             string `json:"input"`
	State             string `json:"state,omitempty"`
	Output            string `json:"output,omitempty"`
	Error             string `json:"error,omitempty"`
}

func (*Run) DeepCopy

func (in *Run) DeepCopy() *Run

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Run.

func (*Run) DeepCopyInto

func (in *Run) DeepCopyInto(out *Run)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type RunDebug

type RunDebug struct {
	// Spec is opaque, for human eyes only
	Spec any `json:"spec"`
	// Status is opaque, for human eyes only
	Status any                            `json:"status"`
	Frames map[string]gptscript.CallFrame `json:"frames"`
}

+k8s:openapi-gen=false

type RunList

type RunList List[Run]

func (*RunList) DeepCopy

func (in *RunList) DeepCopy() *RunList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunList.

func (*RunList) DeepCopyInto

func (in *RunList) DeepCopyInto(out *RunList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Schedule

type Schedule struct {
	// Valid values are: "hourly", "daily", "weekly", "monthly"
	Interval string `json:"interval"`
	Hour     int    `json:"hour"`
	Minute   int    `json:"minute"`
	Day      int    `json:"day"`
	Weekday  int    `json:"weekday"`
}

func (*Schedule) DeepCopy

func (in *Schedule) DeepCopy() *Schedule

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Schedule.

func (*Schedule) DeepCopyInto

func (in *Schedule) DeepCopyInto(out *Schedule)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Step

type Step struct {
	ID          string    `json:"id,omitempty"`
	Name        string    `json:"name,omitempty"`
	Description string    `json:"description,omitempty"`
	If          *If       `json:"if,omitempty"`
	While       *While    `json:"while,omitempty"`
	Template    *Template `json:"template,omitempty"`
	Tools       []string  `json:"tools,omitempty"`
	Agents      []string  `json:"agents,omitempty"`
	Workflows   []string  `json:"workflows,omitempty"`

	Step        string   `json:"step,omitempty"`
	Cache       *bool    `json:"cache,omitempty"`
	Temperature *float32 `json:"temperature,omitempty"`
}

func FindStep

func FindStep(manifest *WorkflowManifest, id string) (_ *Step, parentID string)

func (*Step) DeepCopy

func (in *Step) DeepCopy() *Step

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Step.

func (*Step) DeepCopyInto

func (in *Step) DeepCopyInto(out *Step)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (Step) Display

func (s Step) Display() string

func (*Step) SetArgs

func (s *Step) SetArgs(args map[string]string)

func (*Step) SetCondition

func (s *Step) SetCondition(condition string)

func (*Step) SetPrompt

func (s *Step) SetPrompt(prompt string)

type StepTemplateInvoke

type StepTemplateInvoke struct {
	Name        string            `json:"name,omitempty"`
	Description string            `json:"description,omitempty"`
	Args        map[string]string `json:"args,omitempty"`
	Result      string            `json:"result,omitempty"`
}

func (*StepTemplateInvoke) DeepCopy

func (in *StepTemplateInvoke) DeepCopy() *StepTemplateInvoke

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StepTemplateInvoke.

func (*StepTemplateInvoke) DeepCopyInto

func (in *StepTemplateInvoke) DeepCopyInto(out *StepTemplateInvoke)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SubFlow

type SubFlow struct {
	Input    string `json:"input,omitempty"`
	Workflow string `json:"workflow,omitempty"`
}

func (*SubFlow) DeepCopy

func (in *SubFlow) DeepCopy() *SubFlow

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubFlow.

func (*SubFlow) DeepCopyInto

func (in *SubFlow) DeepCopyInto(out *SubFlow)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Table

type Table struct {
	Name string `json:"name"`
}

func (*Table) DeepCopy

func (in *Table) DeepCopy() *Table

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Table.

func (*Table) DeepCopyInto

func (in *Table) DeepCopyInto(out *Table)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TableList

type TableList List[Table]

func (*TableList) DeepCopy

func (in *TableList) DeepCopy() *TableList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TableList.

func (*TableList) DeepCopyInto

func (in *TableList) DeepCopyInto(out *TableList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TableRow

type TableRow struct {
	Columns []string       `json:"columns,omitempty"`
	Values  map[string]any `json:"values"`
}

+k8s:openapi-gen=false

type TableRowList

type TableRowList List[TableRow]

+k8s:openapi-gen=false

type Task

type Task struct {
	Metadata
	TaskManifest
	Alias string `json:"alias,omitempty"`
}

func (*Task) DeepCopy

func (in *Task) DeepCopy() *Task

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Task.

func (*Task) DeepCopyInto

func (in *Task) DeepCopyInto(out *Task)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TaskEmail

type TaskEmail struct {
}

func (*TaskEmail) DeepCopy

func (in *TaskEmail) DeepCopy() *TaskEmail

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskEmail.

func (*TaskEmail) DeepCopyInto

func (in *TaskEmail) DeepCopyInto(out *TaskEmail)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TaskIf

type TaskIf struct {
	Condition string     `json:"condition,omitempty"`
	Steps     []TaskStep `json:"steps,omitempty"`
	Else      []TaskStep `json:"else,omitempty"`
}

func (*TaskIf) DeepCopy

func (in *TaskIf) DeepCopy() *TaskIf

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskIf.

func (*TaskIf) DeepCopyInto

func (in *TaskIf) DeepCopyInto(out *TaskIf)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TaskList

type TaskList List[Task]

func (*TaskList) DeepCopy

func (in *TaskList) DeepCopy() *TaskList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskList.

func (*TaskList) DeepCopyInto

func (in *TaskList) DeepCopyInto(out *TaskList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TaskManifest

type TaskManifest struct {
	Name        string        `json:"name"`
	Description string        `json:"description"`
	Steps       []TaskStep    `json:"steps"`
	Schedule    *Schedule     `json:"schedule"`
	Webhook     *TaskWebhook  `json:"webhook"`
	Email       *TaskEmail    `json:"email"`
	OnDemand    *TaskOnDemand `json:"onDemand"`
}

func (*TaskManifest) DeepCopy

func (in *TaskManifest) DeepCopy() *TaskManifest

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskManifest.

func (*TaskManifest) DeepCopyInto

func (in *TaskManifest) DeepCopyInto(out *TaskManifest)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TaskOnDemand

type TaskOnDemand struct {
	Params map[string]string `json:"params,omitempty"`
}

func (*TaskOnDemand) DeepCopy

func (in *TaskOnDemand) DeepCopy() *TaskOnDemand

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskOnDemand.

func (*TaskOnDemand) DeepCopyInto

func (in *TaskOnDemand) DeepCopyInto(out *TaskOnDemand)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TaskRun

type TaskRun struct {
	Metadata
	TaskID    string       `json:"taskID,omitempty"`
	Input     string       `json:"input,omitempty"`
	Task      TaskManifest `json:"task,omitempty"`
	StartTime *Time        `json:"startTime,omitempty"`
	EndTime   *Time        `json:"endTime,omitempty"`
	Error     string       `json:"error,omitempty"`
}

func (*TaskRun) DeepCopy

func (in *TaskRun) DeepCopy() *TaskRun

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskRun.

func (*TaskRun) DeepCopyInto

func (in *TaskRun) DeepCopyInto(out *TaskRun)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TaskRunList

type TaskRunList List[TaskRun]

func (*TaskRunList) DeepCopy

func (in *TaskRunList) DeepCopy() *TaskRunList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskRunList.

func (*TaskRunList) DeepCopyInto

func (in *TaskRunList) DeepCopyInto(out *TaskRunList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TaskStep

type TaskStep struct {
	ID   string  `json:"id,omitempty"`
	If   *TaskIf `json:"if,omitempty"`
	Step string  `json:"step,omitempty"`
}

func (*TaskStep) DeepCopy

func (in *TaskStep) DeepCopy() *TaskStep

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskStep.

func (*TaskStep) DeepCopyInto

func (in *TaskStep) DeepCopyInto(out *TaskStep)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TaskWebhook

type TaskWebhook struct {
}

func (*TaskWebhook) DeepCopy

func (in *TaskWebhook) DeepCopy() *TaskWebhook

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskWebhook.

func (*TaskWebhook) DeepCopyInto

func (in *TaskWebhook) DeepCopyInto(out *TaskWebhook)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Template

type Template struct {
	Name string            `json:"name,omitempty"`
	Args map[string]string `json:"args,omitempty"`
}

func (*Template) DeepCopy

func (in *Template) DeepCopy() *Template

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Template.

func (*Template) DeepCopyInto

func (in *Template) DeepCopyInto(out *Template)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Thread

type Thread struct {
	Metadata
	ThreadManifest
	AgentID         string   `json:"agentID,omitempty"`
	WorkflowID      string   `json:"workflowID,omitempty"`
	WebhookID       string   `json:"webhookID,omitempty"`
	EmailReceiverID string   `json:"emailReceiverID,omitempty"`
	State           string   `json:"state,omitempty"`
	LastRunID       string   `json:"lastRunID,omitempty"`
	CurrentRunID    string   `json:"currentRunID,omitempty"`
	ParentThreadID  string   `json:"parentThreadID,omitempty"`
	UserID          string   `json:"userID,omitempty"`
	AgentAlias      string   `json:"agentAlias,omitempty"`
	Abort           bool     `json:"abort,omitempty"`
	Env             []string `json:"env,omitempty"`
}

func (*Thread) DeepCopy

func (in *Thread) DeepCopy() *Thread

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Thread.

func (*Thread) DeepCopyInto

func (in *Thread) DeepCopyInto(out *Thread)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ThreadList

type ThreadList List[Thread]

func (*ThreadList) DeepCopy

func (in *ThreadList) DeepCopy() *ThreadList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ThreadList.

func (*ThreadList) DeepCopyInto

func (in *ThreadList) DeepCopyInto(out *ThreadList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ThreadManifest

type ThreadManifest struct {
	Tools       []string `json:"tools,omitempty"`
	Description string   `json:"description,omitempty"`
}

func (*ThreadManifest) DeepCopy

func (in *ThreadManifest) DeepCopy() *ThreadManifest

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ThreadManifest.

func (*ThreadManifest) DeepCopyInto

func (in *ThreadManifest) DeepCopyInto(out *ThreadManifest)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Time

type Time struct {
	Time time.Time
}

func NewTime

func NewTime(t time.Time) *Time

func NewTimeFromPointer

func NewTimeFromPointer(t *time.Time) *Time

NewTimeFromPointer creates a new Time object from a pointer to a time.Time object. If the pointer is nil, the function returns nil.

func (*Time) DeepCopy

func (in *Time) DeepCopy() *Time

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Time.

func (*Time) DeepCopyInto

func (t *Time) DeepCopyInto(out *Time)

DeepCopyInto creates a deep-copy of the Time value. You can do a straight copy of the object because the underlying time.Time type is effectively immutable in the time API.

func (*Time) GetTime

func (t *Time) GetTime() time.Time

func (Time) MarshalJSON

func (t Time) MarshalJSON() ([]byte, error)

func (Time) OpenAPISchemaFormat

func (_ Time) OpenAPISchemaFormat() string

func (Time) OpenAPISchemaType

func (_ Time) OpenAPISchemaType() []string

func (Time) ToUnstructured

func (t Time) ToUnstructured() interface{}

ToUnstructured implement value.UnstructuredConverter to make k8s happy? Dunno if I really need this.

func (*Time) UnmarshalJSON

func (t *Time) UnmarshalJSON(data []byte) error

type ToolCall

type ToolCall struct {
	Name        string            `json:"name,omitempty"`
	Description string            `json:"description,omitempty"`
	Input       string            `json:"input,omitempty"`
	Output      string            `json:"output,omitempty"`
	Metadata    map[string]string `json:"metadata,omitempty"`
}

func (*ToolCall) DeepCopy

func (in *ToolCall) DeepCopy() *ToolCall

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ToolCall.

func (*ToolCall) DeepCopyInto

func (in *ToolCall) DeepCopyInto(out *ToolCall)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ToolInput

type ToolInput struct {
	Name        string            `json:"name,omitempty"`
	Description string            `json:"description,omitempty"`
	Input       string            `json:"input,omitempty"`
	Metadata    map[string]string `json:"metadata,omitempty"`
}

func (*ToolInput) DeepCopy

func (in *ToolInput) DeepCopy() *ToolInput

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ToolInput.

func (*ToolInput) DeepCopyInto

func (in *ToolInput) DeepCopyInto(out *ToolInput)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ToolReference

type ToolReference struct {
	Metadata
	ToolReferenceManifest
	Resolved    bool              `json:"resolved,omitempty"`
	Error       string            `json:"error,omitempty"`
	Builtin     bool              `json:"builtin,omitempty"`
	Description string            `json:"description,omitempty"`
	Credential  string            `json:"credential,omitempty"`
	Params      map[string]string `json:"params,omitempty"`
}

func (*ToolReference) DeepCopy

func (in *ToolReference) DeepCopy() *ToolReference

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ToolReference.

func (*ToolReference) DeepCopyInto

func (in *ToolReference) DeepCopyInto(out *ToolReference)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ToolReferenceList

type ToolReferenceList List[ToolReference]

func (*ToolReferenceList) DeepCopy

func (in *ToolReferenceList) DeepCopy() *ToolReferenceList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ToolReferenceList.

func (*ToolReferenceList) DeepCopyInto

func (in *ToolReferenceList) DeepCopyInto(out *ToolReferenceList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ToolReferenceManifest

type ToolReferenceManifest struct {
	Name      string            `json:"name"`
	ToolType  ToolReferenceType `json:"toolType"`
	Reference string            `json:"reference,omitempty"`
	Active    bool              `json:"active,omitempty"`
}

func (*ToolReferenceManifest) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ToolReferenceManifest.

func (*ToolReferenceManifest) DeepCopyInto

func (in *ToolReferenceManifest) DeepCopyInto(out *ToolReferenceManifest)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ToolReferenceType

type ToolReferenceType string
const (
	ToolReferenceTypeTool                    ToolReferenceType = "tool"
	ToolReferenceTypeStepTemplate            ToolReferenceType = "stepTemplate"
	ToolReferenceTypeKnowledgeDataSource     ToolReferenceType = "knowledgeDataSource"
	ToolReferenceTypeKnowledgeDocumentLoader ToolReferenceType = "knowledgeDocumentLoader"
	ToolReferenceTypeSystem                  ToolReferenceType = "system"
	ToolReferenceTypeModelProvider           ToolReferenceType = "modelProvider"
)

type User

type User struct {
	Metadata
	Username string `json:"username,omitempty"`
	Role     Role   `json:"role,omitempty"`
	Email    string `json:"email,omitempty"`
	IconURL  string `json:"iconURL,omitempty"`
}

func (*User) DeepCopy

func (in *User) DeepCopy() *User

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new User.

func (*User) DeepCopyInto

func (in *User) DeepCopyInto(out *User)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type UserList

type UserList List[User]

func (*UserList) DeepCopy

func (in *UserList) DeepCopy() *UserList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserList.

func (*UserList) DeepCopyInto

func (in *UserList) DeepCopyInto(out *UserList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Webhook

type Webhook struct {
	Metadata
	WebhookManifest
	AliasAssigned              *bool `json:"aliasAssigned,omitempty"`
	LastSuccessfulRunCompleted *Time `json:"lastSuccessfulRunCompleted,omitempty"`
	HasToken                   bool  `json:"hasToken,omitempty"`
}

func (*Webhook) DeepCopy

func (in *Webhook) DeepCopy() *Webhook

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Webhook.

func (*Webhook) DeepCopyInto

func (in *Webhook) DeepCopyInto(out *Webhook)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type WebhookList

type WebhookList List[Webhook]

func (*WebhookList) DeepCopy

func (in *WebhookList) DeepCopy() *WebhookList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookList.

func (*WebhookList) DeepCopyInto

func (in *WebhookList) DeepCopyInto(out *WebhookList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type WebhookManifest

type WebhookManifest struct {
	Name             string   `json:"name"`
	Description      string   `json:"description"`
	Alias            string   `json:"alias"`
	Workflow         string   `json:"workflow"`
	Headers          []string `json:"headers"`
	Secret           string   `json:"secret"`
	ValidationHeader string   `json:"validationHeader"`
}

func (*WebhookManifest) DeepCopy

func (in *WebhookManifest) DeepCopy() *WebhookManifest

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookManifest.

func (*WebhookManifest) DeepCopyInto

func (in *WebhookManifest) DeepCopyInto(out *WebhookManifest)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type WebsiteCrawlingConfig

type WebsiteCrawlingConfig struct {
	URLs []string `json:"urls,omitempty"`
}

func (*WebsiteCrawlingConfig) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebsiteCrawlingConfig.

func (*WebsiteCrawlingConfig) DeepCopyInto

func (in *WebsiteCrawlingConfig) DeepCopyInto(out *WebsiteCrawlingConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type While

type While struct {
	Condition string `json:"condition,omitempty"`
	MaxLoops  int    `json:"maxLoops,omitempty"`
	Steps     []Step `json:"steps,omitempty"`
}

func (*While) DeepCopy

func (in *While) DeepCopy() *While

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new While.

func (*While) DeepCopyInto

func (in *While) DeepCopyInto(out *While)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Workflow

type Workflow struct {
	Metadata
	WorkflowManifest
	AliasAssigned      *bool                              `json:"aliasAssigned,omitempty"`
	AuthStatus         map[string]OAuthAppLoginAuthStatus `json:"authStatus,omitempty"`
	TextEmbeddingModel string                             `json:"textEmbeddingModel,omitempty"`
}

func (*Workflow) DeepCopy

func (in *Workflow) DeepCopy() *Workflow

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Workflow.

func (*Workflow) DeepCopyInto

func (in *Workflow) DeepCopyInto(out *Workflow)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type WorkflowCall

type WorkflowCall struct {
	Name        string `json:"name,omitempty"`
	Description string `json:"description,omitempty"`
	ThreadID    string `json:"threadID,omitempty"`
	WorkflowID  string `json:"workflowID,omitempty"`
	Input       string `json:"input,omitempty"`
}

func (*WorkflowCall) DeepCopy

func (in *WorkflowCall) DeepCopy() *WorkflowCall

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkflowCall.

func (*WorkflowCall) DeepCopyInto

func (in *WorkflowCall) DeepCopyInto(out *WorkflowCall)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type WorkflowExecution

type WorkflowExecution struct {
	Metadata
	Workflow  WorkflowManifest `json:"workflow,omitempty"`
	StartTime Time             `json:"startTime"`
	EndTime   *Time            `json:"endTime"`
	Input     string           `json:"input"`
	Error     string           `json:"error,omitempty"`
}

func (*WorkflowExecution) DeepCopy

func (in *WorkflowExecution) DeepCopy() *WorkflowExecution

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkflowExecution.

func (*WorkflowExecution) DeepCopyInto

func (in *WorkflowExecution) DeepCopyInto(out *WorkflowExecution)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type WorkflowExecutionList

type WorkflowExecutionList List[WorkflowExecution]

func (*WorkflowExecutionList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkflowExecutionList.

func (*WorkflowExecutionList) DeepCopyInto

func (in *WorkflowExecutionList) DeepCopyInto(out *WorkflowExecutionList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type WorkflowList

type WorkflowList List[Workflow]

func (*WorkflowList) DeepCopy

func (in *WorkflowList) DeepCopy() *WorkflowList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkflowList.

func (*WorkflowList) DeepCopyInto

func (in *WorkflowList) DeepCopyInto(out *WorkflowList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type WorkflowManifest

type WorkflowManifest struct {
	AgentManifest `json:",inline"`
	Steps         []Step `json:"steps"`
	Output        string `json:"output"`
}

func (*WorkflowManifest) DeepCopy

func (in *WorkflowManifest) DeepCopy() *WorkflowManifest

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkflowManifest.

func (*WorkflowManifest) DeepCopyInto

func (in *WorkflowManifest) DeepCopyInto(out *WorkflowManifest)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type WorkflowState

type WorkflowState string
const (
	WorkflowStatePending  WorkflowState = "Pending"
	WorkflowStateRunning  WorkflowState = "Running"
	WorkflowStateError    WorkflowState = "Error"
	WorkflowStateComplete WorkflowState = "Complete"
	WorkflowStateSubCall  WorkflowState = "SubCall"
	WorkflowStateBlocked  WorkflowState = "Blocked"
)

func (WorkflowState) IsBlocked

func (in WorkflowState) IsBlocked() bool

func (WorkflowState) IsTerminal

func (in WorkflowState) IsTerminal() bool

Jump to

Keyboard shortcuts

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