Skip to main content

ApiConfig

Defined in the config module.
AI Agent Configuration for additive protocol surfaces on the gateway app. All surfaces are opt-in. When both are False (default), no extra routes are mounted and the gateway behaves exactly as before. Attributes: openai: Serve OpenAI-compatible endpoints (/v1/chat/completions, /v1/responses, /v1/models) backed by the gateway’s live agents and sessions. mcp: Serve an MCP JSON-RPC endpoint (/mcp) exposing the gateway’s registered agents as callable tools.

Properties

bool
No description available.
bool
No description available.

Methods

enabled()

Whether any additional protocol surface is enabled.
  • from_dict: Create from a parsed gateway.api mapping (tolerant of None).
  • to_dict: Convert to dictionary.

Source

View on GitHub

praisonaiagents/gateway/config.py at line 672

Configuration Overview

Agent Config