action

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	RecurringReminderActionName = "set_recurring_task"
	OneTimeReminderActionName   = "set_onetime_task"
	ListRemindersName           = "list_tasks"
	RemoveReminderName          = "remove_task"
)
View Source
const ConversationActionName = "send_message"
View Source
const StateActionName = "update_state"
View Source
const StopActionName = "stop"

StopActionName is the name of the action used by the LLM to stop any further action

Variables

This section is empty.

Functions

func CustomConfigMeta

func CustomConfigMeta() []config.Field

Types

type ConversationAction

type ConversationAction struct{}

func NewConversation

func NewConversation() *ConversationAction

func (*ConversationAction) Definition

func (a *ConversationAction) Definition() types.ActionDefinition

func (*ConversationAction) Plannable

func (a *ConversationAction) Plannable() bool

func (*ConversationAction) Run

type ConversationActionResponse

type ConversationActionResponse struct {
	Message string `json:"message"`
}

type CustomAction

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

func NewCustom

func NewCustom(config map[string]string, goPkgPath string) (*CustomAction, error)

func (*CustomAction) Definition

func (a *CustomAction) Definition() types.ActionDefinition

func (*CustomAction) Plannable

func (a *CustomAction) Plannable() bool

func (*CustomAction) Run

type ListRemindersAction

type ListRemindersAction struct{}

func NewListReminders

func NewListReminders() *ListRemindersAction

func (*ListRemindersAction) Definition

func (a *ListRemindersAction) Definition() types.ActionDefinition

func (*ListRemindersAction) Plannable

func (a *ListRemindersAction) Plannable() bool

func (*ListRemindersAction) Run

type OneTimeReminderAction

type OneTimeReminderAction struct{}

func NewOneTimeReminder

func NewOneTimeReminder() *OneTimeReminderAction

func (*OneTimeReminderAction) Definition

func (*OneTimeReminderAction) Plannable

func (a *OneTimeReminderAction) Plannable() bool

func (*OneTimeReminderAction) Run

type RecurringReminderAction

type RecurringReminderAction struct{}

func NewRecurringReminder

func NewRecurringReminder() *RecurringReminderAction

func (*RecurringReminderAction) Definition

func (*RecurringReminderAction) Plannable

func (a *RecurringReminderAction) Plannable() bool

func (*RecurringReminderAction) Run

type RemoveReminderAction

type RemoveReminderAction struct{}

func NewRemoveReminder

func NewRemoveReminder() *RemoveReminderAction

func (*RemoveReminderAction) Definition

func (*RemoveReminderAction) Plannable

func (a *RemoveReminderAction) Plannable() bool

func (*RemoveReminderAction) Run

type RemoveReminderParams

type RemoveReminderParams struct {
	Index int `json:"index"`
}

type StateAction

type StateAction struct{}

func NewState

func NewState() *StateAction

func (*StateAction) Definition

func (a *StateAction) Definition() types.ActionDefinition

func (*StateAction) Plannable

func (a *StateAction) Plannable() bool

func (*StateAction) Run

type StopAction

type StopAction struct{}

func NewStop

func NewStop() *StopAction

func (*StopAction) Definition

func (a *StopAction) Definition() types.ActionDefinition

func (*StopAction) Plannable

func (a *StopAction) Plannable() bool

func (*StopAction) Run

Jump to

Keyboard shortcuts

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