services

package
v0.0.0-...-640d97b Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Actions
	ActionSearch                         = "search"
	ActionCustom                         = "custom"
	ActionGithubIssueLabeler             = "github-issue-labeler"
	ActionGithubIssueOpener              = "github-issue-opener"
	ActionGithubIssueEditor              = "github-issue-editor"
	ActionGithubIssueCloser              = "github-issue-closer"
	ActionGithubIssueSearcher            = "github-issue-searcher"
	ActionGithubRepositoryGet            = "github-repository-get-content"
	ActionGithubRepositoryCreateOrUpdate = "github-repository-create-or-update-content"
	ActionGithubIssueReader              = "github-issue-reader"
	ActionGithubIssueCommenter           = "github-issue-commenter"
	ActionGithubPRReader                 = "github-pr-reader"
	ActionGithubPRCommenter              = "github-pr-commenter"
	ActionGithubPRReviewer               = "github-pr-reviewer"
	ActionGithubPRCreator                = "github-pr-creator"
	ActionGithubGetAllContent            = "github-get-all-repository-content"
	ActionGithubREADME                   = "github-readme"
	ActionGithubRepositorySearchFiles    = "github-repository-search-files"
	ActionGithubRepositoryListFiles      = "github-repository-list-files"
	ActionScraper                        = "scraper"
	ActionWikipedia                      = "wikipedia"
	ActionBrowse                         = "browse"
	ActionTwitterPost                    = "twitter-post"
	ActionSendMail                       = "send-mail"
	ActionGenerateImage                  = "generate_image"
	ActionGenerateSong                   = "generate_song"
	ActionGeneratePDF                    = "generate_pdf"
	ActionCounter                        = "counter"
	ActionCallAgents                     = "call_agents"
	ActionShellcommand                   = "shell-command"
	ActionSendTelegramMessage            = "send-telegram-message"
	ActionSetReminder                    = "set_reminder"
	ActionSetRecurringReminder           = "set_recurring_reminder"
	ActionSetOneTimeReminder             = "set_onetime_reminder"
	ActionListReminders                  = "list_reminders"
	ActionRemoveReminder                 = "remove_reminder"
	ActionAddToMemory                    = "add_to_memory"
	ActionListMemory                     = "list_memory"
	ActionRemoveFromMemory               = "remove_from_memory"
	ActionSearchMemory                   = "search_memory"
	ActionPiKVMPowerControl              = "pikvm_power_control"
	ActionWebhook                        = "webhook"
)
View Source
const (
	ActionConfigSSHBoxURL = "sshbox-url"
	ConfigStateDir        = "state-dir"
	CustomActionsDir      = "custom-actions-dir"
)
View Source
const (
	// Connectors
	ConnectorIRC          = "irc"
	ConnectorTelegram     = "telegram"
	ConnectorSlack        = "slack"
	ConnectorDiscord      = "discord"
	ConnectorGithubIssues = "github-issues"
	ConnectorGithubPRs    = "github-prs"
	ConnectorTwitter      = "twitter"
	ConnectorMatrix       = "matrix"
	ConnectorEmail        = "email"
)
View Source
const (
	DynamicPromptCustom = "custom"
	DynamicPromptMemory = "memory"
)

Variables

