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 ¶
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 ¶
func (a *ConversationAction) Run(ctx context.Context, sharedState *types.AgentSharedState, params types.ActionParams) (types.ActionResult, error)
type ConversationActionResponse ¶
type ConversationActionResponse struct {
Message string `json:"message"`
}
type CustomAction ¶
type CustomAction struct {
// contains filtered or unexported fields
}
func (*CustomAction) Definition ¶
func (a *CustomAction) Definition() types.ActionDefinition
func (*CustomAction) Plannable ¶
func (a *CustomAction) Plannable() bool
func (*CustomAction) Run ¶
func (a *CustomAction) Run(ctx context.Context, sharedState *types.AgentSharedState, params types.ActionParams) (types.ActionResult, error)
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 ¶
func (a *ListRemindersAction) Run(ctx context.Context, sharedState *types.AgentSharedState, params types.ActionParams) (types.ActionResult, error)
type OneTimeReminderAction ¶
type OneTimeReminderAction struct{}
func NewOneTimeReminder ¶
func NewOneTimeReminder() *OneTimeReminderAction
func (*OneTimeReminderAction) Definition ¶
func (a *OneTimeReminderAction) Definition() types.ActionDefinition
func (*OneTimeReminderAction) Plannable ¶
func (a *OneTimeReminderAction) Plannable() bool
func (*OneTimeReminderAction) Run ¶
func (a *OneTimeReminderAction) Run(ctx context.Context, sharedState *types.AgentSharedState, params types.ActionParams) (types.ActionResult, error)
type RecurringReminderAction ¶
type RecurringReminderAction struct{}
func NewRecurringReminder ¶
func NewRecurringReminder() *RecurringReminderAction
func (*RecurringReminderAction) Definition ¶
func (a *RecurringReminderAction) Definition() types.ActionDefinition
func (*RecurringReminderAction) Plannable ¶
func (a *RecurringReminderAction) Plannable() bool
func (*RecurringReminderAction) Run ¶
func (a *RecurringReminderAction) Run(ctx context.Context, sharedState *types.AgentSharedState, params types.ActionParams) (types.ActionResult, error)
type RemoveReminderAction ¶
type RemoveReminderAction struct{}
func NewRemoveReminder ¶
func NewRemoveReminder() *RemoveReminderAction
func (*RemoveReminderAction) Definition ¶
func (a *RemoveReminderAction) Definition() types.ActionDefinition
func (*RemoveReminderAction) Plannable ¶
func (a *RemoveReminderAction) Plannable() bool
func (*RemoveReminderAction) Run ¶
func (a *RemoveReminderAction) Run(ctx context.Context, sharedState *types.AgentSharedState, params types.ActionParams) (types.ActionResult, error)
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 ¶
func (a *StateAction) Run(ctx context.Context, sharedState *types.AgentSharedState, params types.ActionParams) (types.ActionResult, error)
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 ¶
func (a *StopAction) Run(ctx context.Context, sharedState *types.AgentSharedState, params types.ActionParams) (types.ActionResult, error)
Click to show internal directories.
Click to hide internal directories.