Documentation
¶
Overview ¶
Package brain provides intent detection and routing for user messages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddCronJobIntent ¶
type AddCronJobIntent struct {
CronExpr string
Prompt string
WorkDir string
Type cron.JobType
TimeoutMins int
Enabled bool
}
AddCronJobIntent represents a detected request to add a new cron job.
type DeleteCronJobIntent ¶
type DeleteCronJobIntent struct {
JobID string
}
DeleteCronJobIntent represents a detected request to delete a cron job.
type Intent ¶
type Intent interface {
// contains filtered or unexported methods
}
Intent is the interface implemented by all intent types.
func DetectCronIntent ¶
DetectCronIntent returns an intent if the message contains a cron-related request.
type PauseCronJobIntent ¶
type PauseCronJobIntent struct {
JobID string
}
PauseCronJobIntent represents a detected request to pause a cron job.
type ResumeCronJobIntent ¶
type ResumeCronJobIntent struct {
JobID string
}
ResumeCronJobIntent represents a detected request to resume a cron job.
Click to show internal directories.
Click to hide internal directories.