Skip to content

API Reference parrot.manager.manager

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

parrot.manager.manager

View source

Chatbot Manager.

Tool for instanciate, managing and interacting with Chatbot through APIs.

Alias A2UIHandler

Re-exported from parrot.handlers.a2ui.A2UIHandler.

Alias AbstractBot

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

Alias AgentAccessDenied

Re-exported from parrot.auth.agent_guard.AgentAccessDenied.

Alias AgentCrew

Re-exported from parrot.bots.flows.crew.AgentCrew.

Alias AgentFactoryHandler

Re-exported from parrot.handlers.agents.factory.AgentFactoryHandler.

Alias AgentKnowledgeHandler

Re-exported from parrot.handlers.knowledge.AgentKnowledgeHandler.

Alias AgentMCPMount

Re-exported from parrot.mcp.agent_mount.AgentMCPMount.

Alias AgentMCPMountConfig

Re-exported from parrot.mcp.config.AgentMCPMountConfig.

Class AgentNotFoundError

Raised by :meth:BotManager.reload_agent for an unknown agent name.

Neither self.registry nor self._bots know this name — callers (e.g. the Studio reload endpoint, FEAT-467 TASK-2512) map this to HTTP 404.

Alias AgentRegistry

Re-exported from parrot.registry.AgentRegistry.

Class AgentReloadError

Raised by :meth:BotManager.reload_agent when a rebuild fails.

Raised for a corrupt YAML definition, a module re-import error, an invalid database-origin bot config, or an agent whose registration has no reloadable origin. The previous registration and instance are left untouched — callers (e.g. FEAT-467 TASK-2512) map this to HTTP 422.

Alias AgentTalk

Re-exported from parrot.handlers.agent.AgentTalk.

Alias ArtifactStore

Re-exported from parrot.storage.ArtifactStore.

Alias AuditSink

Re-exported from parrot.mcp.principal_guard.AuditSink.

Alias BOT_CLEANUP_TIMEOUT

Re-exported from parrot.conf.BOT_CLEANUP_TIMEOUT.

Alias BasicAgent

Re-exported from parrot.bots.agent.BasicAgent.

Alias BasicBot

Re-exported from parrot.bots.basic.BasicBot.

Alias BotConfigHandler

Re-exported from parrot.handlers.config_handler.BotConfigHandler.

Alias BotConfigStorage

Re-exported from parrot.registry.BotConfigStorage.

Alias BotConfigTestHandler

Re-exported from parrot.handlers.testing_handler.BotConfigTestHandler.

Alias BotHandler

Re-exported from parrot.handlers.chat.BotHandler.

Class BotManager

BotManager.

Manage Bots/Agents and interact with them through via aiohttp App. Deploy and manage chatbots and agents using a RESTful API.

Parameter Type Default Description
enable_database_bots bool ENABLE_DATABASE_BOTS When True, load bots from the database via _load_database_bots(). Defaults to ENABLE_DATABASE_BOTS (False unless overridden in config/env).
enable_crews bool ENABLE_CREWS When True, initialize CrewRedis and call load_crews() during startup. Defaults to ENABLE_CREWS.
enable_registry_bots bool ENABLE_REGISTRY_BOTS When True, run the full AgentRegistry pipeline (load_modules, discover_config_agents, load_agent_definitions, instantiate_startup_agents). Defaults to ENABLE_REGISTRY_BOTS (True).
enable_experts bool True When True, load domain experts during registry discovery. Defaults to True.
enable_swagger_api bool ENABLE_SWAGGER When True, register the OpenAPI/Swagger routes via setup_swagger(). Defaults to ENABLE_SWAGGER.
crew_storage_backend Optional[str] None Optional crew definition backend override.
crew_migration Optional[bool] None Optional crew definition migration override.

Attributes:

Attribute Type Description
app web.Application
studio StudioAgentRuntime | None
registry AgentRegistry
enable_database_bots bool
enable_crews bool
enable_registry_bots bool
enable_experts bool
enable_swagger_api bool
crew_storage Optional[CrewDefinitionStorage]

Method BotManager.get_bot_class

Get bot class by name, searching in:

  1. parrot.bots (core bots)
  2. parrot.agents (plugin agents)

get_bot_class(bot_name: str) -> Optional[Type]

Parameter Type Default Description
bot_name str Name of the bot/agent class

Returns: Optional[Type] — Bot class if found, None otherwise

