agent/pkg/agentic/process_register_example_test.go
Virgil 2f7ca89d80 fix(ax): name handlers and align process coverage
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-29 21:56:45 +00:00

24 lines
425 B
Go

// SPDX-License-Identifier: EUPL-1.2
package agentic
import (
"context"
core "dappco.re/go/core"
)
func ExampleProcessRegister() {
c := core.New()
ProcessRegister(c)
r := c.Action("process.run").Run(context.Background(), core.NewOptions(
core.Option{Key: "command", Value: "echo"},
core.Option{Key: "args", Value: []string{"ok"}},
))
if r.OK {
core.Println(core.Trim(r.Value.(string)))
}
// Output: ok
}