Shared MoonBit process foundation for JSONL agent CLIs
Dependencies
struct Event {
message : String
} derive(FromJson)
let result = @agent_cli.run(
@agent_cli.Invocation::new(
command="agent",
arguments=["run", "--format", "json"],
input="Hello",
),
async fn(event : Event) {
println(event.message)
true
},
)fn Invocation::new(command~ : String, arguments~ : Array[String], input~ : String, environment? : Map[String, String], inherit_environment? : Bool) -> InvocationShared MoonBit process foundation for JSONL agent CLIs
Dependencies