Documentation
¶
Overview ¶
Package actions contains action implementations used by LocalAGI. This file implements the "webhook" action which can send an HTTP request to an external service with a configurable method, content type, and payload.
Index ¶
- Constants
- func AddToMemoryConfigMeta() []config.Field
- func BrowserAgentRunnerConfigMeta() []config.Field
- func CallAgentConfigMeta() []config.Field
- func DeepResearchRunnerConfigMeta() []config.Field
- func GenImageConfigMeta() []config.Field
- func GithubIssueCloserConfigMeta() []config.Field
- func GithubIssueCommenterConfigMeta() []config.Field
- func GithubIssueEditorConfigMeta() []config.Field
- func GithubIssueLabelerConfigMeta() []config.Field
- func GithubIssueOpenerConfigMeta() []config.Field
- func GithubIssueReaderConfigMeta() []config.Field
- func GithubIssueSearchConfigMeta() []config.Field
- func GithubPRCommenterConfigMeta() []config.Field
- func GithubPRCreatorConfigMeta() []config.Field
- func GithubPRReaderConfigMeta() []config.Field
- func GithubPRReviewerConfigMeta() []config.Field
- func GithubRepositoryCreateOrUpdateContentConfigMeta() []config.Field
- func GithubRepositoryGetAllContentConfigMeta() []config.Field
- func GithubRepositoryGetContentConfigMeta() []config.Field
- func GithubRepositoryListFilesConfigMeta() []config.Field
- func GithubRepositoryREADMEConfigMeta() []config.Field
- func GithubRepositorySearchFilesConfigMeta() []config.Field
- func ListMemoryConfigMeta() []config.Field
- func NewMemoryActions(filePath string, config map[string]string) (*AddToMemoryAction, *ListMemoryAction, *RemoveFromMemoryAction)
- func PiKVMConfigMeta() []config.Field
- func RemoveFromMemoryConfigMeta() []config.Field
- func SearchConfigMeta() []config.Field
- func SendMailConfigMeta() []config.Field
- func SendTelegramMessageConfigMeta() []config.Field
- func ShellConfigMeta() []config.Field
- func TwitterPostConfigMeta() []config.Field
- func WebhookConfigMeta() []config.Field
- type AddToMemoryAction
- type BrowseAction
- type BrowserAgentRunner
- type CallAgentAction
- type CounterAction
- type DeepResearchRunner
- type GenImageAction
- type GithubIssueEditor
- type GithubIssueSearch
- type GithubIssuesCloser
- type GithubIssuesCommenter
- type GithubIssuesLabeler
- type GithubIssuesOpener
- type GithubIssuesReader
- type GithubPRCommenter
- type GithubPRCreator
- type GithubPRReader
- type GithubPRReviewer
- type GithubRepositoryCreateOrUpdateContent
- type GithubRepositoryGetAllContent
- type GithubRepositoryGetContent
- type GithubRepositoryListFiles
- type GithubRepositoryREADME
- type GithubRepositorySearchFiles
- type ListMemoryAction
- type MemoryActions
- type PiKVMAction
- type PostTweetAction
- type RemoveFromMemoryAction
- type ScraperAction
- type SearchAction
- type SendMailAction
- type SendTelegramMessageRunner
- type ShellAction
- type TelegramMessageParams
- type WebhookAction
- type WikipediaAction
Constants ¶
const (
MetadataBrowserAgentHistory = "browser_agent_history"
)
const (
MetadataDeepResearchResult = "deep_research_result"
)
const (
MetadataImages = "images_url"
)
const (
MetadataTelegramMessageSent = "telegram_message_sent"
)
const (
MetadataUrls = "urls"
)
Variables ¶
This section is empty.
Functions ¶
func AddToMemoryConfigMeta ¶
AddToMemoryConfigMeta returns the metadata for AddToMemory action configuration fields
func BrowserAgentRunnerConfigMeta ¶
BrowserAgentRunnerConfigMeta returns the metadata for Browser Agent Runner action configuration fields
func CallAgentConfigMeta ¶
func DeepResearchRunnerConfigMeta ¶
DeepResearchRunnerConfigMeta returns the metadata for Deep Research Runner action configuration fields
func GenImageConfigMeta ¶
GenImageConfigMeta returns the metadata for GenImage action configuration fields
func GithubIssueCloserConfigMeta ¶
GithubIssueCloserConfigMeta returns the metadata for GitHub Issue Closer action configuration fields
func GithubIssueCommenterConfigMeta ¶
GithubIssueCommenterConfigMeta returns the metadata for GitHub Issue Commenter action configuration fields
func GithubIssueEditorConfigMeta ¶
GithubIssueEditorConfigMeta returns the metadata for GitHub Issue Editor action configuration fields
func GithubIssueLabelerConfigMeta ¶
GithubIssueLabelerConfigMeta returns the metadata for GitHub Issue Labeler action configuration fields
func GithubIssueOpenerConfigMeta ¶
GithubIssueOpenerConfigMeta returns the metadata for GitHub Issue Opener action configuration fields
func GithubIssueReaderConfigMeta ¶
GithubIssueReaderConfigMeta returns the metadata for GitHub Issue Reader action configuration fields
func GithubIssueSearchConfigMeta ¶
GithubIssueSearchConfigMeta returns the metadata for GitHub Issue Search action configuration fields
func GithubPRCommenterConfigMeta ¶
GithubPRCommenterConfigMeta returns the metadata for GitHub PR Commenter action configuration fields
func GithubPRCreatorConfigMeta ¶
GithubPRCreatorConfigMeta returns the metadata for GitHub PR Creator action configuration fields
func GithubPRReaderConfigMeta ¶
GithubPRReaderConfigMeta returns the metadata for GitHub PR Reader action configuration fields
func GithubPRReviewerConfigMeta ¶
GithubPRReviewerConfigMeta returns the metadata for GitHub PR Reviewer action configuration fields
func GithubRepositoryCreateOrUpdateContentConfigMeta ¶
GithubRepositoryCreateOrUpdateContentConfigMeta returns the metadata for GitHub Repository Create/Update Content action configuration fields
func GithubRepositoryGetAllContentConfigMeta ¶
GithubRepositoryGetAllContentConfigMeta returns the metadata for GitHub Repository Get All Content action configuration fields
func GithubRepositoryGetContentConfigMeta ¶
GithubRepositoryGetContentConfigMeta returns the metadata for GitHub Repository Get Content action configuration fields
func GithubRepositoryListFilesConfigMeta ¶
GithubRepositoryListFilesConfigMeta returns the metadata for GitHub Repository List Files action configuration fields
func GithubRepositoryREADMEConfigMeta ¶
GithubRepositoryREADMEConfigMeta returns the metadata for GitHub Repository README action configuration fields
func GithubRepositorySearchFilesConfigMeta ¶
GithubRepositorySearchFilesConfigMeta returns the metadata for GitHub Repository Search Files action configuration fields
func ListMemoryConfigMeta ¶
ListMemoryConfigMeta returns the metadata for ListMemory action configuration fields
func NewMemoryActions ¶
func NewMemoryActions(filePath string, config map[string]string) (*AddToMemoryAction, *ListMemoryAction, *RemoveFromMemoryAction)
NewMemoryActions returns the three actions, using the provided filePath and config
func PiKVMConfigMeta ¶
PiKVMConfigMeta returns the metadata for PiKVM action configuration fields
func RemoveFromMemoryConfigMeta ¶
RemoveFromMemoryConfigMeta returns the metadata for RemoveFromMemory action configuration fields
func SearchConfigMeta ¶
SearchConfigMeta returns the metadata for Search action configuration fields
func SendMailConfigMeta ¶
SendMailConfigMeta returns the metadata for SendMail action configuration fields
func SendTelegramMessageConfigMeta ¶
SendTelegramMessageConfigMeta returns the metadata for Send Telegram Message action configuration fields
func ShellConfigMeta ¶
ShellConfigMeta returns the metadata for Shell action configuration fields
func TwitterPostConfigMeta ¶
TwitterPostConfigMeta returns the metadata for Twitter Post action configuration fields
func WebhookConfigMeta ¶
WebhookConfigMeta returns the metadata for Webhook action configuration fields:
- url: The endpoint to send requests to (required).
- method: One of GET/POST/PUT/DELETE. Defaults to POST.
- contentType: Common content types selectable from a dropdown.
- payloadTemplate: Optional body template. At runtime, "{{payload}}" is replaced by the provided payload parameter. If missing, the template is used as-is; for GET, no body is sent regardless.
Types ¶
type AddToMemoryAction ¶
type AddToMemoryAction struct{ *MemoryActions }
func (*AddToMemoryAction) Definition ¶
func (a *AddToMemoryAction) Definition() types.ActionDefinition
func (*AddToMemoryAction) Plannable ¶
func (a *AddToMemoryAction) Plannable() bool
func (*AddToMemoryAction) Run ¶
func (a *AddToMemoryAction) Run(ctx context.Context, sharedState *types.AgentSharedState, params types.ActionParams) (types.ActionResult, error)
type BrowseAction ¶
type BrowseAction struct{}
func NewBrowse ¶
func NewBrowse(config map[string]string) *BrowseAction
func (*BrowseAction) Definition ¶
func (a *BrowseAction) Definition() types.ActionDefinition
func (*BrowseAction) Plannable ¶
func (a *BrowseAction) Plannable() bool
func (*BrowseAction) Run ¶
func (a *BrowseAction) Run(ctx context.Context, sharedState *types.AgentSharedState, params types.ActionParams) (types.ActionResult, error)
type BrowserAgentRunner ¶
type BrowserAgentRunner struct {
// contains filtered or unexported fields
}
func NewBrowserAgentRunner ¶
func NewBrowserAgentRunner(config map[string]string, defaultURL string) *BrowserAgentRunner
func (*BrowserAgentRunner) Definition ¶
func (b *BrowserAgentRunner) Definition() types.ActionDefinition
func (*BrowserAgentRunner) Plannable ¶
func (a *BrowserAgentRunner) Plannable() bool
func (*BrowserAgentRunner) Run ¶
func (b *BrowserAgentRunner) Run(ctx context.Context, sharedState *types.AgentSharedState, params types.ActionParams) (types.ActionResult, error)
type CallAgentAction ¶
type CallAgentAction struct {
// contains filtered or unexported fields
}
func NewCallAgent ¶
func NewCallAgent(config map[string]string, agentName string, pool *state.AgentPoolInternalAPI) *CallAgentAction
func (*CallAgentAction) Definition ¶
func (a *CallAgentAction) Definition() types.ActionDefinition
func (*CallAgentAction) Plannable ¶
func (a *CallAgentAction) Plannable() bool
func (*CallAgentAction) Run ¶
func (a *CallAgentAction) Run(ctx context.Context, sharedState *types.AgentSharedState, params types.ActionParams) (types.ActionResult, error)
type CounterAction ¶
type CounterAction struct {
// contains filtered or unexported fields
}
CounterAction manages named counters that can be created, updated, and queried
func NewCounter ¶
func NewCounter(config map[string]string) *CounterAction
NewCounter creates a new counter action
func (*CounterAction) Definition ¶
func (a *CounterAction) Definition() types.ActionDefinition
Definition returns the action definition
func (*CounterAction) Plannable ¶
func (a *CounterAction) Plannable() bool
func (*CounterAction) Run ¶
func (a *CounterAction) Run(ctx context.Context, sharedState *types.AgentSharedState, params types.ActionParams) (types.ActionResult, error)
Run executes the counter action
type DeepResearchRunner ¶
type DeepResearchRunner struct {
// contains filtered or unexported fields
}
func NewDeepResearchRunner ¶
func NewDeepResearchRunner(config map[string]string, defaultURL string) *DeepResearchRunner
func (*DeepResearchRunner) Definition ¶
func (d *DeepResearchRunner) Definition() types.ActionDefinition
func (*DeepResearchRunner) Plannable ¶
func (d *DeepResearchRunner) Plannable() bool
func (*DeepResearchRunner) Run ¶
func (d *DeepResearchRunner) Run(ctx context.Context, sharedState *types.AgentSharedState, params types.ActionParams) (types.ActionResult, error)
type GenImageAction ¶
type GenImageAction struct {
// contains filtered or unexported fields
}
func NewGenImage ¶
func NewGenImage(config map[string]string) *GenImageAction
func (*GenImageAction) Definition ¶
func (a *GenImageAction) Definition() types.ActionDefinition
func (*GenImageAction) Plannable ¶
func (a *GenImageAction) Plannable() bool
func (*GenImageAction) Run ¶
func (a *GenImageAction) Run(ctx context.Context, sharedState *types.AgentSharedState, params types.ActionParams) (types.ActionResult, error)
type GithubIssueEditor ¶
type GithubIssueEditor struct {
// contains filtered or unexported fields
}
func NewGithubIssueEditor ¶
func NewGithubIssueEditor(config map[string]string) *GithubIssueEditor
func (*GithubIssueEditor) Definition ¶
func (g *GithubIssueEditor) Definition() types.ActionDefinition
func (*GithubIssueEditor) Plannable ¶
func (a *GithubIssueEditor) Plannable() bool
func (*GithubIssueEditor) Run ¶
func (g *GithubIssueEditor) Run(ctx context.Context, sharedState *types.AgentSharedState, params types.ActionParams) (types.ActionResult, error)
type GithubIssueSearch ¶
type GithubIssueSearch struct {
// contains filtered or unexported fields
}
func NewGithubIssueSearch ¶
func NewGithubIssueSearch(config map[string]string) *GithubIssueSearch
func (*GithubIssueSearch) Definition ¶
func (g *GithubIssueSearch) Definition() types.ActionDefinition
func (*GithubIssueSearch) Plannable ¶
func (a *GithubIssueSearch) Plannable() bool
func (*GithubIssueSearch) Run ¶
func (g *GithubIssueSearch) Run(ctx context.Context, sharedState *types.AgentSharedState, params types.ActionParams) (types.ActionResult, error)
type GithubIssuesCloser ¶
type GithubIssuesCloser struct {
// contains filtered or unexported fields
}
func NewGithubIssueCloser ¶
func NewGithubIssueCloser(config map[string]string) *GithubIssuesCloser
func (*GithubIssuesCloser) Definition ¶
func (g *GithubIssuesCloser) Definition() types.ActionDefinition
func (*GithubIssuesCloser) Plannable ¶
func (a *GithubIssuesCloser) Plannable() bool
func (*GithubIssuesCloser) Run ¶
func (g *GithubIssuesCloser) Run(ctx context.Context, sharedState *types.AgentSharedState, params types.ActionParams) (types.ActionResult, error)
type GithubIssuesCommenter ¶
type GithubIssuesCommenter struct {
// contains filtered or unexported fields
}
func NewGithubIssueCommenter ¶
func NewGithubIssueCommenter(config map[string]string) *GithubIssuesCommenter
func (*GithubIssuesCommenter) Definition ¶
func (g *GithubIssuesCommenter) Definition() types.ActionDefinition
func (*GithubIssuesCommenter) Plannable ¶
func (a *GithubIssuesCommenter) Plannable() bool
func (*GithubIssuesCommenter) Run ¶
func (g *GithubIssuesCommenter) Run(ctx context.Context, sharedState *types.AgentSharedState, params types.ActionParams) (types.ActionResult, error)
type GithubIssuesLabeler ¶
type GithubIssuesLabeler struct {
// contains filtered or unexported fields
}
func NewGithubIssueLabeler ¶
func NewGithubIssueLabeler(config map[string]string) *GithubIssuesLabeler
func (*GithubIssuesLabeler) Definition ¶
func (g *GithubIssuesLabeler) Definition() types.ActionDefinition
func (*GithubIssuesLabeler) Plannable ¶
func (a *GithubIssuesLabeler) Plannable() bool
func (*GithubIssuesLabeler) Run ¶
func (g *GithubIssuesLabeler) Run(ctx context.Context, sharedState *types.AgentSharedState, params types.ActionParams) (types.ActionResult, error)
type GithubIssuesOpener ¶
type GithubIssuesOpener struct {
// contains filtered or unexported fields
}
func NewGithubIssueOpener ¶
func NewGithubIssueOpener(config map[string]string) *GithubIssuesOpener
func (*GithubIssuesOpener) Definition ¶
func (g *GithubIssuesOpener) Definition() types.ActionDefinition
func (*GithubIssuesOpener) Plannable ¶
func (a *GithubIssuesOpener) Plannable() bool
func (*GithubIssuesOpener) Run ¶
func (g *GithubIssuesOpener) Run(ctx context.Context, sharedState *types.AgentSharedState, params types.ActionParams) (types.ActionResult, error)
type GithubIssuesReader ¶
type GithubIssuesReader struct {
// contains filtered or unexported fields
}
func NewGithubIssueReader ¶
func NewGithubIssueReader(config map[string]string) *GithubIssuesReader
func (*GithubIssuesReader) Definition ¶
func (g *GithubIssuesReader) Definition() types.ActionDefinition
func (*GithubIssuesReader) Plannable ¶
func (a *GithubIssuesReader) Plannable() bool
func (*GithubIssuesReader) Run ¶
func (g *GithubIssuesReader) Run(ctx context.Context, sharedState *types.AgentSharedState, params types.ActionParams) (types.ActionResult, error)
type GithubPRCommenter ¶
type GithubPRCommenter struct {
// contains filtered or unexported fields
}
func NewGithubPRCommenter ¶
func NewGithubPRCommenter(config map[string]string) *GithubPRCommenter
func (*GithubPRCommenter) Definition ¶
func (g *GithubPRCommenter) Definition() types.ActionDefinition
func (*GithubPRCommenter) Plannable ¶
func (a *GithubPRCommenter) Plannable() bool
func (*GithubPRCommenter) Run ¶
func (g *GithubPRCommenter) Run(ctx context.Context, sharedState *types.AgentSharedState, params types.ActionParams) (types.ActionResult, error)
type GithubPRCreator ¶
type GithubPRCreator struct {
// contains filtered or unexported fields
}
func NewGithubPRCreator ¶
func NewGithubPRCreator(config map[string]string) *GithubPRCreator
func (*GithubPRCreator) Definition ¶
func (g *GithubPRCreator) Definition() types.ActionDefinition
func (*GithubPRCreator) Plannable ¶
func (a *GithubPRCreator) Plannable() bool
func (*GithubPRCreator) Run ¶
func (g *GithubPRCreator) Run(ctx context.Context, sharedState *types.AgentSharedState, params types.ActionParams) (types.ActionResult, error)
type GithubPRReader ¶
type GithubPRReader struct {
// contains filtered or unexported fields
}
func NewGithubPRReader ¶
func NewGithubPRReader(config map[string]string) *GithubPRReader
func (*GithubPRReader) Definition ¶
func (g *GithubPRReader) Definition() types.ActionDefinition
func (*GithubPRReader) Plannable ¶
func (a *GithubPRReader) Plannable() bool
func (*GithubPRReader) Run ¶
func (g *GithubPRReader) Run(ctx context.Context, sharedState *types.AgentSharedState, params types.ActionParams) (types.ActionResult, error)
type GithubPRReviewer ¶
type GithubPRReviewer struct {
// contains filtered or unexported fields
}
func NewGithubPRReviewer ¶
func NewGithubPRReviewer(config map[string]string) *GithubPRReviewer
func (*GithubPRReviewer) Definition ¶
func (g *GithubPRReviewer) Definition() types.ActionDefinition
func (*GithubPRReviewer) Plannable ¶
func (a *GithubPRReviewer) Plannable() bool
func (*GithubPRReviewer) Run ¶
func (g *GithubPRReviewer) Run(ctx context.Context, sharedState *types.AgentSharedState, params types.ActionParams) (types.ActionResult, error)
type GithubRepositoryCreateOrUpdateContent ¶
type GithubRepositoryCreateOrUpdateContent struct {
// contains filtered or unexported fields
}
func NewGithubRepositoryCreateOrUpdateContent ¶
func NewGithubRepositoryCreateOrUpdateContent(config map[string]string) *GithubRepositoryCreateOrUpdateContent
func (*GithubRepositoryCreateOrUpdateContent) Definition ¶
func (g *GithubRepositoryCreateOrUpdateContent) Definition() types.ActionDefinition
func (*GithubRepositoryCreateOrUpdateContent) Plannable ¶
func (a *GithubRepositoryCreateOrUpdateContent) Plannable() bool
func (*GithubRepositoryCreateOrUpdateContent) Run ¶
func (g *GithubRepositoryCreateOrUpdateContent) Run(ctx context.Context, sharedState *types.AgentSharedState, params types.ActionParams) (types.ActionResult, error)
type GithubRepositoryGetAllContent ¶
type GithubRepositoryGetAllContent struct {
// contains filtered or unexported fields
}
func NewGithubRepositoryGetAllContent ¶
func NewGithubRepositoryGetAllContent(config map[string]string) *GithubRepositoryGetAllContent
func (*GithubRepositoryGetAllContent) Definition ¶
func (g *GithubRepositoryGetAllContent) Definition() types.ActionDefinition
func (*GithubRepositoryGetAllContent) Plannable ¶
func (a *GithubRepositoryGetAllContent) Plannable() bool
func (*GithubRepositoryGetAllContent) Run ¶
func (g *GithubRepositoryGetAllContent) Run(ctx context.Context, sharedState *types.AgentSharedState, params types.ActionParams) (types.ActionResult, error)
type GithubRepositoryGetContent ¶
type GithubRepositoryGetContent struct {
// contains filtered or unexported fields
}
func NewGithubRepositoryGetContent ¶
func NewGithubRepositoryGetContent(config map[string]string) *GithubRepositoryGetContent
func (*GithubRepositoryGetContent) Definition ¶
func (g *GithubRepositoryGetContent) Definition() types.ActionDefinition
func (*GithubRepositoryGetContent) Plannable ¶
func (a *GithubRepositoryGetContent) Plannable() bool
func (*GithubRepositoryGetContent) Run ¶
func (g *GithubRepositoryGetContent) Run(ctx context.Context, sharedState *types.AgentSharedState, params types.ActionParams) (types.ActionResult, error)
type GithubRepositoryListFiles ¶
type GithubRepositoryListFiles struct {
// contains filtered or unexported fields
}
func NewGithubRepositoryListFiles ¶
func NewGithubRepositoryListFiles(config map[string]string) *GithubRepositoryListFiles
func (*GithubRepositoryListFiles) Definition ¶
func (g *GithubRepositoryListFiles) Definition() types.ActionDefinition
func (*GithubRepositoryListFiles) Plannable ¶
func (a *GithubRepositoryListFiles) Plannable() bool
func (*GithubRepositoryListFiles) Run ¶
func (g *GithubRepositoryListFiles) Run(ctx context.Context, sharedState *types.AgentSharedState, params types.ActionParams) (types.ActionResult, error)
type GithubRepositoryREADME ¶
type GithubRepositoryREADME struct {
// contains filtered or unexported fields
}
func NewGithubRepositoryREADME ¶
func NewGithubRepositoryREADME(config map[string]string) *GithubRepositoryREADME
func (*GithubRepositoryREADME) Definition ¶
func (g *GithubRepositoryREADME) Definition() types.ActionDefinition
func (*GithubRepositoryREADME) Plannable ¶
func (a *GithubRepositoryREADME) Plannable() bool
func (*GithubRepositoryREADME) Run ¶
func (g *GithubRepositoryREADME) Run(ctx context.Context, sharedState *types.AgentSharedState, params types.ActionParams) (types.ActionResult, error)
type GithubRepositorySearchFiles ¶
type GithubRepositorySearchFiles struct {
// contains filtered or unexported fields
}
func NewGithubRepositorySearchFiles ¶
func NewGithubRepositorySearchFiles(config map[string]string) *GithubRepositorySearchFiles
func (*GithubRepositorySearchFiles) Definition ¶
func (g *GithubRepositorySearchFiles) Definition() types.ActionDefinition
func (*GithubRepositorySearchFiles) Plannable ¶
func (a *GithubRepositorySearchFiles) Plannable() bool
func (*GithubRepositorySearchFiles) Run ¶
func (g *GithubRepositorySearchFiles) Run(ctx context.Context, sharedState *types.AgentSharedState, params types.ActionParams) (types.ActionResult, error)
type ListMemoryAction ¶
type ListMemoryAction struct{ *MemoryActions }
func (*ListMemoryAction) Definition ¶
func (a *ListMemoryAction) Definition() types.ActionDefinition
func (*ListMemoryAction) Plannable ¶
func (a *ListMemoryAction) Plannable() bool
func (*ListMemoryAction) Run ¶
func (a *ListMemoryAction) Run(ctx context.Context, sharedState *types.AgentSharedState, params types.ActionParams) (types.ActionResult, error)
type MemoryActions ¶
type MemoryActions struct {
// contains filtered or unexported fields
}
type PiKVMAction ¶
type PiKVMAction struct {
// contains filtered or unexported fields
}
func NewPiKVMAction ¶
func NewPiKVMAction(config map[string]string) *PiKVMAction
func (*PiKVMAction) Definition ¶
func (a *PiKVMAction) Definition() types.ActionDefinition
func (*PiKVMAction) Plannable ¶
func (a *PiKVMAction) Plannable() bool
func (*PiKVMAction) Run ¶
func (a *PiKVMAction) Run(ctx context.Context, sharedState *types.AgentSharedState, params types.ActionParams) (types.ActionResult, error)
type PostTweetAction ¶
type PostTweetAction struct {
// contains filtered or unexported fields
}
func NewPostTweet ¶
func NewPostTweet(config map[string]string) *PostTweetAction
func (*PostTweetAction) Definition ¶
func (a *PostTweetAction) Definition() types.ActionDefinition
func (*PostTweetAction) Plannable ¶
func (a *PostTweetAction) Plannable() bool
func (*PostTweetAction) Run ¶
func (a *PostTweetAction) Run(ctx context.Context, sharedState *types.AgentSharedState, params types.ActionParams) (types.ActionResult, error)
type RemoveFromMemoryAction ¶
type RemoveFromMemoryAction struct{ *MemoryActions }
func (*RemoveFromMemoryAction) Definition ¶
func (a *RemoveFromMemoryAction) Definition() types.ActionDefinition
func (*RemoveFromMemoryAction) Plannable ¶
func (a *RemoveFromMemoryAction) Plannable() bool
func (*RemoveFromMemoryAction) Run ¶
func (a *RemoveFromMemoryAction) Run(ctx context.Context, sharedState *types.AgentSharedState, params types.ActionParams) (types.ActionResult, error)
type ScraperAction ¶
type ScraperAction struct{}
func NewScraper ¶
func NewScraper(config map[string]string) *ScraperAction
func (*ScraperAction) Definition ¶
func (a *ScraperAction) Definition() types.ActionDefinition
func (*ScraperAction) Plannable ¶
func (a *ScraperAction) Plannable() bool
func (*ScraperAction) Run ¶
func (a *ScraperAction) Run(ctx context.Context, sharedState *types.AgentSharedState, params types.ActionParams) (types.ActionResult, error)
type SearchAction ¶
type SearchAction struct {
// contains filtered or unexported fields
}
func NewSearch ¶
func NewSearch(config map[string]string) *SearchAction
func (*SearchAction) Definition ¶
func (a *SearchAction) Definition() types.ActionDefinition
func (*SearchAction) Plannable ¶
func (a *SearchAction) Plannable() bool
func (*SearchAction) Run ¶
func (a *SearchAction) Run(ctx context.Context, sharedState *types.AgentSharedState, params types.ActionParams) (types.ActionResult, error)
type SendMailAction ¶
type SendMailAction struct {
// contains filtered or unexported fields
}
func NewSendMail ¶
func NewSendMail(config map[string]string) *SendMailAction
func (*SendMailAction) Definition ¶
func (a *SendMailAction) Definition() types.ActionDefinition
func (*SendMailAction) Plannable ¶
func (a *SendMailAction) Plannable() bool
func (*SendMailAction) Run ¶
func (a *SendMailAction) Run(ctx context.Context, sharedState *types.AgentSharedState, params types.ActionParams) (types.ActionResult, error)
type SendTelegramMessageRunner ¶
type SendTelegramMessageRunner struct {
// contains filtered or unexported fields
}
func NewSendTelegramMessageRunner ¶
func NewSendTelegramMessageRunner(config map[string]string) *SendTelegramMessageRunner
func (*SendTelegramMessageRunner) Definition ¶
func (s *SendTelegramMessageRunner) Definition() types.ActionDefinition
func (*SendTelegramMessageRunner) Plannable ¶
func (s *SendTelegramMessageRunner) Plannable() bool
func (*SendTelegramMessageRunner) Run ¶
func (s *SendTelegramMessageRunner) Run(ctx context.Context, sharedState *types.AgentSharedState, params types.ActionParams) (types.ActionResult, error)
type ShellAction ¶
type ShellAction struct {
// contains filtered or unexported fields
}
func (*ShellAction) Definition ¶
func (a *ShellAction) Definition() types.ActionDefinition
func (*ShellAction) Plannable ¶
func (a *ShellAction) Plannable() bool
func (*ShellAction) Run ¶
func (a *ShellAction) Run(ctx context.Context, sharedState *types.AgentSharedState, params types.ActionParams) (types.ActionResult, error)
type TelegramMessageParams ¶
type WebhookAction ¶
type WebhookAction struct {
// contains filtered or unexported fields
}
WebhookAction holds the static configuration for the webhook. These values come from the action configuration (UI/agent config), while the runtime parameter only carries the dynamic payload.
- url: Target endpoint for the request.
- method: HTTP method to use. Defaults to POST if not provided.
- contentType: Sets the Content-Type header when a body is sent.
- payloadTemplate: Optional template used to build the request body; occurrences of "{{payload}}" get replaced with the runtime payload string. If no placeholder is present, the template is used as-is. For GET requests the body is omitted regardless of payload.
Note: This action does not follow redirects!
func NewWebhook ¶
func NewWebhook(cfg map[string]string) *WebhookAction
NewWebhook constructs a WebhookAction using provided configuration values:
- url: Destination endpoint for the HTTP request (required).
- method: HTTP method to use (GET, POST, PUT, DELETE, ...). Defaults to POST.
- contentType: Value for the Content-Type header (e.g., application/json).
- payloadTemplate: Optional template for the request body; the runtime parameter "payload" (if provided) will replace the "{{payload}}" placeholder inside this template.
func (*WebhookAction) Definition ¶
func (a *WebhookAction) Definition() types.ActionDefinition
Definition returns the action schema exposed to the planner/runtime. Only the runtime parameter "payload" is accepted; all connection details are configured statically via the action configuration UI.
func (*WebhookAction) Plannable ¶
func (a *WebhookAction) Plannable() bool
Plannable indicates the action can be suggested/used by planners without requiring hidden context; inputs are straightforward and safe.
func (*WebhookAction) Run ¶
func (a *WebhookAction) Run(ctx context.Context, sharedState *types.AgentSharedState, params types.ActionParams) (types.ActionResult, error)
Run executes the webhook call. It reads the runtime parameter "payload" (optional), merges it into the configured payloadTemplate (if any), constructs an HTTP request using the configured URL, method and content type, and then returns a summary with the response status and body (truncated to 4KiB for safety).
type WikipediaAction ¶
type WikipediaAction struct{}
func NewWikipedia ¶
func NewWikipedia(config map[string]string) *WikipediaAction
func (*WikipediaAction) Definition ¶
func (a *WikipediaAction) Definition() types.ActionDefinition
func (*WikipediaAction) Plannable ¶
func (a *WikipediaAction) Plannable() bool
func (*WikipediaAction) Run ¶
func (a *WikipediaAction) Run(ctx context.Context, sharedState *types.AgentSharedState, params types.ActionParams) (types.ActionResult, error)
Source Files
¶
- browse.go
- browseragentrunner.go
- callagents.go
- counter.go
- deepresearchrunner.go
- genimage.go
- githubissuecloser.go
- githubissuecomment.go
- githubissueedit.go
- githubissuelabeler.go
- githubissueopener.go
- githubissuereader.go
- githubissuesearch.go
- githubprcommenter.go
- githubprcreator.go
- githubprreader.go
- githubprreviewer.go
- githubrepositorycreateupdatecontent.go
- githubrepositorygetallcontent.go
- githubrepositorygetcontent.go
- githubrepositorylistfiles.go
- githubrepositoryreadme.go
- githubrepositorysearchfiles.go
- memory.go
- pikvm.go
- scrape.go
- search.go
- sendmail.go
- sendtelegrammessage.go
- shell.go
- twitter_post.go
- webhook.go
- wikipedia.go