subako-function-sdk
Write Subako function packages in Rust. Each #[function] becomes a tool an agent can call:
- the function's name is the tool's name;
- its doc comment is the description the model reads;
- its input and output types, which derive
JsonSchema, become the tool's schemas.
use JsonSchema;
use ;
use ;
/// Greet someone by name.
package!
Build the module for wasm32-wasip1. The same crate built for your machine prints the package's subako-package.json with cargo run -- --subako-manifest.
To start a new package, use the template, which also packages the bundle Subako takes:
License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.