Method BotManager.get_or_create_bot

Get existing bot or create new one from class name.

get_or_create_bot(bot_name: str, **kwargs)

Parameter Type Default Description
bot_name str Name of the bot/agent class
**kwargs {} Arguments to pass to bot constructor

Method BotManager.load_bots

Load and register all bots using the registry and optional database.

load_bots(app: web.Application) -> None

Parameter Type Default Description
app web.Application The aiohttp Application instance passed during startup.

Method BotManager.create_bot

Create a Bot and add it to the manager.

create_bot(class_name: Any = None, name: str = None, **kwargs) -> AbstractBot

Parameter Type Default Description
class_name Any None
name str None
**kwargs {}

Returns: AbstractBot

Method BotManager.add_bot

Add a Bot to the manager.

add_bot(bot: AbstractBot) -> None

Parameter Type Default Description
bot AbstractBot

Raises:

  • ValueError — bot is a Studio instance (_studio_key); those live in StudioRuntimeCache only.

Method BotManager.get_bot

Get a Bot by name.

get_bot(name: str, new: bool = False, session_id: str = '', request: Optional[web.Request] = None, **kwargs) -> AbstractBot

Parameter Type Default Description
name str Name of the bot to get.
new bool False If True, create a new instance instead of returning existing one.
session_id str '' Session identifier for creating unique temporary instances.
request Optional[web.Request] None Optional aiohttp request. When provided, the caller's subject is checked against any PBAC policies registered for this bot via FEAT-153 enforce_agent_access. None means programmatic invocation — no PBAC check is performed (HTTP-scoped enforcement).
**kwargs {} Additional arguments to pass to bot constructor when new=True.

Returns: AbstractBot — Bot instance (existing or newly created).

Raises:

  • AgentAccessDenied — When request is provided and the caller's subject does not match the bot's PBAC policies.

Method BotManager.get_studio_bot

A Studio agent by qualified key, from the Studio runtime cache (never _bots).

PBAC on key.qualified runs FIRST in both forms (before any build, the FEAT-153 ordering): new=False → the revalidated base instance; new=True (test chat) → the session instance for session_id.

get_studio_bot(key: StudioAgentKey, *, new: bool = False, session_id: str = '', request: Optional[web.Request] = None) -> Optional[AbstractBot]

Parameter Type Default Description
key StudioAgentKey
new bool False
session_id str ''
request Optional[web.Request] None

Returns: Optional[AbstractBot]

Raises:

  • StudioStorageUnavailable — the Studio runtime is not installed (backend is not database).
  • ValueError — new=True without a session_id.

Method BotManager.remove_bot

Remove a Bot by name.

remove_bot(name: str) -> None

Parameter Type Default Description
name str

Method BotManager.reload_agent

Hot-swap a registered agent with a freshly rebuilt instance.

Rebuilds name from its origin — a YAML/definition file, a decorator/module (.py) agent, or a database-origin bot — WITHOUT touching any live state. Only after the rebuild succeeds does this method evict the cached instance and swap the registration, so a failed reload always leaves the previous agent registered and serving (spec §7 "Reload failure must not unregister").

In-flight requests against the OLD instance are unaffected — they keep running against the object reference they already hold. NEW calls to :meth:get_bot resolve the swapped-in instance immediately. Working memory / conversation state is NOT migrated between the old and new instance (spec §7 "Reload memory contract") — this is a deliberate limitation, not a bug.

reload_agent(name: str) -> ReloadResult

Parameter Type Default Description
name str Registered agent name — known to either self.registry (YAML/decorator-origin) or self._bots (DB-origin).

Returns: ReloadResult — class:ReloadResult describing the outcome.

Raises:

  • AgentNotFoundError — name is not a known agent.
  • AgentReloadError — The rebuild failed — corrupt YAML, import error, invalid DB config, or an agent whose registration has no reloadable origin. The previous registration and instance are left untouched.

Method BotManager.get_user_bot

Resolve a user-defined bot via session cache → DB load → instantiate.

Returns None when the user is not authenticated or no row matches.

get_user_bot(request: web.Request, chatbot_id: Any) -> Optional[AbstractBot]

Parameter Type Default Description
request web.Request
chatbot_id Any

Returns: Optional[AbstractBot]

Method BotManager.invalidate_user_bot

Drop a user-bot from the session cache (used after PATCH/DELETE).

