connectors

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: MIT Imports: 49 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiscordConfigMeta

func DiscordConfigMeta() []config.Field

func EmailConfigMeta

func EmailConfigMeta() []config.Field

func GithubIssueConfigMeta

func GithubIssueConfigMeta() []config.Field

GithubIssueConfigMeta returns the metadata for GitHub Issues connector configuration fields

func GithubPRConfigMeta

func GithubPRConfigMeta() []config.Field

GithubPRConfigMeta returns the metadata for GitHub PR connector configuration fields

func IRCConfigMeta

func IRCConfigMeta() []config.Field

IRCConfigMeta returns the metadata for IRC connector configuration fields

func MatrixConfigMeta

func MatrixConfigMeta() []config.Field

MatrixConfigMeta returns the metadata for Matrix connector configuration fields

func SlackConfigMeta

func SlackConfigMeta() []config.Field

SlackConfigMeta returns the metadata for Slack connector configuration fields

func TelegramConfigMeta

func TelegramConfigMeta() []config.Field

TelegramConfigMeta returns the metadata for Telegram connector configuration fields

func TwitterConfigMeta

func TwitterConfigMeta() []config.Field

TwitterConfigMeta returns the metadata for Twitter connector configuration fields

Types

type Discord

type Discord struct {
	// contains filtered or unexported fields
}

func NewDiscord

func NewDiscord(config map[string]string) *Discord

NewDiscord creates a new Discord connector with the given configuration - token: Discord token - defaultChannel: Discord channel to always answer even if not mentioned

func (*Discord) AgentReasoningCallback

func (d *Discord) AgentReasoningCallback() func(state types.ActionCurrentState) bool

func (*Discord) AgentResultCallback

func (d *Discord) AgentResultCallback() func(state types.ActionState)

func (*Discord) Start

func (d *Discord) Start(a *agent.Agent)

type Email

type Email struct {
	// contains filtered or unexported fields
}

func NewEmail

func NewEmail(config map[string]string) *Email

func (*Email) AgentReasoningCallback

func (e *Email) AgentReasoningCallback() func(state types.ActionCurrentState) bool

func (*Email) AgentResultCallback

func (e *Email) AgentResultCallback() func(state types.ActionState)

func (*Email) Start

func (e *Email) Start(a *agent.Agent)

type GithubIssues

type GithubIssues struct {
	// contains filtered or unexported fields
}

func NewGithubIssueWatcher

func NewGithubIssueWatcher(config map[string]string) *GithubIssues

NewGithubIssueWatcher creates a new GithubIssues connector with the given configuration - token: Github token - repository: Github repository name - owner: Github repository owner - replyIfNoReplies: If true, the bot will reply to issues with no comments

func (*GithubIssues) AgentReasoningCallback

func (g *GithubIssues) AgentReasoningCallback() func(state types.ActionCurrentState) bool

func (*GithubIssues) AgentResultCallback

func (g *GithubIssues) AgentResultCallback() func(state types.ActionState)

func (*GithubIssues) Start

func (g *GithubIssues) Start(a *agent.Agent)

type GithubPRs

type GithubPRs struct {
	// contains filtered or unexported fields
}

func NewGithubPRWatcher

func NewGithubPRWatcher(config map[string]string) *GithubPRs

NewGithubIssueWatcher creates a new GithubPRs connector with the given configuration - token: Github token - repository: Github repository name - owner: Github repository owner - replyIfNoReplies: If true, the bot will reply to issues with no comments

func (*GithubPRs) AgentReasoningCallback

func (g *GithubPRs) AgentReasoningCallback() func(state types.ActionCurrentState) bool

func (*GithubPRs) AgentResultCallback

func (g *GithubPRs) AgentResultCallback() func(state types.ActionState)

func (*GithubPRs) Start

func (g *GithubPRs) Start(a *agent.Agent)

type IRC

type IRC struct {
	// contains filtered or unexported fields
}

func NewIRC

func NewIRC(config map[string]string) *IRC

func (*IRC) AgentReasoningCallback

func (i *IRC) AgentReasoningCallback() func(state types.ActionCurrentState) bool

func (*IRC) AgentResultCallback

func (i *IRC) AgentResultCallback() func(state types.ActionState)

func (*IRC) Start

func (i *IRC) Start(a *agent.Agent)

Start connects to the IRC server and starts listening for messages

type ImageData

type ImageData struct {
	Data     []byte
	MimeType string
}

ImageData represents a single image with its metadata

type Matrix

type Matrix struct {
	// contains filtered or unexported fields
}

func NewMatrix

func NewMatrix(config map[string]string) *Matrix

func (*Matrix) AgentReasoningCallback

func (m *Matrix) AgentReasoningCallback() func(state types.ActionCurrentState) bool

func (*Matrix) AgentResultCallback

func (m *Matrix) AgentResultCallback() func(state types.ActionState)

func (*Matrix) Start

func (m *Matrix) Start(a *agent.Agent)

type Slack

type Slack struct {
	// contains filtered or unexported fields
}

func NewSlack

func NewSlack(config map[string]string) *Slack

func (*Slack) AgentReasoningCallback

func (t *Slack) AgentReasoningCallback() func(state types.ActionCurrentState) bool

func (*Slack) AgentResultCallback

func (t *Slack) AgentResultCallback() func(state types.ActionState)

func (*Slack) Start

func (t *Slack) Start(a *agent.Agent)

type Telegram

type Telegram struct {
	Token string
	// contains filtered or unexported fields
}

func NewTelegramConnector

func NewTelegramConnector(config map[string]string) (*Telegram, error)

func (*Telegram) AgentReasoningCallback

func (t *Telegram) AgentReasoningCallback() func(state types.ActionCurrentState) bool

func (*Telegram) AgentResultCallback

func (t *Telegram) AgentResultCallback() func(state types.ActionState)

func (*Telegram) Start

func (t *Telegram) Start(a *agent.Agent)

type Twitter

type Twitter struct {
	// contains filtered or unexported fields
}

func NewTwitterConnector

func NewTwitterConnector(config map[string]string) (*Twitter, error)

func (*Twitter) AgentReasoningCallback

func (t *Twitter) AgentReasoningCallback() func(state types.ActionCurrentState) bool

func (*Twitter) AgentResultCallback

func (t *Twitter) AgentResultCallback() func(state types.ActionState)

func (*Twitter) Start

func (t *Twitter) Start(a *agent.Agent)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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