automation

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package automation provides shared interfaces for the automation subsystem (cron, background, workflow). Domain packages import these interfaces instead of defining their own, eliminating duplication and ensuring contract consistency.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectChannelFromContext

func DetectChannelFromContext(ctx context.Context) string

DetectChannelFromContext extracts the delivery target from the session key in context. Returns "channel:targetID" (e.g. "telegram:123456789") or "" if no known channel prefix is found.

Types

type AgentRunner

type AgentRunner interface {
	Run(ctx context.Context, sessionKey string, prompt string) (string, error)
}

AgentRunner executes agent prompts. The app layer provides a concrete implementation that delegates to the orchestration pipeline; automation subsystems depend only on this interface to avoid import cycles.

type ChannelSender

type ChannelSender interface {
	SendMessage(ctx context.Context, channel string, message string) error
}

ChannelSender sends results to communication channels (e.g. Telegram, Discord, Slack).

Jump to

Keyboard shortcuts

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