Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bot ¶
type Bot struct {
// contains filtered or unexported fields
}
Bot wraps a Feishu bot with agent pool integration.
func New ¶
func New(cfg Config, pm *agent.PoolManager, store config.Store, listFn ModelListFunc, switchFn ModelSwitchFunc, opts ...BotOption) (*Bot, error)
New creates a Feishu bot. Call Start to begin receiving events.
func (*Bot) Notify ¶
Notify sends a notification message. Implements channel.Backend. Supports both chat IDs (oc_ prefix) and user open IDs (ou_ prefix).
type Config ¶
type Config struct {
AppID string // app ID
AppSecret string // app secret
EncryptKey string // event encrypt key (from Feishu developer console)
VerificationToken string // event verification token (from Feishu developer console)
NotifyChat string // default chat ID for proactive notifications
GroupMode string // "mention" | "always" | "disabled"
AllowedIDs []string // user open_ids allowed (empty = allow all)
}
Config holds Feishu bot settings.
type ModelListFunc ¶
type ModelListFunc = channel.ModelListFunc
ModelListFunc re-exports channel.ModelListFunc for use by callers.
type ModelOption ¶
type ModelOption = channel.ModelOption
ModelOption re-exports channel.ModelOption for use by callers.
type ModelSwitchFunc ¶
type ModelSwitchFunc = channel.ModelSwitchFunc
ModelSwitchFunc re-exports channel.ModelSwitchFunc for use by callers.
Click to show internal directories.
Click to hide internal directories.