Validate a data contract
Source:crates/rydantic/examples/data_contract.rs
Inspect a model and its schema
Source:crates/rydantic/examples/user.rs
Dispatch a tagged tool call
Source:crates/rydantic/examples/tool_call.rs
ping returns {"results":["pong"]}. The last command prints the input schema. Invalid arguments produce structured errors and exit status 2.
Borrow from input JSON
Source:crates/rydantic/examples/borrowed.rs
Process arrays and NDJSON
Source:crates/rydantic/examples/streaming.rs
Await a custom validator
Source:crates/rydantic/examples/asynchronous.rs
Alice and rejects the reserved name taken through an async field check. The simulated availability check is local. Read asynchronous validation to connect an application check.
Parse dates and exact decimals
Source:crates/rydantic/examples/dates_decimal.rs
Generate a native Cap’n Proto codec
Source:crates/rydantic/examples/auto_capnp.rs
Install the official capnp compiler and make it available on PATH, then run:
.capnp schema. See native Cap’n Proto for compiler setup and schema evolution.