s() API
Signature, field, schema, and validation APIs.
Most Used
s
Parse an Ax string signature into the target language signature object.
| Field | Value |
|---|---|
| Kind | function |
| Ax concept | s |
| API section | Signatures |
| Form | s(spec: &str) |
| Returns | AxResult |
Examples
let sig = s("question:string -> answer:string")?;f
Build signatures and field types fluently when the target has a fluent helper.
| Field | Value |
|---|---|
| Kind | function |
| Ax concept | f |
| API section | Signatures |
| Form | f().input(...).output(...).build() |
| Returns | signature builder or field factory |
Important Options
input fieldsoutput fieldsfield descriptionsconstraints
AxSignature
Parsed signature with input/output fields, descriptions, and JSON schema helpers.
| Field | Value |
|---|---|
| Kind | type |
| Ax concept | AxSignature |
| API section | Signatures |
| Form | AxSignature |
| Returns | signature object |
Important Options
inputsoutputsdescription
Full Reference
Open the full Rust reference. This page highlights the s symbols most relevant to everyday use.