Standardize action results
This commit is contained in:
@@ -33,8 +33,8 @@ type StateResult struct {
|
||||
Goal string `json:"goal"`
|
||||
}
|
||||
|
||||
func (a *StateAction) Run(context.Context, ActionParams) (string, error) {
|
||||
return "internal state has been updated", nil
|
||||
func (a *StateAction) Run(context.Context, ActionParams) (ActionResult, error) {
|
||||
return ActionResult{Result: "internal state has been updated"}, nil
|
||||
}
|
||||
|
||||
func (a *StateAction) Definition() ActionDefinition {
|
||||
|
||||
Reference in New Issue
Block a user