Agent Communication Protocol (agent/AgentProtocol.java)

dbx · agents/common/src/main/java/com/dbx/agent/AgentProtocol.java · java · Apache-2.0
ai, infra, chat, lang:java, tag:protocol, tag:distributed

Defines the messaging protocol and method constants for agent-based system communication. Use this to ensure consistent handshake and session management between distributed agents.

// Source: https://github.com/t8y2/dbx | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
package com.dbx.agent;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

public final class AgentProtocol {
    public static final int PROTOCOL_VERSION = 1;
    public static final int MULTI_SESSION_PROTOCOL_VERSION = 2;

    public static final String METHOD_HANDSHAKE = "handshake";
    public static final String METHOD_CONNECT = "connect";
    public static final String METHOD_OPEN_SESSION = "open_session";
    public static final String METHOD_CLOSE_SESSION = "close_session";
    public static final String METHOD_VALIDATE_SESSION = "validate_session";
    public

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key