Skip to content

API Reference parrot.integrations.manager

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.integrations.manager

View source

Integration Bot Manager.

Manages lifecycle of bots (Telegram, MS Teams, WhatsApp) exposing AI-Parrot agents. Loads configuration from {ENV_DIR}/integrations_bots.yaml (or telegram_bots.yaml fallback).

Alias A2AAgentConfig

Re-exported from parrot.integrations.models.A2AAgentConfig.

Alias AGENTS_DIR

Re-exported from parrot.conf.AGENTS_DIR.

Alias AbstractBot

Re-exported from parrot.bots.abstract.AbstractBot.

Alias AuditLedger

Re-exported from parrot.security.audit_ledger.AuditLedger.

Alias BotManager

Re-exported from parrot.manager.BotManager.

Alias ChannelNotifierRegistry

Re-exported from parrot.auth.oauth2.events.ChannelNotifierRegistry.

Alias ConnectionEventPublisher

Re-exported from parrot.auth.oauth2.events.ConnectionEventPublisher.

Attribute ENV_DIR

Alias HumanInteractionManager

Re-exported from parrot.human.HumanInteractionManager.

Alias IntegrationBotConfig

Re-exported from parrot.integrations.models.IntegrationBotConfig.

Class IntegrationBotManager

Manages bot integrations for exposed agents.

Supports:

  • Telegram
  • MS Teams
  • WhatsApp
  • MS Agent SDK
Parameter Type Default Description
bot_manager 'BotManager'

Attributes:

Attribute Type Description
telegram_bots Dict[str, Tuple[Bot, Dispatcher, 'TelegramAgentWrapper']]
msteams_bots Dict[str, 'MSTeamsAgentWrapper']
whatsapp_bots Dict[str, 'WhatsAppAgentWrapper']
slack_bots Dict[str, 'SlackAgentWrapper']
msagentsdk_bots Dict[str, 'MSAgentSDKWrapper']
a2a_bots Dict[str, Any]
msagent_bots Dict[str, Any]
matrix_crew Optional[object]
human_manager Optional[HumanInteractionManager]

Method IntegrationBotManager.load_config

Load configuration.

load_config() -> Optional[IntegrationBotConfig]

Returns: Optional[IntegrationBotConfig]

Method IntegrationBotManager.startup

Start all configured bots.

startup(extra_config: Optional[dict] = None) -> None

Parameter Type Default Description
extra_config Optional[dict] None Optional dict with additional integration keys. Supports "matrix_crew" → path to YAML config file for MatrixCrewTransport (FEAT-044).

Method IntegrationBotManager.shutdown

Shutdown bots.

shutdown() -> None

Alias MSAgentIntegrationConfig

Re-exported from parrot.integrations.models.MSAgentIntegrationConfig.

Alias MSAgentSDKConfig

Re-exported from parrot.integrations.models.MSAgentSDKConfig.

Alias MSAgentSDKWrapper

Re-exported from parrot.integrations.msagentsdk.wrapper.MSAgentSDKWrapper.

Alias MSTeamsAgentConfig

Re-exported from parrot.integrations.models.MSTeamsAgentConfig.

Alias MSTeamsAgentWrapper

Re-exported from parrot.integrations.msteams.wrapper.MSTeamsAgentWrapper.

Alias REDIS_URL

Re-exported from parrot.conf.REDIS_URL.

Alias SlackAgentConfig

Re-exported from parrot.integrations.models.SlackAgentConfig.

Alias SlackAgentWrapper

Re-exported from parrot.integrations.slack.wrapper.SlackAgentWrapper.

Alias TelegramAgentConfig

Re-exported from parrot.integrations.models.TelegramAgentConfig.

Alias TelegramAgentWrapper

Re-exported from parrot.integrations.telegram.wrapper.TelegramAgentWrapper.

Alias WhatsAppAgentConfig

Re-exported from parrot.integrations.models.WhatsAppAgentConfig.

Alias WhatsAppAgentWrapper

Re-exported from parrot.integrations.whatsapp.wrapper.WhatsAppAgentWrapper.

Function attach_telegram_wrapper

Bind a Telegram wrapper to the app's shared connection publisher and notifier (idempotent).

Creates the publisher/notifier on first use, attaches the bot for deliveries, and re-registers the wrapper's session hook and staged-login coordinator, which the wrapper could not do while the notifier did not exist yet. Both Telegram startup paths (IntegrationBotManager and TelegramBotManager) call this.

attach_telegram_wrapper(app: Any, wrapper: Any, bot: Any) -> None

Parameter Type Default Description
app Any
wrapper Any
bot Any

Function handle_a2a_directory

GET /a2a/directory — returns JSON array of all registered AgentCards.

Lists only agents declared with kind: a2a (including the automatic A2A companion surface of kind: msagent bots); other integration kinds (telegram/slack/etc.) never register into app["a2a_discovery_registry"].

handle_a2a_directory(request: web.Request) -> web.Response

Parameter Type Default Description
request web.Request

Returns: web.Response

Alias set_default_human_manager

Re-exported from parrot.human.set_default_human_manager.

Alias set_principal_resolver

Re-exported from parrot.auth.principal.set_principal_resolver.

Alias setup_connection_fanout

Re-exported from parrot.auth.oauth2.events.setup_connection_fanout.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally