Standard icon indicating copy to clipboard operation
Standard copied to clipboard

JSON Agents - A universal JSON-native standard for describing AI agents, their capabilities, tools, runtimes, and governance in a portable, framework-agnostic format. Based on RFC 8259, JSON Schema 2...

JSON Agents

Version License JSON Schema Standard Media Type Status

A Universal JSON Specification for AI Agents


[!WARNING] Draft Specification - Work in Progress

This specification is currently in draft status and under active development. While the v1.0.0 release represents a complete and functional specification, it has not yet been formally adopted by any standards body or reached community consensus.

  • The specification may change based on community feedback and implementation experience
  • Breaking changes are possible before final standardization
  • Early implementers should expect potential revisions
  • Contributions, feedback, and discussion are welcomed and encouraged

See CONTRIBUTING.md for how to participate in the specification's development.


๐ŸŒ Overview

JSON Agents defines an open, JSON-native specification for describing AI agents, their capabilities, tools, runtimes, and governance in a single portable manifest called the Portable Agent Manifest (PAM).

It enables frameworks, SDKs, and orchestrators to interoperate seamlessly โ€” sharing agent definitions that are:

  • Human-readable: Clear JSON structure with comprehensive documentation
  • Machine-validated: Enforced through JSON Schema 2020-12
  • Framework-agnostic: Works with LangChain, OpenAI, AutoGen, MCP, and more
  • Future-proof: Extensible design with x-* namespaces and formal extension system

JSON Agents is based entirely on established JSON standards (RFC 8259, ECMA-404, ISO 21778) and includes formal specifications for URI schemes and policy expressions.


๐Ÿงฉ Core Principles