invalidate_user_bot(session: Any, chatbot_id: Any) -> None

Parameter Type Default Description
session Any
chatbot_id Any

Method BotManager.get_bots

Get all Bots declared on Manager.

get_bots() -> Dict[str, AbstractBot]

Returns: Dict[str, AbstractBot]

Method BotManager.create_agent

create_agent(class_name: Any = None, name: str = None, **kwargs) -> AbstractBot

Parameter Type Default Description
class_name Any None
name str None
**kwargs {}

Returns: AbstractBot

Method BotManager.add_agent

Add a Agent to the manager.

add_agent(agent: AbstractBot) -> None

Parameter Type Default Description
agent AbstractBot

Method BotManager.remove_agent

Remove a Bot by name.

remove_agent(agent: AbstractBot) -> None

Parameter Type Default Description
agent AbstractBot

Method BotManager.create_ephemeral_user_bot

Create an ephemeral (in-memory-only) user bot and schedule warm-up.

No row is written to navigator.users_bots. The bot lives only in self._bots until it is either promoted (promote_user_bot) or discarded (discard_ephemeral_user_bot / TTL expiry).

Accepts typed ownership: pass either the legacy user_id: int (for human-owned bots, backward compat) or owner_id: str + owner_kind (for agent-owned sub-bots — FEAT-208).

create_ephemeral_user_bot(user_id: Optional[int] = None, config: Optional[Dict[str, Any]] = None, uploaded_paths: Optional[List[dict]] = None, *, owner_id: Optional[str] = None, owner_kind: str = 'user', ttl_seconds: int = 86400)

Parameter Type Default Description
user_id Optional[int] None Owning human user ID (legacy path; HTTP handler uses this).
config Optional[Dict[str, Any]] None Dict matching the UserBotModel field names (plain values; mcp_config_plain / tools_config_plain are the raw lists).
uploaded_paths Optional[List[dict]] None List of document dicts from _ingest_uploads ([{name, path, url, size, ...}]).
owner_id Optional[str] None Canonical owner string ID (new path — FEAT-208). Use for agent-owned sub-bots (e.g. "agent:parent-123").
owner_kind str 'user' "user" (default) or "agent". Ignored when user_id is provided (normalised automatically).
ttl_seconds int 86400 Seconds until this ephemeral bot expires. Defaults to 86400 (24 h).

Raises:

  • ValueError — On invalid config, missing owner, or instantiation failure.

Method BotManager.save_user_bot

INSERT a UserBotModel row into navigator.users_bots.

This is the user-bot analogue of :meth:save_agent, which writes navigator.ai_bots via BotModel. Do NOT use save_agent for user bots — the tables are different.

Used by :meth:promote_user_bot and reusable for any flow that needs to persist a UserBotModel from within BotManager.

save_user_bot(model: UserBotModel) -> UserBotModel

Parameter Type Default Description
model UserBotModel A fully-populated UserBotModel instance (encrypted blobs already set via set_mcp_config / set_tools_config).

Returns: UserBotModel — The same model after it has been persisted to DB.

Raises:

  • RuntimeError — If self.app is not set (no DB available).

Method BotManager.promote_user_bot

Promote an ephemeral bot to a persisted navigator.users_bots row.

Verifies the bot is in phase="ready", writes the DB row via :meth:save_user_bot, removes the ephemeral registry entry, and optionally dumps the FAISS index to S3 if rag_mode == "vector".

promote_user_bot(chatbot_id: str, user_id: int) -> UserBotModel

Parameter Type Default Description
chatbot_id str Canonical UUID string of the bot to promote.
user_id int Owning user ID (ownership check).

Returns: UserBotModel — The persisted UserBotModel.

Raises:

  • ValueError — If the bot is not found, not owned by user_id, already promoted, or not in phase="ready".

Method BotManager.get_ephemeral_status

Return the EphemeralAgentStatus for chatbot_id owned by the given owner.

Accepts either the legacy user_id: int (backward compat) or the new owner_id: str keyword argument (FEAT-208 agent-owner path).

get_ephemeral_status(chatbot_id: str, user_id: Optional[int] = None, *, owner_id: Optional[str] = None)

Parameter Type Default Description
chatbot_id str Canonical UUID string.
user_id Optional[int] None Owning human user ID (legacy positional path).
owner_id Optional[str] None Canonical owner string ID (new keyword path).

