Shared MoonBit process foundation for agent CLIs
Dependencies
struct Event {
message : String
} derive(FromJson)
async fn example() -> @cli.RunResult {
@cli.run(
@cli.Invocation::new(
command="agent",
arguments=["run", "--format", "json"],
input="Hello",
),
async fn(event : Event) {
println(event.message)
true
},
)
}import {
"totto2727/agent-core-sdk/cli",
}nix develop
moon info
moon check
moon test
moon build
moon package --listShared MoonBit process foundation for agent CLIs
Dependencies