z3t.ai

Defining Agent Schemas

Every Agent published on Z3T.ai exposes a public contract.

That contract is made of two schemas.

  • inputSchema — what your Agent needs before a Run can begin.
  • outputSchema — what your Agent promises to return after a successful Run.

Together they make your Agent self-describing: the platform can validate Runs, generate forms and documentation, produce SDK types, and let other Agents call yours — all from these two schemas.

The two halves

Principles

The same ideas apply to both schemas.

  • Required by default. Every field is required unless you explicitly mark it optional.
  • Design for people. Use business-concept names, not implementation details.
  • Ask only for what matters. Smaller schemas create better experiences.
  • Keep contracts stable. Your schema is a public API — evolve it gradually and version breaking changes.

To learn how contracts evolve safely, see Versioning.

Build them with the SDK

You don't write raw JSON Schema by hand.

The Z3T.ai SDKs give you a schema builder that emits the correct JSON Schema and x-z3t-* extensions for you, with full type inference.


Continue learning

Next step