Skip to content
@aiprotocols

AI Protocols

A unified protocol for interacting with AI models across providers and languages.

AI Protocols

A unified protocol layer for interacting with AI models across providers and languages.

🚧 Status

Early development. Core protocol (v0.1) is being defined.

🧠 Why AI Protocols?

Working with AI models today is fragmented:

  • Every provider has different APIs
  • Tool/function calling formats are inconsistent
  • Streaming responses behave differently
  • State, history, and observability are left to developers

AI Protocols aims to fix this by defining a standard interface for AI interactions.

🎯 Goals

  • Model-independent
    Use any provider without changing application logic

  • Language-agnostic
    Same protocol across Python, JavaScript, PHP, and more

  • Streaming-first
    Unified event-based streaming across all models

  • Tool calling standardization
    One format for defining and executing tools/functions

  • Built-in context & observability
    Conversation tracking, metadata, and extensibility from day one

🧩 Architecture

AI Protocols is structured into three layers:

1. Protocol (Spec)

Defines the standard:

  • Request / Response schema
  • Streaming event format
  • Tool calling interface
  • Context & metadata

spec

2. Core SDKs

Reference implementations of the protocol:

  • Python (first implementation)
  • JavaScript
  • PHP

3. Framework Adapters

Thin integrations for frameworks will be introduced after the core language SDKs are stable.

The initial focus is on building a solid, language-agnostic protocol and reference implementations.

🤝 Contributing

Contributions, ideas, and discussions are welcome.

This project is in its early stages—feedback now will shape the direction significantly.

Popular repositories Loading

  1. .github .github Public

    A unified protocol layer for interacting with AI models across providers and languages.

  2. spec spec Public

    The specification for AI Protocols.

Repositories

Showing 2 of 2 repositories

Top languages

Loading…

Most used topics

Loading…