View Source
var AvailableBlockPrompts = []string{
	DynamicPromptCustom,
	DynamicPromptMemory,
}
View Source
var DefaultActions = []config.FieldGroup{
	{
		Name:   "search",
		Label:  "Search",
		Fields: actions.SearchConfigMeta(),
	},
	{
		Name:   "generate_image",
		Label:  "Generate Image",
		Fields: actions.GenImageConfigMeta(),
	},
	{
		Name:   "generate_song",
		Label:  "Generate Song",
		Fields: actions.GenSongConfigMeta(),
	},
	{
		Name:   "generate_pdf",
		Label:  "Generate PDF",
		Fields: actions.GenPDFConfigMeta(),
	},
	{
		Name:   "add_to_memory",
		Label:  "Add to Memory",
		Fields: actions.AddToMemoryConfigMeta(),
	},
	{
		Name:   "list_memory",
		Label:  "List Memory",
		Fields: actions.ListMemoryConfigMeta(),
	},
	{
		Name:   "remove_from_memory",
		Label:  "Remove from Memory",
		Fields: actions.RemoveFromMemoryConfigMeta(),
	},
	{
		Name:   "search_memory",
		Label:  "Search Memory",
		Fields: actions.SearchMemoryConfigMeta(),
	},
	{
		Name:   "github-issue-labeler",
		Label:  "GitHub Issue Labeler",
		Fields: actions.GithubIssueLabelerConfigMeta(),
	},
	{
		Name:   "github-issue-opener",
		Label:  "GitHub Issue Opener",
		Fields: actions.GithubIssueOpenerConfigMeta(),
	},
	{
		Name:   "github-issue-editor",
		Label:  "GitHub Issue Editor",
		Fields: actions.GithubIssueEditorConfigMeta(),
	},
	{
		Name:   "github-issue-closer",
		Label:  "GitHub Issue Closer",
		Fields: actions.GithubIssueCloserConfigMeta(),
	},
	{
		Name:   "github-issue-commenter",
		Label:  "GitHub Issue Commenter",
		Fields: actions.GithubIssueCommenterConfigMeta(),
	},
	{
		Name:   "github-issue-reader",
		Label:  "GitHub Issue Reader",
		Fields: actions.GithubIssueReaderConfigMeta(),
	},
	{
		Name:   "github-issue-searcher",
		Label:  "GitHub Issue Search",
		Fields: actions.GithubIssueSearchConfigMeta(),
	},
	{
		Name:   "github-repository-get-content",
		Label:  "GitHub Repository Get Content",
		Fields: actions.GithubRepositoryGetContentConfigMeta(),
	},
	{
		Name:   "github-get-all-repository-content",
		Label:  "GitHub Get All Repository Content",
		Fields: actions.GithubRepositoryGetAllContentConfigMeta(),
	},
	{
		Name:   "github-repository-search-files",
		Label:  "GitHub Repository Search Files",
		Fields: actions.GithubRepositorySearchFilesConfigMeta(),
	},
	{
		Name:   "github-repository-list-files",
		Label:  "GitHub Repository List Files",
		Fields: actions.GithubRepositoryListFilesConfigMeta(),
	},
	{
		Name:   "github-repository-create-or-update-content",
		Label:  "GitHub Repository Create/Update Content",
		Fields: actions.GithubRepositoryCreateOrUpdateContentConfigMeta(),
	},
	{
		Name:   "github-readme",
		Label:  "GitHub Repository README",
		Fields: actions.GithubRepositoryREADMEConfigMeta(),
	},
	{
		Name:   "github-pr-reader",
		Label:  "GitHub PR Reader",
		Fields: actions.GithubPRReaderConfigMeta(),
	},
	{
		Name:   "github-pr-commenter",
		Label:  "GitHub PR Commenter",
		Fields: actions.GithubPRCommenterConfigMeta(),
	},
	{
		Name:   "github-pr-reviewer",
		Label:  "GitHub PR Reviewer",
		Fields: actions.GithubPRReviewerConfigMeta(),
	},
	{
		Name:   "github-pr-creator",
		Label:  "GitHub PR Creator",
		Fields: actions.GithubPRCreatorConfigMeta(),
	},
	{
		Name:   "twitter-post",
		Label:  "Twitter Post",
		Fields: actions.TwitterPostConfigMeta(),
	},
	{
		Name:   "send-mail",
		Label:  "Send Mail",
		Fields: actions.SendMailConfigMeta(),
	},
	{
		Name:   "shell-command",
		Label:  "Shell Command",
		Fields: actions.ShellConfigMeta(),
	},
	{
		Name:   "custom",
		Label:  "Custom",
		Fields: action.CustomConfigMeta(),
	},
	{
		Name:   "scraper",
		Label:  "Scraper",
		Fields: []config.Field{},
	},
	{
		Name:   "wikipedia",
		Label:  "Wikipedia",
		Fields: []config.Field{},
	},
	{
		Name:   "browse",
		Label:  "Browse",
		Fields: []config.Field{},
	},
	{
		Name:   "counter",
		Label:  "Counter",
		Fields: []config.Field{},
	},
	{
		Name:   "call_agents",
		Label:  "Call Agents",
		Fields: actions.CallAgentConfigMeta(),
	},
	{
		Name:   "send-telegram-message",
		Label:  "Send Telegram Message",
		Fields: actions.SendTelegramMessageConfigMeta(),
	},
	{
		Name:   "set_recurring_reminder",
		Label:  "Set Recurring Reminder",
		Fields: []config.Field{},
	},
	{
		Name:   "set_onetime_reminder",
		Label:  "Set One-Time Reminder",
		Fields: []config.Field{},
	},
	{
		Name:   "list_reminders",
		Label:  "List Reminders",
		Fields: []config.Field{},
	},
	{
		Name:   "remove_reminder",
		Label:  "Remove Reminder",
		Fields: []config.Field{},
	},
	{
		Name:   "pikvm_power_control",
		Label:  "PiKVM Power Control",
		Fields: actions.PiKVMConfigMeta(),
	},
	{
		Name:   "webhook",
		Label:  "Webhook",
		Fields: actions.WebhookConfigMeta(),
	},
}

Functions

func Action

func Action(name, agentName string, config map[string]string, pool *state.AgentPool, actionsConfigs map[string]string) (types.Action, error)

func Actions

func Actions(actionsConfigs map[string]string) func(a *state.AgentConfig) func(ctx context.Context, pool *state.AgentPool) []types.Action

func ActionsConfigMeta

func ActionsConfigMeta(customActionDir string) []config.FieldGroup

func Connectors

func Connectors(a *state.AgentConfig) []state.Connector

func ConnectorsConfigMeta

func ConnectorsConfigMeta() []config.FieldGroup

func DynamicPrompts

func DynamicPrompts(dynamicConfig map[string]string) func(*state.AgentConfig) func(ctx context.Context, pool *state.AgentPool) []agent.DynamicPrompt

func DynamicPromptsConfigMeta

func DynamicPromptsConfigMeta(customDirectory string) []config.FieldGroup

func Filters

func Filters(a *state.AgentConfig) types.JobFilters

func FiltersConfigMeta

func FiltersConfigMeta() []config.FieldGroup

FiltersConfigMeta returns all filter config metas for UI.

Types

This section is empty.

Directories

Path Synopsis
Package actions contains action implementations used by LocalAGI.
Package actions contains action implementations used by LocalAGI.

Jump to

Keyboard shortcuts

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