OpenIntent Protocol: Um Protocolo Declarativo para Comunicação entre Agentes Baseada em Intenções
À medida que ecossistemas de agentes se tornam mais distribuídos, um dos principais desafios deixa de ser a implementação da lógica de negócio e passa a ser a interoperabilidade entre agentes desenvolvidos por diferentes organizações, linguagens e infraestruturas. O OpenIntent Protocol (OIP) propõe uma abordagem declarativa onde uma intenção é tratada como um contrato formal de execução,…
The OpenIntent Protocol is a declarative protocol for communication between agents based on intentions. As distributed agent ecosystems become more complex, a major challenge shifts from implementing business logic to interoperability between agents developed by different organizations, using various languages and infrastructures.
The OpenIntent Protocol proposes an approach where an intention is treated as a formal contract of execution, describing not just the desired capability, but also how this interaction should occur. This eliminates the need for agents to know communication details, allowing different implementations to be interoperable from a common specification.
Currently, the OpenIntent Protocol is in development as part of the H2A2H architecture (v0.3), with its specification still evolving and potentially changing until version 1.0. Currently, when two services or agents need to communicate, they typically need to define protocol, authentication, message serialization, error handling, discovery of the destination, and streaming or events, which tightly couples application logic to infrastructure.
For example, a typical agent communication chain is: Agent ↓ gRPC Client ↓ mTLS ↓ ProtoBuf ↓ Load Balancer ↓ Server. If communication shifts to NATS or QUIC, the agent may need to be modified. The OpenIntent Protocol aims to eliminate this coupling. The OpenIntent Protocol is based on the principle that an agent should declare what it wants to achieve, not how it should communicate.
The infrastructure already knows the intention contract. The agent only produces or consumes intentions. The protocol is divided into four main parts: Intent, Capability, Channel, and Contract. Intent defines the semantic operation, such as validating a payment, consulting inventory, issuing an invoice, or reserving a hotel. Capability defines the necessary capacity to execute the intention, such as PaymentValidation or InventoryReservation.
Each intention may have one or more mandatory capabilities. Channel formally defines how the intention should be transmitted, with the protocol specifying rather than the agent choosing. Contract describes inputs, outputs, version, compatibility, policies, security, and more. The OpenIntent Protocol supports different communication models like Request/Response, Streaming, Event-based communication, and Fire-and-Forget.
The SDK automatically generates clients, serializers, authentication, connections, handlers, and validation based on the declarative definition of the OpenIntent Protocol. When an intention is executed or published, the infrastructure is materialized by the SDK, ensuring deterministic behavior across different implementations of the protocol.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.