ax(brain): rename direct options for clarity
Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
parent
c27f019a02
commit
ce6f016d63
4 changed files with 4 additions and 4 deletions
|
|
@ -78,7 +78,7 @@ func NewPrep() *PrepSubsystem {
|
|||
}
|
||||
|
||||
// c.Action("agentic.dispatch").Run(ctx, options)
|
||||
// c.Actions() // ["agentic.dispatch", "agentic.prep", "agentic.status", "agentic.verify"]
|
||||
// core.Println(c.Actions()) // inspect the registered action names at startup
|
||||
func (s *PrepSubsystem) OnStartup(ctx context.Context) core.Result {
|
||||
c := s.Core()
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import (
|
|||
core "dappco.re/go/core"
|
||||
)
|
||||
|
||||
type directOptions struct{}
|
||||
type DirectOptions struct{}
|
||||
|
||||
// subsystem := brain.NewDirect()
|
||||
// _ = subsystem.OnStartup(context.Background())
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ import (
|
|||
// subsystem := brain.NewDirect()
|
||||
// core.Println(subsystem.Name()) // "brain"
|
||||
type DirectSubsystem struct {
|
||||
*core.ServiceRuntime[directOptions]
|
||||
*core.ServiceRuntime[DirectOptions]
|
||||
apiURL string
|
||||
apiKey string
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,6 +11,6 @@ import (
|
|||
// core.Println(subsystem.OK) // true
|
||||
func Register(c *core.Core) core.Result {
|
||||
subsystem := NewDirect()
|
||||
subsystem.ServiceRuntime = core.NewServiceRuntime(c, directOptions{})
|
||||
subsystem.ServiceRuntime = core.NewServiceRuntime(c, DirectOptions{})
|
||||
return core.Result{Value: subsystem, OK: true}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue