ax-signature

Generate Ax DSPy signature definitions for typed LLM inputs and outputs in TypeScript workflows.

2.9k|186|Updated Feb 23, 2023
One-click install
npx skills add https://github.com/ax-llm/ax --skill ax-signature-ax-llm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ax-signature
Source: https://github.com/ax-llm/ax/tree/main/website/static/typescript/.well-known/agent-skills/ax-signature
Command: npx skills add https://github.com/ax-llm/ax --skill ax-signature-ax-llm

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Ax Signature Reference helps you define typed LLM inputs and outputs correctly, so you can avoid malformed signatures, unclear field names, and validation mismatches when building structured generation workflows.

Core Features & Use Cases

  • Signature syntax for describing inputs, outputs, optional fields, internal outputs, arrays, and typed media fields.
  • Four creation styles: string-based signatures, fluent builder fields, Standard Schema validation, and hybrid composition.
  • Validation guidance for strings, numbers, dates, classes, caching hints, and output-only scratchpad fields.
  • Use it when designing type-safe extraction, classification, structured response generation, tool argument schemas, or multimodal agent workflows in TypeScript.

Quick Start

Use the ax-signature skill to draft a valid typed signature for your task and choose the best field types, validation rules, and builder style for your inputs and outputs.

Frequently Asked Questions about ax-signature

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I define typed LLM inputs and outputs in Ax DSPy signatures?

You define typed LLM inputs and outputs in Ax DSPy signatures using string syntax, fluent builder fields, or Standard Schema validation to specify field names, types, and constraints for reliable structured generation workflows.

What is the best way to validate structured generation fields in TypeScript?

The best way to validate structured generation fields in TypeScript is using Standard Schema validation within Ax signatures, ensuring type constraints, optional fields, and output-only scratchpad fields are applied correctly for reliable extraction and classification.

Can I use multimodal fields and arrays in Ax DSPy signature definitions?

Yes, you can use multimodal fields and arrays in Ax DSPy signature definitions. The signature syntax supports typed media fields with media restrictions and array structures for multimodal agent workflows in TypeScript.

How do I create tool argument schemas with fluent builder fields?

You create tool argument schemas with fluent builder fields by using the hybrid composition or fluent builder creation style in Ax signatures, applying type constraints and validation rules for tool arguments in TypeScript agent workflows.

Does Ax signature support caching hints and internal output fields?

Yes, Ax signature supports caching hints and internal output fields. You can configure output-only scratchpad fields and internal outputs to apply caching hints correctly during structured generation and validation workflows.

Why are my Ax signature validation mismatches causing malformed outputs?

Malformed outputs and validation mismatches in Ax signatures occur when field naming, type constraints, or media restrictions are applied incorrectly. Using proper signature syntax and Standard Schema validation ensures reliable structured generation.