Documentation
¶
Overview ¶
Package calendarauto registers confirmed future appointments from new communications.
Index ¶
Constants ¶
const MaxContentRunes = 24000
const MinimumConfidence = 0.9
Variables ¶
var ErrCalendarConflict = errors.New("calendar automation: ambiguous overlapping event")
Functions ¶
This section is empty.
Types ¶
type Evaluator ¶
type Evaluator struct {
// contains filtered or unexported fields
}
func NewEvaluator ¶
func NewEvaluator(j JevClassifier, l llm.Completer) *Evaluator
type GoogleWriter ¶
type GoogleWriter struct {
// contains filtered or unexported fields
}
GoogleWriter uses a separate write-scoped credential from the read collector. Refresh tokens are read from a private read-only mount; access tokens stay in memory.
func NewGoogleWriter ¶
func NewGoogleWriter(ctx context.Context, credentialsPath, tokenPath, calendarID string) (*GoogleWriter, error)
func (*GoogleWriter) EnsureEvent ¶
type JevClassifier ¶
type Store ¶
type Store interface {
Initialize(context.Context) (time.Time, error)
AcquireLock(context.Context) (release func(), acquired bool, err error)
ListJobs(context.Context, time.Time, int) ([]Job, error)
SaveDecision(context.Context, uuid.UUID, Decision) error
SaveEvent(context.Context, uuid.UUID, Event) error
Finish(context.Context, uuid.UUID, string, string) error
Retry(context.Context, uuid.UUID, string) error
}