brain

package
v0.35.2 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: MIT Imports: 3 Imported by: 0

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

func DetectCronIntent(msg string) (Intent, bool)

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.

Jump to

Keyboard shortcuts

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