Raises:

  • ValueError — If neither user_id nor owner_id is provided.

Method BotManager.discard_ephemeral_user_bot

Remove an ephemeral bot from memory and clean up its resources.

Accepts either the legacy user_id: int (backward compat) or the new owner_id: str keyword argument (FEAT-208 agent-owner path).

discard_ephemeral_user_bot(chatbot_id: str, user_id: Optional[int] = None, *, owner_id: Optional[str] = None) -> bool

Parameter Type Default Description
chatbot_id str Canonical UUID string.
user_id Optional[int] None Owning human user ID (legacy positional path; ownership check).
owner_id Optional[str] None Canonical owner string ID (new keyword path; ownership check).

Returns: bool — True if the bot was found and removed, False otherwise.

Raises:

  • ValueError — If neither user_id nor owner_id is provided.

Method BotManager.save_agent

Save a Agent to the DB.

save_agent(name: str, **kwargs) -> None

Parameter Type Default Description
name str
**kwargs {}

Method BotManager.get_app

Get the app.

get_app() -> web.Application

Returns: web.Application

Method BotManager.setup

Register BotManager routes on app.

setup(app: web.Application, *, agent_mount_config: Optional[AgentMCPMountConfig] = None, agent_mount_auth_template: Optional[MCPServerConfig] = None, agent_mount_pbac_resolver: Optional[PBACResolver] = None, agent_mount_audit_sink: Optional[AuditSink] = None, studio_routes: bool = True) -> web.Application

Parameter Type Default Description
app web.Application The aiohttp application to configure.
agent_mount_config Optional[AgentMCPMountConfig] None Optional FEAT-477 agent-as-MCP-server mount configuration. When provided, one MCP endpoint per listed agent (plus the optional aggregate) is registered alongside the tool-level ParrotMCPServer, if any (G11 — the tool-level server's behavior is unchanged either way). Defaults to None (no agent mount — today's behavior).
agent_mount_auth_template Optional[MCPServerConfig] None Optional MCPServerConfig whose auth fields (auth_method, oauth2_*, api_key_store) are copied onto every per-agent server this mount builds. Without one, every agent-mount request gets AuthMethod.NONE and is rejected by principal resolution (fail-closed — never open — but also never functional). Only read when agent_mount_config is also given.
agent_mount_pbac_resolver Optional[PBACResolver] None Optional (pctx, resource, required_permissions) -> bool PBAC resolver (the PBACPermissionResolver.can_execute shape) enforcing tools/list/tools/call on the agent mount. None (default) denies every call — deny-by-default, not a silent no-op. Only read when agent_mount_config is also given.
agent_mount_audit_sink Optional[AuditSink] None Optional callback invoked with every agent-mount tools/call decision and principal-resolution failure. None (default) only logs. Only read when agent_mount_config is also given.
studio_routes bool True When False the default /api/v1/astudio mount is skipped (a host mounts Studio itself, e.g. under a tenant prefix, via setup_studio_routes).

Returns: web.Application — The configured app.

Method BotManager.setup_registry_only

Mount the agent registry without setup() (no routes, no startup agents).

Idempotent per app. Appends exactly one on_startup, one on_shutdown and one on_cleanup hook; non-Studio bots only. Also installs the Studio runtime hooks once (add_studio_runtime_hooks).

setup_registry_only(app: web.Application, *, import_modules: bool = False, load_definitions: bool = False, turn_persistence: bool = False) -> None

Parameter Type Default Description
app web.Application The aiohttp application.
import_modules bool False Import AGENTS_DIR modules at startup.
load_definitions bool False Load YAML agent definitions at startup.
turn_persistence bool False Also initialize ChatStorage and the turn bus at startup (FEAT-886).

Raises:

  • RuntimeError — When a scope resolver is installed on app and either opt-in flag is True (tenant hosts never import host-wide content).

Method BotManager.on_startup

On startup.

on_startup(app: web.Application) -> None

Parameter Type Default Description
app web.Application

Method BotManager.on_shutdown

On shutdown.

on_shutdown(app: web.Application) -> None

Parameter Type Default Description
app web.Application

Method BotManager.add_crew

Register a crew in the manager and persist to Redis.

add_crew(name: str, crew: AgentCrew, crew_def: CrewDefinition) -> None

Parameter Type Default Description
name str Unique name for the crew
crew AgentCrew AgentCrew instance
crew_def CrewDefinition Crew definition containing metadata

