Documentation ¶
Index ¶
- Constants
- func DeleteCredential(req api.Context) error
- func ListCredentials(req api.Context) error
- func MetadataFrom(obj kclient.Object, linkKV ...string) types.Metadata
- type AgentHandler
- func (a *AgentHandler) ApproveKnowledgeFile(req api.Context) error
- func (a *AgentHandler) ByID(req api.Context) error
- func (a *AgentHandler) Create(req api.Context) error
- func (a *AgentHandler) CreateKnowledgeSource(req api.Context) error
- func (a *AgentHandler) Delete(req api.Context) error
- func (a *AgentHandler) DeleteFile(req api.Context) error
- func (a *AgentHandler) DeleteKnowledgeFile(req api.Context) error
- func (a *AgentHandler) DeleteKnowledgeSource(req api.Context) error
- func (a *AgentHandler) EnsureCredentialForKnowledgeSource(req api.Context) error
- func (a *AgentHandler) List(req api.Context) error
- func (a *AgentHandler) ListFiles(req api.Context) error
- func (a *AgentHandler) ListKnowledgeFiles(req api.Context) error
- func (a *AgentHandler) ListKnowledgeSources(req api.Context) error
- func (a *AgentHandler) ReIngestKnowledgeFile(req api.Context) error
- func (a *AgentHandler) ReSyncKnowledgeSource(req api.Context) error
- func (a *AgentHandler) Script(req api.Context) error
- func (a *AgentHandler) Update(req api.Context) error
- func (a *AgentHandler) UpdateKnowledgeSource(req api.Context) error
- func (a *AgentHandler) UploadFile(req api.Context) error
- func (a *AgentHandler) UploadKnowledgeFile(req api.Context) error
- type AssistantHandler
- func (a *AssistantHandler) Abort(req api.Context) error
- func (a *AssistantHandler) AddTool(req api.Context) error
- func (a *AssistantHandler) DeleteCredential(req api.Context) error
- func (a *AssistantHandler) DeleteFile(req api.Context) error
- func (a *AssistantHandler) DeleteKnowledge(req api.Context) error
- func (a *AssistantHandler) Events(req api.Context) error
- func (a *AssistantHandler) Files(req api.Context) error
- func (a *AssistantHandler) GetFile(req api.Context) error
- func (a *AssistantHandler) Invoke(req api.Context) error
- func (a *AssistantHandler) Knowledge(req api.Context) error
- func (a *AssistantHandler) List(req api.Context) error
- func (a *AssistantHandler) ListCredentials(req api.Context) error
- func (a *AssistantHandler) RemoveTool(req api.Context) error
- func (a *AssistantHandler) Tools(req api.Context) error
- func (a *AssistantHandler) UploadFile(req api.Context) error
- func (a *AssistantHandler) UploadKnowledge(req api.Context) error
- type AvailableModelsHandler
- type CronJobHandler
- func (a *CronJobHandler) ByID(req api.Context) error
- func (a *CronJobHandler) Create(req api.Context) error
- func (a *CronJobHandler) Delete(req api.Context) error
- func (a *CronJobHandler) Execute(req api.Context) error
- func (a *CronJobHandler) List(req api.Context) error
- func (a *CronJobHandler) Update(req api.Context) error
- type DefaultModelAliasHandler
- func (d *DefaultModelAliasHandler) Create(req api.Context) error
- func (d *DefaultModelAliasHandler) Delete(req api.Context) error
- func (d *DefaultModelAliasHandler) GetByID(req api.Context) error
- func (d *DefaultModelAliasHandler) List(req api.Context) error
- func (d *DefaultModelAliasHandler) Update(req api.Context) error
- type EmailReceiverHandler
- func (e *EmailReceiverHandler) ByID(req api.Context) error
- func (e *EmailReceiverHandler) Create(req api.Context) error
- func (e *EmailReceiverHandler) Delete(req api.Context) error
- func (e *EmailReceiverHandler) List(req api.Context) error
- func (e *EmailReceiverHandler) Update(req api.Context) error
- type InvokeHandler
- type ModelHandler
- type ModelProviderHandler
- func (mp *ModelProviderHandler) ByID(req api.Context) error
- func (mp *ModelProviderHandler) Configure(req api.Context) error
- func (mp *ModelProviderHandler) List(req api.Context) error
- func (mp *ModelProviderHandler) RefreshModels(req api.Context) error
- func (mp *ModelProviderHandler) Reveal(req api.Context) error
- type PromptHandler
- type RunHandler
- type TaskHandler
- func (t *TaskHandler) Abort(req api.Context) error
- func (t *TaskHandler) Create(req api.Context) error
- func (t *TaskHandler) Delete(req api.Context) error
- func (t *TaskHandler) DeleteRun(req api.Context) error
- func (t *TaskHandler) Events(req api.Context) error
- func (t *TaskHandler) Get(req api.Context) error
- func (t *TaskHandler) List(req api.Context) error
- func (t *TaskHandler) ListRuns(req api.Context) error
- func (t *TaskHandler) Run(req api.Context) error
- func (t *TaskHandler) Update(req api.Context) error
- type ThreadHandler
- func (a *ThreadHandler) Abort(req api.Context) error
- func (a *ThreadHandler) ByID(req api.Context) error
- func (a *ThreadHandler) Delete(req api.Context) error
- func (a *ThreadHandler) DeleteFile(req api.Context) error
- func (a *ThreadHandler) DeleteKnowledge(req api.Context) error
- func (a *ThreadHandler) Events(req api.Context) error
- func (a *ThreadHandler) Files(req api.Context) error
- func (a *ThreadHandler) GetFile(req api.Context) error
- func (a *ThreadHandler) Knowledge(req api.Context) error
- func (a *ThreadHandler) List(req api.Context) error
- func (a *ThreadHandler) Update(req api.Context) error
- func (a *ThreadHandler) UploadFile(req api.Context) error
- func (a *ThreadHandler) UploadKnowledge(req api.Context) error
- type ToolReferenceHandler
- func (a *ToolReferenceHandler) ByID(req api.Context) error
- func (a *ToolReferenceHandler) Create(req api.Context) (err error)
- func (a *ToolReferenceHandler) Delete(req api.Context) error
- func (a *ToolReferenceHandler) List(req api.Context) error
- func (a *ToolReferenceHandler) Update(req api.Context) error
- type VersionHandler
- type WebhookHandler
- func (a *WebhookHandler) ByID(req api.Context) error
- func (a *WebhookHandler) Create(req api.Context) error
- func (a *WebhookHandler) Delete(req api.Context) error
- func (a *WebhookHandler) Execute(req api.Context) error
- func (a *WebhookHandler) List(req api.Context) error
- func (a *WebhookHandler) RemoveToken(req api.Context) error
- func (a *WebhookHandler) Update(req api.Context) error
- type WorkflowHandler
- func (a *WorkflowHandler) Authenticate(req api.Context) error
- func (a *WorkflowHandler) ByID(req api.Context) error
- func (a *WorkflowHandler) Create(req api.Context) error
- func (a *WorkflowHandler) Delete(req api.Context) error
- func (a *WorkflowHandler) EnsureCredentialForKnowledgeSource(req api.Context) error
- func (a *WorkflowHandler) List(req api.Context) error
- func (a *WorkflowHandler) Script(req api.Context) error
- func (a *WorkflowHandler) Update(req api.Context) error
Constants ¶
View Source
const ( WebhookTokenHTTPHeader = "X-Otto8-Webhook-Token" WebhookTokenQueryParam = "token" )
View Source
const DefaultMaxUserThreadTools = 5
Variables ¶
This section is empty.
Functions ¶
func DeleteCredential ¶
func ListCredentials ¶
Types ¶
type AgentHandler ¶
type AgentHandler struct {
// contains filtered or unexported fields
}
func NewAgentHandler ¶
func NewAgentHandler(gClient *gptscript.GPTScript, serverURL string) *AgentHandler
func (*AgentHandler) ApproveKnowledgeFile ¶
func (a *AgentHandler) ApproveKnowledgeFile(req api.Context) error
func (*AgentHandler) CreateKnowledgeSource ¶
func (a *AgentHandler) CreateKnowledgeSource(req api.Context) error
func (*AgentHandler) DeleteFile ¶
func (a *AgentHandler) DeleteFile(req api.Context) error
func (*AgentHandler) DeleteKnowledgeFile ¶
func (a *AgentHandler) DeleteKnowledgeFile(req api.Context) error
func (*AgentHandler) DeleteKnowledgeSource ¶
func (a *AgentHandler) DeleteKnowledgeSource(req api.Context) error
func (*AgentHandler) EnsureCredentialForKnowledgeSource ¶
func (a *AgentHandler) EnsureCredentialForKnowledgeSource(req api.Context) error
func (*AgentHandler) ListKnowledgeFiles ¶
func (a *AgentHandler) ListKnowledgeFiles(req api.Context) error
func (*AgentHandler) ListKnowledgeSources ¶
func (a *AgentHandler) ListKnowledgeSources(req api.Context) error
func (*AgentHandler) ReIngestKnowledgeFile ¶
func (a *AgentHandler) ReIngestKnowledgeFile(req api.Context) error
func (*AgentHandler) ReSyncKnowledgeSource ¶
func (a *AgentHandler) ReSyncKnowledgeSource(req api.Context) error
func (*AgentHandler) UpdateKnowledgeSource ¶
func (a *AgentHandler) UpdateKnowledgeSource(req api.Context) error
func (*AgentHandler) UploadFile ¶
func (a *AgentHandler) UploadFile(req api.Context) error
func (*AgentHandler) UploadKnowledgeFile ¶
func (a *AgentHandler) UploadKnowledgeFile(req api.Context) error
type AssistantHandler ¶
type AssistantHandler struct {
// contains filtered or unexported fields
}
func NewAssistantHandler ¶
func NewAssistantHandler(invoker *invoke.Invoker, events *events.Emitter, gptScript *gptscript.GPTScript) *AssistantHandler
func (*AssistantHandler) Abort ¶ added in v0.3.0
func (a *AssistantHandler) Abort(req api.Context) error
func (*AssistantHandler) DeleteCredential ¶ added in v0.2.0
func (a *AssistantHandler) DeleteCredential(req api.Context) error
func (*AssistantHandler) DeleteFile ¶
func (a *AssistantHandler) DeleteFile(req api.Context) error
func (*AssistantHandler) DeleteKnowledge ¶
func (a *AssistantHandler) DeleteKnowledge(req api.Context) error
func (*AssistantHandler) ListCredentials ¶ added in v0.2.0
func (a *AssistantHandler) ListCredentials(req api.Context) error
func (*AssistantHandler) RemoveTool ¶
func (a *AssistantHandler) RemoveTool(req api.Context) error
func (*AssistantHandler) UploadFile ¶
func (a *AssistantHandler) UploadFile(req api.Context) error
func (*AssistantHandler) UploadKnowledge ¶
func (a *AssistantHandler) UploadKnowledge(req api.Context) error
type AvailableModelsHandler ¶ added in v0.3.0
type AvailableModelsHandler struct {
// contains filtered or unexported fields
}
func NewAvailableModelsHandler ¶ added in v0.3.0
func NewAvailableModelsHandler(gClient *gptscript.GPTScript, dispatcher *dispatcher.Dispatcher) *AvailableModelsHandler
func (*AvailableModelsHandler) List ¶ added in v0.3.0
func (a *AvailableModelsHandler) List(req api.Context) error
func (*AvailableModelsHandler) ListForModelProvider ¶ added in v0.3.0
func (a *AvailableModelsHandler) ListForModelProvider(req api.Context) error
type CronJobHandler ¶
type CronJobHandler struct{}
func NewCronJobHandler ¶
func NewCronJobHandler() *CronJobHandler
type DefaultModelAliasHandler ¶ added in v0.2.0
type DefaultModelAliasHandler struct{}
func NewDefaultModelAliasHandler ¶ added in v0.2.0
func NewDefaultModelAliasHandler() *DefaultModelAliasHandler
func (*DefaultModelAliasHandler) Create ¶ added in v0.2.0
func (d *DefaultModelAliasHandler) Create(req api.Context) error
func (*DefaultModelAliasHandler) Delete ¶ added in v0.2.0
func (d *DefaultModelAliasHandler) Delete(req api.Context) error
func (*DefaultModelAliasHandler) GetByID ¶ added in v0.2.0
func (d *DefaultModelAliasHandler) GetByID(req api.Context) error
type EmailReceiverHandler ¶ added in v0.2.0
type EmailReceiverHandler struct {
// contains filtered or unexported fields
}
func NewEmailReceiverHandler ¶ added in v0.2.0
func NewEmailReceiverHandler(hostname string) *EmailReceiverHandler
func (*EmailReceiverHandler) ByID ¶ added in v0.2.0
func (e *EmailReceiverHandler) ByID(req api.Context) error
func (*EmailReceiverHandler) Create ¶ added in v0.2.0
func (e *EmailReceiverHandler) Create(req api.Context) error
func (*EmailReceiverHandler) Delete ¶ added in v0.2.0
func (e *EmailReceiverHandler) Delete(req api.Context) error
type InvokeHandler ¶
type InvokeHandler struct {
// contains filtered or unexported fields
}
func NewInvokeHandler ¶
func NewInvokeHandler(invoker *invoke.Invoker) *InvokeHandler
type ModelHandler ¶
type ModelHandler struct{}
func NewModelHandler ¶
func NewModelHandler() *ModelHandler
type ModelProviderHandler ¶ added in v0.3.0
type ModelProviderHandler struct {
// contains filtered or unexported fields
}
func NewModelProviderHandler ¶ added in v0.3.0
func NewModelProviderHandler(gClient *gptscript.GPTScript, dispatcher *dispatcher.Dispatcher) *ModelProviderHandler
func (*ModelProviderHandler) ByID ¶ added in v0.3.0
func (mp *ModelProviderHandler) ByID(req api.Context) error
func (*ModelProviderHandler) Configure ¶ added in v0.3.0
func (mp *ModelProviderHandler) Configure(req api.Context) error
func (*ModelProviderHandler) List ¶ added in v0.3.0
func (mp *ModelProviderHandler) List(req api.Context) error
func (*ModelProviderHandler) RefreshModels ¶ added in v0.3.0
func (mp *ModelProviderHandler) RefreshModels(req api.Context) error
type PromptHandler ¶
type PromptHandler struct {
// contains filtered or unexported fields
}
func NewPromptHandler ¶
func NewPromptHandler(gClient *gptscript.GPTScript) *PromptHandler
type RunHandler ¶
type RunHandler struct {
// contains filtered or unexported fields
}
func NewRunHandler ¶
func NewRunHandler(events *events.Emitter) *RunHandler
type TaskHandler ¶ added in v0.2.0
type TaskHandler struct {
// contains filtered or unexported fields
}
func NewTaskHandler ¶ added in v0.2.0
func NewTaskHandler(invoker *invoke.Invoker, events *events.Emitter) *TaskHandler
func (*TaskHandler) DeleteRun ¶ added in v0.3.0
func (t *TaskHandler) DeleteRun(req api.Context) error
type ThreadHandler ¶
type ThreadHandler struct {
// contains filtered or unexported fields
}
func NewThreadHandler ¶
func NewThreadHandler(gClient *gptscript.GPTScript, events *events.Emitter) *ThreadHandler
func (*ThreadHandler) DeleteFile ¶
func (a *ThreadHandler) DeleteFile(req api.Context) error
func (*ThreadHandler) DeleteKnowledge ¶
func (a *ThreadHandler) DeleteKnowledge(req api.Context) error
func (*ThreadHandler) UploadFile ¶
func (a *ThreadHandler) UploadFile(req api.Context) error
func (*ThreadHandler) UploadKnowledge ¶
func (a *ThreadHandler) UploadKnowledge(req api.Context) error
type ToolReferenceHandler ¶
type ToolReferenceHandler struct {
// contains filtered or unexported fields
}
func NewToolReferenceHandler ¶
func NewToolReferenceHandler(gClient *gptscript.GPTScript) *ToolReferenceHandler
type VersionHandler ¶ added in v0.3.0
type VersionHandler struct {
// contains filtered or unexported fields
}
func NewVersionHandler ¶ added in v0.3.0
func NewVersionHandler(emailDomain string) *VersionHandler
func (*VersionHandler) GetVersion ¶ added in v0.3.0
func (v *VersionHandler) GetVersion(req api.Context) error
type WebhookHandler ¶
type WebhookHandler struct{}
func NewWebhookHandler ¶
func NewWebhookHandler() *WebhookHandler
func (*WebhookHandler) RemoveToken ¶ added in v0.2.0
func (a *WebhookHandler) RemoveToken(req api.Context) error
type WorkflowHandler ¶
type WorkflowHandler struct {
// contains filtered or unexported fields
}
func NewWorkflowHandler ¶
func NewWorkflowHandler(gClient *gptscript.GPTScript, serverURL string, invoker *invoke.Invoker) *WorkflowHandler
func (*WorkflowHandler) Authenticate ¶
func (a *WorkflowHandler) Authenticate(req api.Context) error
func (*WorkflowHandler) EnsureCredentialForKnowledgeSource ¶ added in v0.2.0
func (a *WorkflowHandler) EnsureCredentialForKnowledgeSource(req api.Context) error
Click to show internal directories.
Click to hide internal directories.