vow-agent
vow-agent defines tool metadata with descriptor and the standard run(caps, input) -> Result contract. Install with vpm:
curl -fsSL https://install.vowlang.dev | shexport PATH="$HOME/.local/bin:$PATH"vpm add vow-agentvpm installQuick start
Section titled “Quick start”fn run(caps: Caps, input: String) -> Result<String, int> { if len(input) == 0 { return Err(1); } return Ok("{\"echo\":" + input + "}");}
fn main(caps: Caps) -> int { return match run(caps, "{\"ok\":true}") { Ok(s) => { print s; 0 }, Err(_e) => 0 - 1, };}Run tests
Section titled “Run tests”Host runner (Python 3):
python3 tools/runner.py examples/echo_tool.vowPackage tests:
cd vow-libs/vow-agent && vow test tests/agent.vow