Raises:

  • ValueError — If crew with same name already exists

Method BotManager.get_crew

Get a crew by name or ID. Loads from Redis if not in memory.

get_crew(identifier: str, as_new: bool = False, tenant: Optional[str] = None) -> Optional[Tuple[AgentCrew, CrewDefinition]]

Parameter Type Default Description
identifier str Crew name or crew_id
as_new bool False If True, creates a new instance (default False)
tenant Optional[str] None Tenant identifier

Returns: Optional[Tuple[AgentCrew, CrewDefinition]] — Tuple of (AgentCrew, CrewDefinition) if found, None otherwise

Method BotManager.list_crews

List all registered crews.

list_crews(tenant: Optional[str] = None) -> Dict[str, Tuple[AgentCrew, CrewDefinition]]

Parameter Type Default Description
tenant Optional[str] None

Returns: Dict[str, Tuple[AgentCrew, CrewDefinition]] — Dictionary mapping crew names to (AgentCrew, CrewDefinition) tuples

Method BotManager.remove_crew

Remove a crew from the manager and Redis.

remove_crew(identifier: str, tenant: Optional[str] = None) -> bool

Parameter Type Default Description
identifier str Crew name or crew_id
tenant Optional[str] None Tenant identifier

Returns: bool — True if removed, False if not found

Method BotManager.persist_crew_update

Persist a same-name update once before replacing its cache entry.

persist_crew_update(identifier: str, crew: AgentCrew, crew_def: CrewDefinition) -> None

Parameter Type Default Description
identifier str Existing crew name or identifier.
crew AgentCrew Rebuilt crew instance for the updated definition.
crew_def CrewDefinition Requested updated definition.

Raises:

  • CrewStorageConflict — If the requested update renames or conflicts.
  • CrewStorageUnavailable — If the configured store cannot persist it.

Method BotManager.update_crew

Update an existing crew.

update_crew(identifier: str, crew: AgentCrew, crew_def: CrewDefinition) -> bool

Parameter Type Default Description
identifier str Crew name or crew_id
crew AgentCrew Updated AgentCrew instance
crew_def CrewDefinition Updated crew definition

Returns: bool — True if updated, False if not found

Method BotManager.load_crews

Load all crews from Redis on startup.

This method is called during application startup to restore all previously saved crews from Redis into memory.

load_crews() -> None

Method BotManager.sync_crews

Synchronize in-memory crews with Redis.

This handles:

  1. Loading new crews added by other workers
  2. Removing crews deleted by other workers

sync_crews() -> None

Method BotManager.get_crew_stats

Get statistics about registered crews.

get_crew_stats() -> Dict[str, Any]

Returns: Dict[str, Any] — Dictionary with crew statistics

Alias BotModel

Re-exported from parrot.handlers.models.BotModel.

Alias CREW_DEFINITION_MIGRATION

Re-exported from parrot.conf.CREW_DEFINITION_MIGRATION.

Alias CREW_DEFINITION_STORAGE

Re-exported from parrot.conf.CREW_DEFINITION_STORAGE.

Alias ChannelLinksHandler

Re-exported from parrot.handlers.channel_links.ChannelLinksHandler.

Alias ChatHandler

Re-exported from parrot.handlers.chat.ChatHandler.

Alias ChatInteractionHandler

Re-exported from parrot.handlers.chat_interaction.ChatInteractionHandler.

Alias ChatStorage

Re-exported from parrot.storage.ChatStorage.

Alias ChatStorageHydrationSource

Re-exported from parrot.storage.hydration.ChatStorageHydrationSource.

Alias Chatbot

Re-exported from parrot.bots.chatbot.Chatbot.

Alias ChatbotHandler

Re-exported from parrot.handlers.ChatbotHandler.

Alias CommCenterHandler

Re-exported from parrot.handlers.comm_center.CommCenterHandler.

Alias ConfigError

Re-exported from parrot.exceptions.ConfigError.

Alias ConnectionEventsHandler

Re-exported from parrot.handlers.connection_events.ConnectionEventsHandler.

Alias ConnectionsHandler

Re-exported from parrot.handlers.connections.ConnectionsHandler.

Alias CrewDefinition

Re-exported from parrot.models.crew_definition.CrewDefinition.

Alias CrewDefinitionStorage

Re-exported from parrot.handlers.crew.definition_storage.CrewDefinitionStorage.

