Gateway Config • AI Agent SDK

GatewayConfig: Configuration for the gateway server.

GatewayConfig

Defined in the config module.

AI Agent

Configuration for the gateway server.

Attributes: host: Host to bind to port: Port to listen on cors_origins: Allowed CORS origins allowed_origins: Allowed origins for WebSocket connections (CSWSH defense) auth_token: Optional authentication token max_connections: Maximum concurrent connections max_sessions_per_agent: Maximum sessions per agent (0 = unlimited) session_config: Default session configuration heartbeat_interval: Heartbeat interval in seconds reconnect_timeout: Time to wait for reconnection before closing session ssl_cert: Path to SSL certificate (for HTTPS/WSS) ssl_key: Path to SSL key max_buffered_bytes: Maximum buffered bytes before slow consumer disconnect (default 1MB) max_queued_frames: Maximum queued outbound frames per client before slow consumer disconnect (0 = unlimited frame count; byte ceiling still applies). Default 1000. push: Push notification service configuration auth_scopes: Optional operator scope policy mapping token -> list of scope names (see OperatorScope). When None/empty (default), any successfully authenticated client is granted all scopes — identical to the previous binary behaviour. Single-operator setups are unaffected.

Properties

ResponseField str

No description available.

ResponseField int

No description available.

ResponseField Optional[str]

No description available.

ResponseField List[str]

No description available.

ResponseField List[str]

No description available.

ResponseField List[str]

No description available.

ResponseField Optional[str]

No description available.

ResponseField int

No description available.

ResponseField int

No description available.

ResponseField SessionConfig

No description available.

ResponseField int

No description available.

ResponseField int

No description available.

ResponseField float

No description available.

ResponseField Optional[str]

No description available.

ResponseField Optional[str]

No description available.

ResponseField int

No description available.

ResponseField int

No description available.

ResponseField int

No description available.

ResponseField int

No description available.

ResponseField str

No description available.

ResponseField Optional[float]

No description available.

ResponseField bool

No description available.

ResponseField Optional[float]

No description available.

ResponseField int

No description available.

ResponseField int

No description available.

ResponseField int

No description available.

ResponseField PushConfig

No description available.

ResponseField Optional

No description available.

ResponseField ApiConfig

No description available.

ResponseField LivenessConfig

No description available.

ResponseField TurnLockConfig

No description available.

ResponseField EmergencyStopConfig

No description available.

ResponseField AttachmentConfig

No description available.

ResponseField 'Optional[TurnExecutorProtocol]'

No description available.

Methods

Internal & Generic Methods
  • to_dict: Convert to dictionary (hides sensitive data).

Source

View on GitHub

praisonaiagents/gateway/config.py at line 1128


Related Documentation