handlers

package
v0.1.0-rc3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	PasswordHTTPHeader = "X-Otto8-Webhook-Password"
	PasswordQueryParam = "webhookPassword"
)
View Source
const DefaultMaxUserThreadTools = 5

Variables

This section is empty.

Functions

func DeleteCredential

func DeleteCredential(req api.Context) error

func GetVersion

func GetVersion(req api.Context) error

func ListCredentials

func ListCredentials(req api.Context) error

func MetadataFrom

func MetadataFrom(obj kclient.Object, linkKV ...string) types.Metadata

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) ByID

func (a *AgentHandler) ByID(req api.Context) error

func (*AgentHandler) Create

func (a *AgentHandler) Create(req api.Context) error

func (*AgentHandler) CreateKnowledgeSource

func (a *AgentHandler) CreateKnowledgeSource(req api.Context) error

func (*AgentHandler) Delete

func (a *AgentHandler) Delete(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) List

func (a *AgentHandler) List(req api.Context) error

func (*AgentHandler) ListFiles

func (a *AgentHandler) ListFiles(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) Script

func (a *AgentHandler) Script(req api.Context) error

func (*AgentHandler) Update

func (a *AgentHandler) Update(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) AddTool

func (a *AssistantHandler) AddTool(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) Events

func (a *AssistantHandler) Events(req api.Context) error

func (*AssistantHandler) Files

func (a *AssistantHandler) Files(req api.Context) error

func (*AssistantHandler) GetFile

func (a *AssistantHandler) GetFile(req api.Context) error

func (*AssistantHandler) Invoke

func (a *AssistantHandler) Invoke(req api.Context) error

func (*AssistantHandler) Knowledge

func (a *AssistantHandler) Knowledge(req api.Context) error

func (*AssistantHandler) List

func (a *AssistantHandler) List(req api.Context) error

func (*AssistantHandler) RemoveTool

func (a *AssistantHandler) RemoveTool(req api.Context) error

func (*AssistantHandler) Tools

func (a *AssistantHandler) Tools(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 CronJobHandler

type CronJobHandler struct{}

func NewCronJobHandler

func NewCronJobHandler() *CronJobHandler

func (*CronJobHandler) ByID

func (a *CronJobHandler) ByID(req api.Context) error

func (*CronJobHandler) Create

func (a *CronJobHandler) Create(req api.Context) error

func (*CronJobHandler) Delete

func (a *CronJobHandler) Delete(req api.Context) error

func (*CronJobHandler) Execute

func (a *CronJobHandler) Execute(req api.Context) error

func (*CronJobHandler) List

func (a *CronJobHandler) List(req api.Context) error

func (*CronJobHandler) Update

func (a *CronJobHandler) Update(req api.Context) error

type InvokeHandler

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

func NewInvokeHandler

func NewInvokeHandler(invoker *invoke.Invoker) *InvokeHandler

func (*InvokeHandler) Invoke

func (i *InvokeHandler) Invoke(req api.Context) error

type ModelHandler

type ModelHandler struct{}

func NewModelHandler

func NewModelHandler() *ModelHandler

func (*ModelHandler) ByID

func (a *ModelHandler) ByID(req api.Context) error

func (*ModelHandler) Create

func (a *ModelHandler) Create(req api.Context) error

func (*ModelHandler) Delete

func (a *ModelHandler) Delete(req api.Context) error

func (*ModelHandler) List

func (a *ModelHandler) List(req api.Context) error

func (*ModelHandler) Update

func (a *ModelHandler) Update(req api.Context) error

type RunHandler

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

func NewRunHandler

func NewRunHandler(events *events.Emitter) *RunHandler

func (*RunHandler) ByID

func (a *RunHandler) ByID(req api.Context) error

func (*RunHandler) Debug

func (a *RunHandler) Debug(req api.Context) error

func (*RunHandler) Delete

func (a *RunHandler) Delete(req api.Context) error

func (*RunHandler) Events

func (a *RunHandler) Events(req api.Context) error

func (*RunHandler) List

func (a *RunHandler) List(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) ByID

func (a *ThreadHandler) ByID(req api.Context) error

func (*ThreadHandler) Delete

func (a *ThreadHandler) Delete(req api.Context) error

func (*ThreadHandler) DeleteFile

func (a *ThreadHandler) DeleteFile(req api.Context) error

func (*ThreadHandler) DeleteKnowledge

func (a *ThreadHandler) DeleteKnowledge(req api.Context) error

func (*ThreadHandler) Events

func (a *ThreadHandler) Events(req api.Context) error

func (*ThreadHandler) Files

func (a *ThreadHandler) Files(req api.Context) error

func (*ThreadHandler) GetFile

func (a *ThreadHandler) GetFile(req api.Context) error

func (*ThreadHandler) Knowledge

func (a *ThreadHandler) Knowledge(req api.Context) error

func (*ThreadHandler) List

func (a *ThreadHandler) List(req api.Context) error

func (*ThreadHandler) Update

func (a *ThreadHandler) Update(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{}

func NewToolReferenceHandler

func NewToolReferenceHandler() *ToolReferenceHandler

func (*ToolReferenceHandler) ByID

func (a *ToolReferenceHandler) ByID(req api.Context) error

func (*ToolReferenceHandler) Create

func (a *ToolReferenceHandler) Create(req api.Context) (err error)

func (*ToolReferenceHandler) Delete

func (a *ToolReferenceHandler) Delete(req api.Context) error

func (*ToolReferenceHandler) List

func (a *ToolReferenceHandler) List(req api.Context) error

func (*ToolReferenceHandler) Update

func (a *ToolReferenceHandler) Update(req api.Context) error

type WebhookHandler

type WebhookHandler struct{}

func NewWebhookHandler

func NewWebhookHandler() *WebhookHandler

func (*WebhookHandler) ByID

func (a *WebhookHandler) ByID(req api.Context) error

func (*WebhookHandler) Create

func (a *WebhookHandler) Create(req api.Context) error

func (*WebhookHandler) Delete

func (a *WebhookHandler) Delete(req api.Context) error

func (*WebhookHandler) Execute

func (a *WebhookHandler) Execute(req api.Context) error

func (*WebhookHandler) List

func (a *WebhookHandler) List(req api.Context) error

func (*WebhookHandler) Update

func (a *WebhookHandler) Update(req api.Context) error

type WorkflowHandler

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

func NewWorkflowHandler

func NewWorkflowHandler(gClient *gptscript.GPTScript, serverURL string) *WorkflowHandler

func (*WorkflowHandler) ByID

func (a *WorkflowHandler) ByID(req api.Context) error

func (*WorkflowHandler) Create

func (a *WorkflowHandler) Create(req api.Context) error

func (*WorkflowHandler) Delete

func (a *WorkflowHandler) Delete(req api.Context) error

func (*WorkflowHandler) DeleteFile

func (a *WorkflowHandler) DeleteFile(req api.Context) error

func (*WorkflowHandler) Files

func (a *WorkflowHandler) Files(req api.Context) error

func (*WorkflowHandler) List

func (a *WorkflowHandler) List(req api.Context) error

func (*WorkflowHandler) Script

func (a *WorkflowHandler) Script(req api.Context) error

func (*WorkflowHandler) Update

func (a *WorkflowHandler) Update(req api.Context) error

func (*WorkflowHandler) UploadFile

func (a *WorkflowHandler) UploadFile(req api.Context) error

Jump to

Keyboard shortcuts

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