Alias CrewExecutionHandler

Re-exported from parrot.handlers.crew.execution_handler.CrewExecutionHandler.

Alias CrewExecutionHistoryHandler

Re-exported from parrot.handlers.crew.execution_history_handler.CrewExecutionHistoryHandler.

Alias CrewHandler

Re-exported from parrot.handlers.crew.handler.CrewHandler.

Alias CrewPostgres

Re-exported from parrot.handlers.crew.postgres_persistence.CrewPostgres.

Alias CrewRedis

Re-exported from parrot.handlers.crew.redis_persistence.CrewRedis.

Alias CrewSpecialNodeCatalogHandler

Re-exported from parrot.handlers.crew.special_nodes.CrewSpecialNodeCatalogHandler.

Alias CrewStorageConflict

Re-exported from parrot.handlers.crew.definition_storage.CrewStorageConflict.

Alias CrewStorageUnavailable

Re-exported from parrot.handlers.crew.definition_storage.CrewStorageUnavailable.

Alias CrewToolCatalogHandler

Re-exported from parrot.handlers.crew.tool_catalog.CrewToolCatalogHandler.

Alias DashboardHandler

Re-exported from parrot.handlers.dashboard_handler.DashboardHandler.

Alias DashboardTabHandler

Re-exported from parrot.handlers.dashboard_handler.DashboardTabHandler.

Alias DataAnalystHandler

Re-exported from parrot.handlers.agents.data.DataAnalystHandler.

Alias DatabaseDriversHandler

Re-exported from parrot.handlers.database.DatabaseDriversHandler.

Alias DatabaseFormatsHandler

Re-exported from parrot.handlers.database.DatabaseFormatsHandler.

Alias DatabaseIntentsHandler

Re-exported from parrot.handlers.database.DatabaseIntentsHandler.

Alias DatabaseRolesHandler

Re-exported from parrot.handlers.database.DatabaseRolesHandler.

Alias DatabaseSchemasHandler

Re-exported from parrot.handlers.database.DatabaseSchemasHandler.

Alias DatasetManagerHandler

Re-exported from parrot.handlers.datasets.DatasetManagerHandler.

Alias ENABLE_CREWS

Re-exported from parrot.conf.ENABLE_CREWS.

Alias ENABLE_DASHBOARDS

Re-exported from parrot.conf.ENABLE_DASHBOARDS.

Alias ENABLE_DATABASE_BOTS

Re-exported from parrot.conf.ENABLE_DATABASE_BOTS.

Alias ENABLE_REGISTRY_BOTS

Re-exported from parrot.conf.ENABLE_REGISTRY_BOTS.

Alias ENABLE_STRUCTURED_OUTPUT_TRANSPORT

Re-exported from parrot.conf.ENABLE_STRUCTURED_OUTPUT_TRANSPORT.

Alias ENABLE_SWAGGER

Re-exported from parrot.conf.ENABLE_SWAGGER.

Alias EphemeralUserAgentHandler

Re-exported from parrot.handlers.agents.ephemeral.EphemeralUserAgentHandler.

Alias FlowCheckpointHandler

Re-exported from parrot.handlers.flows.checkpoints.FlowCheckpointHandler.

Alias HITLResponseHandler

Re-exported from parrot.handlers.web_hitl.HITLResponseHandler.

Alias InfographicTalk

Re-exported from parrot.handlers.infographic.InfographicTalk.

Alias IntegrationBotManager

Re-exported from parrot.integrations.IntegrationBotManager.

Alias IntegrationsHandler

Re-exported from parrot.handlers.integrations.IntegrationsHandler.

Alias LocalSequenceAllocator

Re-exported from parrot.memory.hydration.LocalSequenceAllocator.

Alias MCPServerConfig

Re-exported from parrot.mcp.config.MCPServerConfig.

Alias MetricDefinitionsHandler

Re-exported from parrot.handlers.metric_definitions.MetricDefinitionsHandler.

Alias PARROT_PBAC_POLICY_DIR

Re-exported from parrot.conf.PARROT_PBAC_POLICY_DIR.

Alias PBACResolver

Re-exported from parrot.mcp.principal_guard.PBACResolver.

Alias ParrotError

Re-exported from parrot.exceptions.ParrotError.

Alias PrintPDFHandler

Re-exported from parrot.handlers.print_pdf.PrintPDFHandler.

Alias PromptTunerHandler

