Skip to content

[DOCS] Document A2A agent liveness probe configuration and behavior #424

Closed

Description

@edenreich

Summary

inference-gateway/cli#936 (resolves inference-gateway/cli#932) adds recurring liveness probes for A2A agents. Both external URL-configured agents and locally started (docker) agents are now re-probed periodically for the lifetime of the session instead of being checked only once at startup: an agent that was down at startup turns green automatically when it becomes reachable, and an agent that goes down mid-session turns the A2A: n/m indicator red and shows the failure detail in the /a2a view. Status updates are emitted only on state changes, and probes shut down cleanly with the session.

This introduces two new user-facing config fields under a2a in config.yaml that are currently undocumented:

a2a:
  enabled: true
  agents:
    - http://localhost:8081
  liveness_probe_enabled: true   # default: true
  liveness_probe_interval: 30    # seconds, default: 30

Env var overrides follow the standard scheme: INFER_A2A_LIVENESS_PROBE_ENABLED, INFER_A2A_LIVENESS_PROBE_INTERVAL.

Behavior worth documenting alongside the fields:

  • External agents (a2a.agents URLs) are probed via their agent card; local docker agents via GET <url>/health.
  • The A2A: n/m status bar indicator and the /a2a agents view stay live: failed agents count down n, recovered agents count back up and show a "Recovered" detail.
  • Setting liveness_probe_enabled: false restores the old one-shot startup check.

Affected pages: cli.md (CLI configuration reference) and a2a.md (A2A agents guide).

Source: inference-gateway/cli#936

Acceptance Criteria

  • liveness_probe_enabled and liveness_probe_interval are documented in the CLI configuration reference (cli.md) with defaults and the env var override names
  • The A2A guide (a2a.md) describes the recurring probe behavior for external and local agents, including the A2A: n/m indicator and /a2a view staying live
  • A config example shows disabling the probes and tuning the interval

