Use when writing Rust code with `axllm` for string signatures, field descriptors, JSON schema output, validation, and typed tool argument shapes.
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.use 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.
let mut program = axllm::ax("questionText:string -> answerText:string")?;A class field constrains the model to a known label set.
let router = axllm::ax(
"messageText:string -> routeClass:class \"support, sales, engineering\"",
)?;Rust combines FieldType constraints with the generated signature builder.
let 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.
let schema = signature.to_json_schema("outputs");Attach the native signature to AxGen before the forward call.
let 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.If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.