Documentation
¶
Overview ¶
Code generated by go generate; DO NOT EDIT. This file was generated at 2023-09-21 13:57:46.184908 -0300 -03 m=+0.011291793
Index ¶
- func NewMathAction() action_structs.Action
- type MathAction
- func (a *MathAction) CheckRequiredParams() error
- func (a *MathAction) Execute(request *action_structs.ActionRequest) ([]*response_object_structs.ResponseObject, error)
- func (a *MathAction) GetDescription() string
- func (a *MathAction) GetName() string
- func (a *MathAction) GetNotification() string
- func (a *MathAction) GetParam(key string) (string, error)
- func (a *MathAction) GetParams() []*action_structs.ActionParameter
- func (a *MathAction) GetSchema() *functions.FunctionDefinition
- func (a *MathAction) MustGetParam(key string) string
- func (a *MathAction) RunPostActions(request *action_structs.ActionRequest) error
- func (a *MathAction) RunPreActions(request *action_structs.ActionRequest) error
- func (a *MathAction) SetMessage(msg *memory.Message)
- func (a *MathAction) SetParam(key, value string)
- func (a *MathAction) SkipFunctionCall() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMathAction ¶
func NewMathAction() action_structs.Action
NewMathAction creates a new MathAction with Params initialized
Types ¶
type MathAction ¶
type MathAction struct {
Name string
Description string
Params *action_structs.ActionParameterSet
Extra map[string]interface{}
}
func (*MathAction) CheckRequiredParams ¶
func (a *MathAction) CheckRequiredParams() error
CheckRequiredParams checks if all required params are set
func (*MathAction) Execute ¶
func (a *MathAction) Execute(request *action_structs.ActionRequest) ([]*response_object_structs.ResponseObject, error)
func (*MathAction) GetDescription ¶
func (a *MathAction) GetDescription() string
func (*MathAction) GetName ¶
func (a *MathAction) GetName() string
func (*MathAction) GetNotification ¶
func (a *MathAction) GetNotification() string
func (*MathAction) GetParams ¶
func (a *MathAction) GetParams() []*action_structs.ActionParameter
func (*MathAction) GetSchema ¶
func (a *MathAction) GetSchema() *functions.FunctionDefinition
func (*MathAction) MustGetParam ¶
func (a *MathAction) MustGetParam(key string) string
func (*MathAction) RunPostActions ¶
func (a *MathAction) RunPostActions(request *action_structs.ActionRequest) error
func (*MathAction) RunPreActions ¶
func (a *MathAction) RunPreActions(request *action_structs.ActionRequest) error
func (*MathAction) SetMessage ¶
func (a *MathAction) SetMessage(msg *memory.Message)
func (*MathAction) SetParam ¶
func (a *MathAction) SetParam(key, value string)
func (*MathAction) SkipFunctionCall ¶
func (a *MathAction) SkipFunctionCall() bool
Click to show internal directories.
Click to hide internal directories.