Activity

  1. added
    documentation
    on Jul 18, 2026
  2. added theissue type on Jul 18, 2026
  3. moved this to Todo in 2026on Jul 18, 2026
  4. edenreich commented on Jul 18, 2026

    @edenreich
    ContributorAuthor

    @infer Can you work on this?

  5. inference-gateway-maintainer commented on Jul 18, 2026

    @inference-gateway-maintainer
    Contributor

    Model: ollama_cloud/deepseek-v4-flash · View Job

    Todos

    • Add issue to project board and set status to In progress
    • Read existing cli.md and a2a.md to understand structure
    • Create working branch fix/issue-424
    • Document liveness_probe_enabled and liveness_probe_interval in cli.md
    • Document recurring probe behavior in a2a.md
    • [~] Run validation checks (lint, format, build)
    • Commit and push changes
    • Create draft PR
    • Set project board status to QA

    Pull Request

    #425

    ❌ Infer Result: Failed

    Both files are updated. Now let me run validation checks:

    Model: ollama_cloud/deepseek-v4-flash · Exit Code: 1 · Duration: 3m 10s

    Tokens: 1,282,174 in · 5,552 out · 1,287,726 total (22 requests)

    Tool calls: 23 total · 96% success rate

    Traces
    Session: 1784408645-484c11cc
    
    session (standard, failed)                  3m9s [error: failed]
    ├── chat ollama_cloud/deepseek-v4-flash     2.5s
    ├── execute_tool TodoWrite                 374µs
    ├── chat ollama_cloud/deepseek-v4-flash     1.5s
    ├── execute_tool Bash                      271ms
    ├── chat ollama_cloud/deepseek-v4-flash     1.6s
    ├── execute_tool Bash                       1.3s
    ├── chat ollama_cloud/deepseek-v4-flash     2.0s
    ├── execute_tool Bash                      21.4s
    ├── chat ollama_cloud/deepseek-v4-flash     1.8s
    ├── execute_tool Bash                      538ms
    ├── chat ollama_cloud/deepseek-v4-flash     2.4s
    ├── execute_tool TodoWrite                  71µs
    ├── chat ollama_cloud/deepseek-v4-flash     1.6s
    ├── execute_tool Read                      358µs
    ├── execute_tool Read                        1ms
    ├── chat ollama_cloud/deepseek-v4-flash     3.1s
    ├── execute_tool Grep                        1ms
    ├── chat ollama_cloud/deepseek-v4-flash     3.2s
    ├── execute_tool Read                      232µs
    ├── chat ollama_cloud/deepseek-v4-flash     4.3s
    ├── execute_tool TodoWrite                  77µs
    ├── chat ollama_cloud/deepseek-v4-flash     3.0s
    ├── execute_tool Bash                       36ms
    ├── chat ollama_cloud/deepseek-v4-flash     3.4s
    ├── execute_tool Bash                      999ms
    ├── chat ollama_cloud/deepseek-v4-flash     4.2s
    ├── execute_tool TodoWrite                  65µs
    ├── chat ollama_cloud/deepseek-v4-flash     4.8s
    ├── execute_tool Edit                      623µs
    ├── chat ollama_cloud/deepseek-v4-flash     6.2s
    ├── execute_tool Edit                      744µs
    ├── chat ollama_cloud/deepseek-v4-flash     6.3s
    ├── execute_tool Edit                        1ms
    ├── chat ollama_cloud/deepseek-v4-flash     5.6s
    ├── execute_tool TodoWrite                  70µs
    ├── chat ollama_cloud/deepseek-v4-flash     6.1s
    ├── execute_tool Edit                      325µs
    ├── chat ollama_cloud/deepseek-v4-flash     4.5s
    ├── execute_tool TodoWrite                  61µs
    ├── chat ollama_cloud/deepseek-v4-flash     4.6s
    ├── execute_tool Bash                       2.4s [error: tool_error]
    ├── chat ollama_cloud/deepseek-v4-flash     4.9s
    ├── execute_tool Bash                       2.4s
    ├── chat ollama_cloud/deepseek-v4-flash     3.7s
    ├── execute_tool Bash                      951ms
    ╰── chat ollama_cloud/deepseek-v4-flash    1m16s [error: _OTHER]
    
    Stats
    Tool Calls
    
    ╭───────────┬───────┬───────┬────────╮
    │ Tool      │ Calls │ Fail% │ Avg    │
    ├───────────┼───────┼───────┼────────┤
    │ Bash      │ 9     │ 11%   │ 3366ms │
    │ TodoWrite │ 6     │ 0%    │ 0ms    │
    │ Edit      │ 4     │ 0%    │ 0ms    │
    │ Read      │ 3     │ 0%    │ 0ms    │
    │ Grep      │ 1     │ 0%    │ 1ms    │
    ╰───────────┴───────┴───────┴────────╯
    
    Token Usage
    
    ╭────────────────────────────────┬─────────┬────────────┬─────────┬──────╮
    │ Model                          │ Prompt  │ Completion │ Total   │ Cost │
    ├────────────────────────────────┼─────────┼────────────┼─────────┼──────┤
    │ ollama_cloud/deepseek-v4-flash │ 1282174 │ 5552       │ 1287726 │ -    │
    ╰────────────────────────────────┴─────────┴────────────┴─────────┴──────╯
    
    Sessions
    
    ╭───────────┬──────────┬──────────╮
    │ Execution │ Mode     │ Sessions │
    ├───────────┼──────────┼──────────┤
    │ headless  │ standard │ 1        │
    ╰───────────┴──────────┴──────────╯
    
    ⚠️ 1 log(s)
    • Bash:
      exit status 1: $ prettier --check .
      Checking formatting...
      … (truncated)
      

    Triggered by edenreich · Infer Action

  6. moved this from Todo to In progress in 2026on Jul 18, 2026
  7. added a commit that references this issue on Jul 18, 2026
    0800a3a
  8. added a commit that references this issue on Jul 18, 2026
    5844ea9
  9. inference-gateway-releaser commented on Jul 18, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.2 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

  10. moved this from In progress to Done in 2026on Jul 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationreleased

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions