agent/pkg/brain/actions_example_test.go

21 lines
353 B
Go
Raw Permalink Normal View History

// SPDX-License-Identifier: EUPL-1.2
package brain
import (
"context"
core "dappco.re/go/core"
)
func ExampleRegister_actions() {
c := core.New(core.WithService(Register))
c.ServiceStartup(context.Background(), nil)
core.Println(c.Action("brain.list").Exists())
core.Println(c.Action("message.send").Exists())
// Output:
// true
// true
}