AI-Engineer-Foundation / agent-protocol

Common interface for interacting with AI agents. The protocol is tech stack agnostic - you can use it with any framework for building agents.
https://agentprotocol.ai
MIT License
1.01k stars 120 forks source link

Added a Heartbeat endpoint to the server #27

Closed Swiftyos closed 1 year ago

Swiftyos commented 1 year ago

PR: Addition of Agent Heartbeat Endpoint

Overview

This PR addresses the proposal outlined in RFC AP-RFC-002 for the addition of a heartbeat endpoint to the agent protocol. The primary purpose is to offer a straightforward mechanism for monitoring the health of agents.

Changes Proposed:

  1. Addition of Heartbeat Endpoint:

    • New endpoint URL: /heartbeat
    • Method: GET
    • Response:
      • Status: 200 OK
  2. Error Handling Mechanisms:

    • If the endpoint does not return a 200 OK status or there's a timeout, it will be an indication of potential issues with the agent.

Motivation:

With the increasing deployment of agents in varied environments, the necessity to actively monitor their health and uptime has become paramount. This endpoint provides a simple yet effective mechanism for such monitoring, assisting in reducing agent downtimes.

Benefits to Agent Builders:

Alternatives Considered:

Compatibility:

Discussion Points:

Action Required:

Please review the changes proposed and provide feedback. If there are no concerns, I would appreciate approvals so we can merge and implement the heartbeat endpoint for better health monitoring of our agents.

jakubno commented 1 year ago

Just resolve the conflicts and let's ship it 🚀

Swiftyos commented 1 year ago

RFC added and merge conflicts resolved.