Documentation
¶
Index ¶
Constants ¶
View Source
const ( StateIdle = base.StateIdle StateProcessing = base.StateProcessing StateStopped = base.StateStopped )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachment ¶
type Attachment = base.Attachment
type CallbackInput ¶
type CallbackInput = base.CallbackInput
type GmailConfig ¶
type GmailConfig = publicgmail.Config
type Hooker ¶
type Hooker interface {
Start(ctx context.Context) error
Stop(ctx context.Context) error
State() State
}
func NewHooker ¶
func NewHooker(cfg HookerConfig) (Hooker, error)
func NewOpenAIHooker ¶
func NewOpenAIHooker(cfg OpenAIHookerConfig) (Hooker, error)
type HookerConfig ¶
type HookerConfig struct {
Scheduler interfaces.Scheduler
EmailFetcher interfaces.EmailFetcher
LLMParser interfaces.LLMParser
Rules []Rule
ParseTimeout time.Duration
CallbackTimeout time.Duration
Debug bool
Logger *log.Logger
}
type OpenAIConfig ¶
type OpenAIConfig = publicparser.OpenAIConfig
type OpenAIHookerConfig ¶
Click to show internal directories.
Click to hide internal directories.