Re-exported from parrot.handlers.prompt.PromptTunerHandler.

Alias REDIS_URL

Re-exported from parrot.conf.REDIS_URL.

Alias RecipeHandler

Re-exported from parrot.handlers.infographic_recipes.RecipeHandler.

Alias RedisSequenceAllocator

Re-exported from parrot.memory.hydration.RedisSequenceAllocator.

Class ReloadResult

Outcome of :meth:BotManager.reload_agent.

Fields:

Field Type Default Description
name str The reloaded agent's registered name.
reloaded bool Always True on return — reload_agent raises (:class:AgentNotFoundError / :class:AgentReloadError) rather than returning a falsy result on failure.
previous_instance_closed bool True when the previous instance's cleanup()/close() was found and invoked successfully.
warnings List[str] Non-fatal issues encountered during the reload (e.g. the previous instance's close raised).

Alias StreamHandler

Re-exported from parrot.handlers.stream.StreamHandler.

Alias StudioAgentKey

Re-exported from parrot.handlers.studio.storage.models.StudioAgentKey.

Alias StudioAgentRuntime

Re-exported from parrot.manager.studio_runtime.StudioAgentRuntime.

Alias ToolCatalogHandler

Re-exported from parrot.handlers.tools_catalog.ToolCatalogHandler.

Alias ToolList

Re-exported from parrot.handlers.bots.ToolList.

Alias TurnPersistence

Re-exported from parrot.storage.turn_bus.TurnPersistence.

Alias TurnPersistenceNotConfigured

Re-exported from parrot.storage.turn_bus.TurnPersistenceNotConfigured.

Alias UISurfacesHandler

Re-exported from parrot.handlers.ui_surfaces.UISurfacesHandler.

Alias UserAgentHandler

Re-exported from parrot.handlers.agents.users.UserAgentHandler.

Alias UserBotModel

Re-exported from parrot.handlers.models.UserBotModel.

Alias agent_registry

Re-exported from parrot.registry.agent_registry.

Alias build_conversation_backend

Re-exported from parrot.storage.build_conversation_backend.

Alias build_overflow_store

Re-exported from parrot.storage.build_overflow_store.

Function cleanup_bot_instance

Run bot.cleanup() with BOT_CLEANUP_TIMEOUT and exception isolation. Never raises.

Shared by :meth:BotManager._safe_cleanup (name-guarded) and the Studio runtime (identity-guarded).

cleanup_bot_instance(bot: AbstractBot, *, label: str) -> bool

Parameter Type Default Description
bot AbstractBot
label str

Returns: bool — True when the cleanup completed, False on timeout or exception.

Alias create_parent_searcher

Re-exported from parrot.stores.parents.factory.create_parent_searcher.

Alias create_reranker

Re-exported from parrot.rerankers.factory.create_reranker.

Alias default_dsn

Re-exported from parrot.conf.default_dsn.

Alias enforce_agent_access

Re-exported from parrot.auth.agent_guard.enforce_agent_access.

Alias get_crew_google_api_key

Re-exported from parrot.bots.flows.crew.credentials.get_crew_google_api_key.

Alias get_recovery_service

Re-exported from parrot.bots.flows.core.checkpoint.recovery.get_recovery_service.

Alias has_installed_resolver

Re-exported from parrot.handlers.scope.has_installed_resolver.

Alias setup_admin_ui

Re-exported from parrot.server.ui.setup_admin_ui.

Alias setup_credentials_routes

Re-exported from parrot.handlers.credentials.setup_credentials_routes.

Alias setup_dataplane_guard

Re-exported from parrot.auth.pbac.setup_dataplane_guard.

Alias setup_mcp_helper_routes

Re-exported from parrot.handlers.mcp_helper.setup_mcp_helper_routes.

Alias setup_studio_routes

Re-exported from parrot.handlers.studio.setup_studio_routes.

Alias setup_swagger

Re-exported from parrot.openapi.config.setup_swagger.

Alias setup_thales_routes

Re-exported from parrot.handlers.thales.setup_thales_routes.

Alias setup_turn_persistence

Re-exported from parrot.storage.turn_bus.setup_turn_persistence.

Alias setup_web_hitl

Re-exported from parrot.handlers.web_hitl.setup_web_hitl.

Alias shutdown_turn_persistence

Re-exported from parrot.storage.turn_bus.shutdown_turn_persistence.

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