Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Use when writing Rust code with `axllm` for string signatures, field descriptors, JSON schema output, validation, and typed tool argument shapes.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -27% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -36% | 0% |
| case-03 | ✗→✓ | ▲ Improved | -36% | 0% |
| case-05 | ✗→✓ | ▲ Improved | -44% | 0% |
| case-06 | ✗→✓ | ▲ Improved | -37% | 0% |
This skill helps an agent write Rust code with the generated Ax package axllm. Use the generated package API, examples, and manifests; do not import TypeScript-only APIs unless you are editing the TypeScript package.
axllm.API.md and axir-api.json.axir-capabilities.json.examples/.javascript-quickjs.rustuse axllm::s; let sig = s("question:string -> answer:string")?; let schema = sig.to_json_schema("outputs");
Use the string form when field names and types are enough.
rustlet mut program = axllm::ax("questionText:string -> answerText:string")?;
A class field constrains the model to a known label set.
rustlet router = axllm::ax( "messageText:string -> routeClass:class \"support, sales, engineering\"", )?;
Rust combines FieldType constraints with the generated signature builder.
rustlet mut party_type = FieldType::number(); party_type.minimum = Some(1.0); party_type.maximum = Some(12.0); let mut code_type = FieldType::string(); code_type.pattern = Some(r"^[A-Z]{3}-\d{4}$".to_string()); let signature = f() .output("partySize", party_type) .output("bookingCode", code_type) .build();
Render the output contract for tools, validators, or external consumers.
rustlet schema = signature.to_json_schema("outputs");
Attach the native signature to AxGen before the forward call.
rustlet mut program = axllm::ax("requestText:string -> partySize:number, bookingCode:string")?; program.signature = signature; let output = program.forward(&mut client, inputs)?;
Start from the complete programs under examples/, then browse the larger gallery at https://axllm.dev/rust/subsystems/s/.
s, f, AxSignaturetool, Toolprovider-api examples only when the user explicitly has provider credentials available.no-key examples for deterministic local checks and provider request mapping.tools/*/skills/ into user packages.Other measured skills in the registry, with their headline benchmark lift.