Skip to content

callable

JSON-in / JSON-out async callable used by protocol-neutral tooling.

Prefer [CallableSkill] when you need a type-erased async function object (for example registering dynamic tools) without tying call sites to a specific concrete future type.

type CallableSkill = Box<dyn Fn + Send + Sync>;

Boxed async callable: serde_json::Value in, [SdkResult] of JSON out.

On native targets the future is Send; on WASM it is single-threaded.