Principle Description
JSON-Native Derived from RFC 8259, ECMA-404, and ISO 21778.
Schema-Validated Enforced through JSON Schema 2020-12.
Profile-Based Modular profiles for core, exec, gov, and graph.
Governance-Aware Security, policies, and observability included by design.
Extensible extensions and x-* namespaces for safe innovation.
Framework-Neutral Compatible with any agent runtime or framework.
Formally Specified Complete URI scheme (ajson://) and policy expression language definitions.

โœจ Key Features

  • ๐ŸŽฏ 7 Standard Capabilities: Summarization, routing, retrieval, QA, classification, extraction, and generation โ€” all with formal schemas
  • ๐Ÿ”— URI Scheme: Formal ajson:// URI scheme with resolution mechanism and registry architecture
  • ๐Ÿ“œ Policy Language: Complete expression language for declarative access control and governance
  • ๐Ÿ”„ Framework Mappings: Direct conversion paths for LangChain, OpenAI, AutoGen, MCP, and others
  • ๐ŸŒ Multi-Agent Graphs: Define orchestration topologies with conditional routing
  • ๐Ÿ”’ Security First: Built-in sandboxing, policies, and cryptographic signature support
  • ๐Ÿ“Š Observability: Structured logging, metrics, and distributed tracing integration

๐Ÿ“˜ Specification

  • Main Specification: json-agents.md โ€” Complete PAM specification (888 lines)
  • Draft Format: draft-jsonagents-spec-00.md โ€” IETF-style draft
  • Canonical Schema: schema/json-agents.json โ€” JSON Schema 2020-12 validator

Key Sections:

  • Section 16: URI Scheme Definition โ€” ajson:// syntax and resolution
  • Appendix B: Policy Expression Language โ€” Grammar and operators

๐Ÿ“‚ Repository Layout

/
โ”œโ”€โ”€ README.md                      # This file
โ”œโ”€โ”€ json-agents.md                 # Complete specification (888 lines)
โ”œโ”€โ”€ draft-jsonagents-spec-00.md    # IETF-style draft
โ”œโ”€โ”€ CHANGELOG.md                   # Version history
โ”œโ”€โ”€ CONTRIBUTING.md                # Contribution guidelines
โ”œโ”€โ”€ schema/
โ”‚   โ”œโ”€โ”€ json-agents.json           # Core manifest schema
โ”‚   โ”œโ”€โ”€ message-envelope.json      # Inter-agent message format
โ”‚   โ”œโ”€โ”€ capabilities/              # 7 capability schemas
โ”‚   โ”‚   โ”œโ”€โ”€ summarization.json
โ”‚   โ”‚   โ”œโ”€โ”€ routing.json
โ”‚   โ”‚   โ”œโ”€โ”€ retrieval.json
โ”‚   โ”‚   โ”œโ”€โ”€ qa.json                # Question answering
โ”‚   โ”‚   โ”œโ”€โ”€ classification.json    # Classification
โ”‚   โ”‚   โ”œโ”€โ”€ extraction.json        # Entity extraction
โ”‚   โ”‚   โ””โ”€โ”€ generation.json        # Content generation
โ”‚   โ””โ”€โ”€ extensions/                # Extension schemas
โ”‚       โ”œโ”€โ”€ audit.json
โ”‚       โ””โ”€โ”€ memory.json
โ”œโ”€โ”€ examples/
โ”‚   โ”œโ”€โ”€ core.json                  # Minimal core profile
โ”‚   โ”œโ”€โ”€ core-exec.json             # With runtime
โ”‚   โ”œโ”€โ”€ core-exec-gov.json         # With governance
โ”‚   โ””โ”€โ”€ core-exec-gov-graph.json   # Complete multi-agent
โ”œโ”€โ”€ registry/
โ”‚   โ”œโ”€โ”€ capabilities.json          # Canonical capability registry
โ”‚   โ”œโ”€โ”€ tool-types.json            # Standard tool types
โ”‚   โ”œโ”€โ”€ profiles.json              # Profile definitions
โ”‚   โ””โ”€โ”€ extensions.json            # Extension registry
โ”œโ”€โ”€ validators/                    # Official validators
โ”‚   โ”œโ”€โ”€ python/                    # Python validator (v1.0.0) โœ…
โ”‚   โ”‚   โ”œโ”€โ”€ jsonagents/            # Package source
โ”‚   โ”‚   โ”œโ”€โ”€ tests/                 # 47 tests (100% passing)
โ”‚   โ”‚   โ””โ”€โ”€ README.md              # Documentation
โ”‚   โ””โ”€โ”€ README.md                  # Validator overview
โ””โ”€โ”€ docs/
    โ”œโ”€โ”€ index.md                   # Documentation index
    โ”œโ”€โ”€ implementers-guide.md      # Implementation guide
    โ”œโ”€โ”€ mapping-frameworks.md      # Framework conversions
    โ””โ”€โ”€ extensions.md              # Extension development

๐Ÿงช Validators

Official validators ensure manifests comply with the specification:

Language Status Version Test Coverage Location
Python โœ… Production Ready v1.0.0 47/47 (100%) validators/python/
JavaScript/TypeScript ๐Ÿ”œ Coming Soon - - -
Go ๐Ÿ”œ Coming Soon - - -

Quick validation:

cd validators/python/
pip3 install -r requirements.txt
python3 -m jsonagents.cli validate ../../examples/*.json

See validators/README.md for details.


๐Ÿ”— Specification Family

JSON Agents uses a modular profile system for progressive enhancement:

Profile Required Description Use Case
Core โœ… Yes Agent identity, tools, capabilities, and context All manifests
Exec โŒ No Runtime metadata, language, entrypoint, resources Deployable agents
Gov โŒ No Security, policies, observability, audit trails Enterprise/regulated
Graph โŒ No Multi-agent topology and message routing Orchestration

Each profile is independently implementable, allowing minimal or full-featured agents.


๐Ÿง  Quick Start Example

A minimal agent with all four profiles:

{
  "manifest_version": "1.0",
  "profiles": ["core", "exec", "gov", "graph"],
  "agent": {
    "id": "ajson://example.com/agents/router-hub",
    "name": "Router Hub",
    "version": "1.0.0"
  },
  "capabilities": [
    { "id": "routing", "description": "Route messages by intent" }
  ],
  "runtime": { 
    "type": "node", 
    "entrypoint": "dist/router.js" 
  },
  "security": { 
    "sandbox": "process" 
  },
  "policies": [
    {
      "id": "deny-external",
      "effect": "deny",
      "action": "tool.call",
      "where": "tool.endpoint !~ 'internal.corp'"
    }
  ],
  "graph": {
    "nodes": [
      { "id": "router", "ref": "ajson://example.com/agents/router-hub" },
      { "id": "faq", "ref": "ajson://example.com/agents/faq" }
    ],
    "edges": [
      { 
        "from": "router", 
        "to": "faq", 
        "condition": "message.intent == 'faq'" 
      }
    ]
  }
}

See examples/ for complete working examples.


๐Ÿš€ Use Cases

  • ๐Ÿ”„ Framework Interoperability: Convert between LangChain, OpenAI, AutoGen, and custom frameworks
  • ๐Ÿ“ฆ Agent Registries: Build discoverable catalogs of reusable agents
  • ๐Ÿ—๏ธ Multi-Agent Systems: Orchestrate complex workflows with conditional routing
  • ๐Ÿ” Enterprise Governance: Enforce security policies and audit trails
  • ๐Ÿ“Š Agent Marketplaces: Standardized format for distributing and monetizing agents
  • ๐Ÿงช Testing & Validation: Schema-based validation for CI/CD pipelines

๐Ÿ› ๏ธ Framework Support

JSON Agents provides bidirectional conversion with major frameworks:

Framework Import Export Documentation
LangChain โœ… โœ… Mapping Guide
OpenAI โœ… โœ… Mapping Guide
AutoGen โœ… โœ… Mapping Guide
MCP โœ… โš ๏ธ Mapping Guide
Hugging Face โš ๏ธ โš ๏ธ Mapping Guide
CrewAI โš ๏ธ โš ๏ธ Mapping Guide

โœ… = Fully documented | โš ๏ธ = Partial support


๐Ÿ“š Documentation

Document Purpose
Specification Complete normative specification
Implementer's Guide How to parse, validate, and use manifests
Framework Mappings Convert to/from other agent formats
Extensions Guide Create custom extensions with x-*
Examples Working manifest examples
Changelog Version history and roadmap

๐Ÿ”ง Tools & Validation

Coming Soon:

  • ajv schema validator
  • Reference implementations (Node.js, Python)
  • Framework converters
  • Web-based manifest editor

Manual Validation:

# Install ajv-cli
npm install -g ajv-cli

# Validate manifest
ajv validate -s schema/json-agents.json -d examples/core.json

๐ŸŒŸ What's New in v1.0

Recent Additions (Unreleased):

  • โœจ URI Scheme Definition: Formal ajson:// specification with resolution mechanism
  • ๐Ÿ“œ Policy Expression Language: Complete grammar for where clauses
  • ๐ŸŽฏ Complete Capability Suite: All 7 capabilities now have formal schemas
    • โœ… qa.json (Question Answering)
    • โœ… classification.json (Classification)
    • โœ… extraction.json (Entity Extraction)
    • โœ… generation.json (Content Generation)

See CHANGELOG.md for details.


๐Ÿค Community & Support


๐ŸŽฏ Roadmap

v1.0 (Current):

  • โœ… Core, Exec, Gov, Graph profiles
  • โœ… 7 capability schemas
  • โœ… URI scheme specification
  • โœ… Policy expression language
  • โœ… Framework mapping guide

v1.1 (Planned):

  • ๐Ÿ”จ Reference validator implementations
  • ๐Ÿ”จ Framework converter tools
  • ๐Ÿ”จ Additional capability schemas
  • ๐Ÿ”จ Community extensions
  • ๐Ÿ”จ Public registry service

Future:

  • Real-time profile for streaming agents
  • Evaluation profile for testing/benchmarking
  • Enhanced policy expression functions
  • Formal IETF/W3C standardization path

โš–๏ธ License

JSON Agents is released under the Apache 2.0 License. See LICENSE for details.


๐Ÿงญ Contributing

We welcome contributions! Whether you're:

  • ๐Ÿ› Reporting bugs or issues
  • ๐Ÿ’ก Proposing new features
  • ๐Ÿ“ Improving documentation
  • ๐Ÿ”ง Building tools and validators
  • ๐ŸŒ Creating framework integrations

See CONTRIBUTING.md for guidelines.

Code of Conduct: This project follows the Contributor Covenant 2.0.


๐Ÿ“Š Project Status

Aspect Status
Specification ๐ŸŸข v1.0.0 Complete
Schema Coverage ๐ŸŸข 7/7 Capabilities (100%)
Documentation ๐ŸŸข Comprehensive
Tooling ๐ŸŸก In Development
Community ๐ŸŸก Growing
Standards Track ๐ŸŸก Draft

๐Ÿ† Design Goals

JSON Agents is designed to be:

  1. Simple: Easy to read and write by humans
  2. Complete: Covers all aspects of agent definition
  3. Flexible: Modular profiles for different use cases
  4. Safe: Built-in security and governance
  5. Interoperable: Works with existing frameworks
  6. Extensible: Room for innovation without breaking changes
  7. Standard: Based on established JSON specifications

๐Ÿงฑ Standards Compliance

JSON Agents is built on solid foundations:


๐Ÿ”— Related Projects


๐Ÿ“ˆ Quick Stats

  • ๐Ÿ“„ 888 lines of specification
  • ๐ŸŽฏ 7 capability schemas (100% complete)
  • ๐Ÿ“‹ 4 profiles (core, exec, gov, graph)
  • ๐Ÿ”ง 6 tool types (http, function, plugin, system, mcp, custom)
  • ๐ŸŒ 4 examples covering all profile combinations
  • ๐Ÿ“š 8 documentation files

๐Ÿ™ Acknowledgments

JSON Agents draws inspiration from:

  • JSON Schema and JSON-LD communities
  • OpenAPI and AsyncAPI specifications
  • Agent framework developers (LangChain, AutoGen, CrewAI)
  • Model Context Protocol contributors
  • The broader open-source AI community

๐Ÿงฑ Versioning

Version identifiers follow Semantic Versioning 2.0. The default branch represents the latest stable version of the specification.


ยฉ 2025 JSON Agents. All rights reserved.