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 ¶
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.
Click to show internal directories.
Click to hide internal directories.