Repository navigation
API Reference parrot.manager.manager
Chatbot Manager.
Tool for instanciate, managing and interacting with Chatbot through APIs.
Re-exported from parrot.handlers.a2ui.A2UIHandler.
Re-exported from parrot.bots.abstract.AbstractBot.
Re-exported from parrot.auth.agent_guard.AgentAccessDenied.
Re-exported from parrot.bots.flows.crew.AgentCrew.
Re-exported from parrot.handlers.agents.factory.AgentFactoryHandler.
Re-exported from parrot.handlers.knowledge.AgentKnowledgeHandler.
Re-exported from parrot.mcp.agent_mount.AgentMCPMount.
Re-exported from parrot.mcp.config.AgentMCPMountConfig.
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.
Re-exported from parrot.registry.AgentRegistry.
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.
Re-exported from parrot.handlers.agent.AgentTalk.
Re-exported from parrot.storage.ArtifactStore.
Re-exported from parrot.mcp.principal_guard.AuditSink.
Re-exported from parrot.conf.BOT_CLEANUP_TIMEOUT.
Re-exported from parrot.bots.agent.BasicAgent.
Re-exported from parrot.bots.basic.BasicBot.
Re-exported from parrot.handlers.config_handler.BotConfigHandler.
Re-exported from parrot.registry.BotConfigStorage.
Re-exported from parrot.handlers.testing_handler.BotConfigTestHandler.
Re-exported from parrot.handlers.chat.BotHandler.
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] |
Get bot class by name, searching in:
- parrot.bots (core bots)
- 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
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 |
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. |
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
Add a Bot to the manager.
add_bot(bot: AbstractBot) -> None
| Parameter | Type | Default | Description |
|---|---|---|---|
bot |
AbstractBot |
Raises:
-
ValueError—botis a Studio instance (_studio_key); those live inStudioRuntimeCacheonly.
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— Whenrequestis provided and the caller's subject does not match the bot's PBAC policies.
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 notdatabase). -
ValueError—new=Truewithout asession_id.
Remove a Bot by name.
remove_bot(name: str) -> None
| Parameter | Type | Default | Description |
|---|---|---|---|
name |
str |
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—nameis 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.
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]
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 |
Get all Bots declared on Manager.
get_bots() -> Dict[str, AbstractBot]
Returns: Dict[str, AbstractBot]
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
Add a Agent to the manager.
add_agent(agent: AbstractBot) -> None
| Parameter | Type | Default | Description |
|---|---|---|---|
agent |
AbstractBot |
Remove a Bot by name.
remove_agent(agent: AbstractBot) -> None
| Parameter | Type | Default | Description |
|---|---|---|---|
agent |
AbstractBot |
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.
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— Ifself.appis not set (no DB available).
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 byuser_id, already promoted, or not inphase="ready".
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 neitheruser_idnorowner_idis provided.
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 neitheruser_idnorowner_idis provided.
Save a Agent to the DB.
save_agent(name: str, **kwargs) -> None
| Parameter | Type | Default | Description |
|---|---|---|---|
name |
str |
||
**kwargs |
{} |
Get the app.
get_app() -> web.Application
Returns: web.Application
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.
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 onappand either opt-in flag is True (tenant hosts never import host-wide content).
On startup.
on_startup(app: web.Application) -> None
| Parameter | Type | Default | Description |
|---|---|---|---|
app |
web.Application |
On shutdown.
on_shutdown(app: web.Application) -> None
| Parameter | Type | Default | Description |
|---|---|---|---|
app |
web.Application |
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
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
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
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
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.
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
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
Synchronize in-memory crews with Redis.
This handles:
- Loading new crews added by other workers
- Removing crews deleted by other workers
sync_crews() -> None
Get statistics about registered crews.
get_crew_stats() -> Dict[str, Any]
Returns: Dict[str, Any] — Dictionary with crew statistics
Re-exported from parrot.handlers.models.BotModel.
Re-exported from parrot.conf.CREW_DEFINITION_MIGRATION.
Re-exported from parrot.conf.CREW_DEFINITION_STORAGE.
Re-exported from parrot.handlers.channel_links.ChannelLinksHandler.
Re-exported from parrot.handlers.chat.ChatHandler.
Re-exported from parrot.handlers.chat_interaction.ChatInteractionHandler.
Re-exported from parrot.storage.ChatStorage.
Re-exported from parrot.storage.hydration.ChatStorageHydrationSource.
Re-exported from parrot.bots.chatbot.Chatbot.
Re-exported from parrot.handlers.ChatbotHandler.
Re-exported from parrot.handlers.comm_center.CommCenterHandler.
Re-exported from parrot.exceptions.ConfigError.
Re-exported from parrot.handlers.connection_events.ConnectionEventsHandler.
Re-exported from parrot.handlers.connections.ConnectionsHandler.
Re-exported from parrot.models.crew_definition.CrewDefinition.
Re-exported from parrot.handlers.crew.definition_storage.CrewDefinitionStorage.
Re-exported from parrot.handlers.crew.execution_handler.CrewExecutionHandler.
Re-exported from parrot.handlers.crew.execution_history_handler.CrewExecutionHistoryHandler.
Re-exported from parrot.handlers.crew.handler.CrewHandler.
Re-exported from parrot.handlers.crew.postgres_persistence.CrewPostgres.
Re-exported from parrot.handlers.crew.redis_persistence.CrewRedis.
Re-exported from parrot.handlers.crew.special_nodes.CrewSpecialNodeCatalogHandler.
Re-exported from parrot.handlers.crew.definition_storage.CrewStorageConflict.
Re-exported from parrot.handlers.crew.definition_storage.CrewStorageUnavailable.
Re-exported from parrot.handlers.crew.tool_catalog.CrewToolCatalogHandler.
Re-exported from parrot.handlers.dashboard_handler.DashboardHandler.
Re-exported from parrot.handlers.dashboard_handler.DashboardTabHandler.
Re-exported from parrot.handlers.agents.data.DataAnalystHandler.
Re-exported from parrot.handlers.database.DatabaseDriversHandler.
Re-exported from parrot.handlers.database.DatabaseFormatsHandler.
Re-exported from parrot.handlers.database.DatabaseIntentsHandler.
Re-exported from parrot.handlers.database.DatabaseRolesHandler.
Re-exported from parrot.handlers.database.DatabaseSchemasHandler.
Re-exported from parrot.handlers.datasets.DatasetManagerHandler.
Re-exported from parrot.conf.ENABLE_CREWS.
Re-exported from parrot.conf.ENABLE_DASHBOARDS.
Re-exported from parrot.conf.ENABLE_DATABASE_BOTS.
Re-exported from parrot.conf.ENABLE_REGISTRY_BOTS.
Re-exported from parrot.conf.ENABLE_STRUCTURED_OUTPUT_TRANSPORT.
Re-exported from parrot.conf.ENABLE_SWAGGER.
Re-exported from parrot.handlers.agents.ephemeral.EphemeralUserAgentHandler.
Re-exported from parrot.handlers.flows.checkpoints.FlowCheckpointHandler.
Re-exported from parrot.handlers.web_hitl.HITLResponseHandler.
Re-exported from parrot.handlers.infographic.InfographicTalk.
Re-exported from parrot.integrations.IntegrationBotManager.
Re-exported from parrot.handlers.integrations.IntegrationsHandler.
Re-exported from parrot.memory.hydration.LocalSequenceAllocator.
Re-exported from parrot.mcp.config.MCPServerConfig.
Re-exported from parrot.handlers.metric_definitions.MetricDefinitionsHandler.
Re-exported from parrot.conf.PARROT_PBAC_POLICY_DIR.
Re-exported from parrot.mcp.principal_guard.PBACResolver.
Re-exported from parrot.exceptions.ParrotError.
Re-exported from parrot.handlers.print_pdf.PrintPDFHandler.
Re-exported from parrot.handlers.prompt.PromptTunerHandler.
Re-exported from parrot.conf.REDIS_URL.
Re-exported from parrot.handlers.infographic_recipes.RecipeHandler.
Re-exported from parrot.memory.hydration.RedisSequenceAllocator.
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). |
Re-exported from parrot.handlers.stream.StreamHandler.
Re-exported from parrot.handlers.studio.storage.models.StudioAgentKey.
Re-exported from parrot.manager.studio_runtime.StudioAgentRuntime.
Re-exported from parrot.handlers.tools_catalog.ToolCatalogHandler.
Re-exported from parrot.handlers.bots.ToolList.
Re-exported from parrot.storage.turn_bus.TurnPersistence.
Re-exported from parrot.storage.turn_bus.TurnPersistenceNotConfigured.
Re-exported from parrot.handlers.ui_surfaces.UISurfacesHandler.
Re-exported from parrot.handlers.agents.users.UserAgentHandler.
Re-exported from parrot.handlers.models.UserBotModel.
Re-exported from parrot.registry.agent_registry.
Re-exported from parrot.storage.build_conversation_backend.
Re-exported from parrot.storage.build_overflow_store.
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.
Re-exported from parrot.stores.parents.factory.create_parent_searcher.
Re-exported from parrot.rerankers.factory.create_reranker.
Re-exported from parrot.conf.default_dsn.
Re-exported from parrot.auth.agent_guard.enforce_agent_access.
Re-exported from parrot.bots.flows.crew.credentials.get_crew_google_api_key.
Re-exported from parrot.bots.flows.core.checkpoint.recovery.get_recovery_service.
Re-exported from parrot.handlers.scope.has_installed_resolver.
Re-exported from parrot.server.ui.setup_admin_ui.
Re-exported from parrot.handlers.credentials.setup_credentials_routes.
Re-exported from parrot.auth.pbac.setup_dataplane_guard.
Re-exported from parrot.handlers.mcp_helper.setup_mcp_helper_routes.
Re-exported from parrot.handlers.studio.setup_studio_routes.
Re-exported from parrot.openapi.config.setup_swagger.
Re-exported from parrot.handlers.thales.setup_thales_routes.
Re-exported from parrot.storage.turn_bus.setup_turn_persistence.
Re-exported from parrot.handlers.web_hitl.setup_web_hitl.
Re-exported from parrot.storage.turn_bus.shutdown_turn_persistence.
- 1. MCP Server — exposing tools as a service
- 2. A2A — exposing agents and orchestrators as services
- 3. Toolkits for third party services and Cloud Security composition
- 4. Interaction surface — WebSockets, audio, integrations
- 5. Hardening — anti prompt injection, PBAC and tool gating
- 6. Cross cutting concerns and reference deployment
- 7. AgentCrew — Sequential, Parallel, Flow and Loop execution
- 8. AgentsFlow — DAG first orchestration with per node FSM
- 9. Ontologic RAG — graph first retrieval, intent routing & multi tenant knowledge
- 10. Observability — OpenLIT + OpenTelemetry
- Class Catalog by Module
- Module level Functions Catalog
- AI Parrot — Exposure, Interoperability & Hardening Architecture
- Agent Mesh
- AgentService — Standalone Runtime for Autonomous Agents
- AbstractClient: The Provider Client Family
- Anthropic client
- Bedrock Mantle Client
- TypeSafe System One Client (
JevClient) - Meta Model API Client (Muse Spark)
- OpenAI Compatible Client Base (
OpenAIBaseClient) - Per Loop LLM Client Cache
- Question Token Budgets (Bedrock Converse, Nova text, Bedrock Mantle)
- Agent Configure Lifecycle
- AgentTalk Integration Guide
- Agent Configuration via
agents.yaml - AgentFactory HTTP API
- Agent Studio — API Reference
- Agent CLI Daemon (agentd)
- FirefliesInsightsAgent
- Follow up Suggestion Chips (FEAT 752)
- Agents and Chatbots: The Bot Class Hierarchy
- Agent Studio — database storage (host guide)
- Ephemeral User Agents — Frontend Integration Handoff
parrot agent— Agent Terminal Workspace- Crew Handler
- Database Agent
- Running the CVE Experts
- Domain Experts (FEAT 778)
- FEAT 437
- Technical Voice Guide (AgentTalk Voice) for Frontend
- AgentDashboard — A2UI v1.0 Technical Reference for
navigator frontend next - Semantic UI Model → Adaptive Cards (FEAT 303)
- Exposing an AI Parrot Agent as an MCP Server
- AgentCrew User Guide
- AgentsFlow User Guide
- Crew Definition Storage
- A2UI Agent Functions Runtime — the v1.0 RPC leg (FEAT 469)
- Capabilities of an AI Parrot Analytical Agent (PandasAgent)
- Agent Security Guardrails (FEAT 761)
- SpawnSubAgentTool
- Testagent
- Agentic End to End Testing (FEAT 581)
- Uiagent
- WebAgent — Browser Interaction via Chrome DevTools
- WebNavigatorAgent — Catalogued Web Navigation on Your Chrome Profile
- ExecutionMemory Integration Guide
- Agent Brain
- Agent Memory
- Conversation History Ownership
- Conversation Memory Subsystem Overview
- Dream Cycle — episodic → wiki brain consolidation
- Durable Conversation Memory
- Memory Dynamics
- Per Turn Conversation Compaction
- Recoverable Task Memory (FEAT 538)
- Task Memory — Phase 0 Integration Map (FEAT 538 / TASK 2970)
- User Memory
- Bookstore Agentic Retrieval
- Bookstore in Codex
- Bookstore Conceptual Relations — the book graph (FEAT 533)
- Bookstore notebooks
- Contracts catalog performance (FEAT 539, AC14)
- Contracts pilot acceptance — Bob's twelve cases (FEAT 539, AC15)
- Contracts Card & Ontology (FEAT 539)
- Luau parser resource policy (FEAT 532 TASK 2896)
- Glossary of Terms (FEAT 917)
- GraphIndex core seams (FEAT 540)
- GraphIndex — Structured Knowledge Graph Indexing
- Local Knowledge Base
- Procedure Graph — Assembly Manuals (FEAT 601)
- Ontology backend programme
- Ontology vocabulary store
- PageIndex Agentic Retrieval and Citations
- PageIndex Generation Publication
- PageIndex Layout Structure Builder
- PageIndex Local MCP Toolkit
- PageIndex Segment Store
- PageIndex Tree Optimizer
- PageIndex — Tree Based RAG for Document Retrieval
- ArxivTool for AI Parrot
- Accounting metrics layer
- Tool Result Compression Pipeline (FEAT 380)
- DatasetManager Implementation Walkthrough
- FredAPITool Documentation
- EmployeesTool Employee Hierarchy Tool for AI Parrot
- HoobaToolkit
- Jira text templates (JiraToolkit)
- Expose Toolkits as Local MCP (
parrot mcp local) - MultiStoreSearch Toolkit — Multi Origin Retrieval for Agents
- Supervised Obscura Browser Integration
- OdooHelpdeskToolkit — Softhealer helpdesk on Odoo 19
- OdooToolkit Capabilities
- QuerysourceToolkit
- ReadOnlyRepoToolkit (FEAT 484)
- PythonREPLTool Sandbox: Worker Process Execution Model
- Research Tools for Agents
- gVisor Installation Guide for AI Parrot Secure Sandbox
- SDD Sandbox — OS Setup
- Governed semantic layer
- Tool optimizations for Claude Code and Codex (FEAT 543)
- AbstractTool Clone Method
- Toolbar API Documentation
- AudioNoteCaptureToolkit
- ExecutionPlanToolkit — Reference
- Host toolkits for Agent Studio
- Infographic Authoring for Data Agents (FEAT 326)
- InfographicToolkit — Reference
- Tool System Internals: Tools, Toolkits and ToolManager
- AI Parrot Tools Documentation
- What If Scenario Analysis
- Workday worker history
- DecisionFlowNode Usage Guide
- Multi Agent Orchestration: AgentCrew and AgentsFlow
- Docker Tool Executor & Execution Policy
- Generic Gate Host
- HeartbeatManager — Per Agent Autonomous Heartbeat Loop
- JobManager
- Node Types Reference
- OrchestratorAgent — Multi Party Conferencing (
confer) - Planogram compliance cycle (perceive → identify → compare)
- Planogram compliance — migrating configurations to the new cycle (FEAT 574, FEAT 612)
- Planogram perception spike — FEAT 574
- Scheduler backends in multi worker deployments
- Thales User Guide
- Per tenant skills (FEAT 707)
- Skill routing and trigger caching
- Skills system: discovery, toolkits and mixin
- Contextual Embedding Headers
- DocumentDB Usage Patterns
- DocumentDB Interface Guide
- DynamoDB Local (docker compose)
- Fully offline local agent with LanceDB (FEAT 542)
- LanceDB vector, full text and hybrid store (FEAT 542)
- Loader Metadata Standard
- Document Loaders for RAG
- Matryoshka Embedding Truncation
- Parent Child Retrieval (Small to Big)
- Storage Backends Guide
- User stores (Redis by default)
- Vector Stores and Embeddings Reference
- Vector Store Handler — API Reference
- A2A Secure Communication Demo
- Agent as a Local MCP Server (parrot toolkits install agent)
- add repository:
- GitHub MCP Installation and Usage
- MCP integration: client, server and agent tools
- Create and configure agent
- Roost — local inter agent sub protocol
- Roost carriers
- Roost performatives, protocols and obligations
- Simple Mcp Server
- SimpleMCPServer Configuration
- API Endpoints Reference
- Admin UI (FEAT 468)
- Infographic Render Endpoint — Reference
- EventBus v2 Configuration Reference (
[bus]/[bus.alerts]) - EventBus v2 Migration Notes (FEAT 310)
- EventBus v2 — Unified Event Fabric (FEAT 310)
- Session file store
- A2UI Dashboard + Widget Renderer — Frontend Build Guide
- Avatar Technical Guide (LiveAvatar Phase A) for Frontend
- Frontend Guide for SvelteKit: LiveAvatar FULL Mode and VoiceBot (FEAT 248)
- DEPRECATED: Native Voice Avatar (LiveAvatar Phase C) Technical Guide for Frontend
- Technical Guide to Structured Artifacts for Frontend
- VoiceBot · VoiceChatHandler · FEAT 245 — Frontend Guide for Realtime Conversation with Agents
- Server Layer: BotManager and HTTP Handlers
- Infographic Handler — Frontend API Contract
- Interactive Artifacts — Frontend API Contract
- Google Drive file manager
- SharePoint & OneDrive file managers
- WhatsApp Integration Implementation Summary
- WhatsApp Integration for AI Parrot
- P3 — parrot admin ui inventory (canvases / A2UI / infographic / builders)
- WhatsApp + AutonomousOrchestrator Integration
- Audio Form Voice Modes — Developer Guide
- Who owns an OAuth2 (3LO) credential
- CommCenter — Bulk Notification Sender (FEAT 417)
- FormDesigner → MS Teams: Adaptive Card renderer and bot submit path (FEAT 551)
- GitHub reviewer
- Google OAuth 2.0 — AI Parrot Integration
- Fireflies Agent Examples
- HITL Tool Call Confirmation (FEAT 235)
- Teams HITL Channel Setup Guide (FEAT 205)
- JiraSpecialist Prompt Layer Stack
- JiraSpecialist — Daily Standup Lanes
- Jira Transition Actions — Activating
TRIGGER_AGENTDispatch - Jupyter Output Mode Documentation
- Knowledge upload from chat (FEAT 647)
- LiveAvatar over your own LiveKit (Cloud or self hosted)
- Matrix Bridges for the AI Parrot Swarm (FEAT 463)
- Matrix Clients for the AI Parrot Swarm (FEAT 463)
- Migration Guide: FEAT 202 — ai parrot integrations
- Connections on Microsoft Teams
- MS Teams Toolkit for AI Parrot
- Nova Sonic Voice Protocol Reference
- Office 365 OAuth 2.0 (Delegated) — AI Parrot Integration
- PR Review Command — Setup Guide
- Queued chat commands
- Runbook — the
issuesnamespace (Jira ticket corpus) - Dev loop kick off from Slack (FEAT 555)
- Telegram Auth Open Mode (webview | browser)
- Telegram connections
- Telegram Bot Integration Guide
- FEAT 536 — VoiceBot Nova Dual Output + LiveAvatar: Real Live Operational Acceptance
- FEAT 537 — Nova VoiceBot avatar broadcast: operational acceptance
- FEAT 537 — Nova PCM → LiveAvatar LITE → LiveKit multi subscriber live gate
- speech_report TTS backends
- Nova VoiceBot avatar broadcast for multiple browsers (FEAT 537)
- 🦜 AI Parrot Voice Chat
- WhisperX Setup Guide for AI Parrot
- A2UI Linked Surfaces (FEAT 598)
- A2UI v1.0 Wire (FEAT 470)
- === D3.js ===
- Backend HTML Design System (FEAT 493)
- FEAT 488
- FormDesigner Audio Renderer
- Form Designer — Autonomous FormSchema Persistence (Standalone Forms)
- Form Designer — Conditional Sections: Pre/Post Dependencies
- FormBuilder — LLM answer plausibility enforcement
- FormDesigner — orphan upload cleanup (FEAT 731)
- FormDesigner — public response controls
- Form Designer — Relational Fields
- Serving FormDesigner forms from a Teams agent
- Form Designer — Unknown Field Capture Policy for Form Submissions
- FormDesigner — validation audit trail
- Infographic Recipes (FEAT 324)
- Inline A2UI Component Routing (FEAT 755)
- Metric Definition Registry (FEAT 756)
- Smart OutputFormatter Documentation
- N4 — navigator api backend inventory (dashboards / widgets / templates / modules / programs)
- P1 — ai parrot HTTP/WS endpoint inventory (report builder lens)
- P2 — ai parrot (Python) UI components, models, renderers, persistence — inventory for a REPORT BUILDER
- P4 — ai parrot prior art for a Report Builder (SDD inventory)
- ai parrot server — Admin / Bots / Studio / misc endpoint inventory
- P1 — ai parrot HTTP/WS endpoint inventory (report builder lens) ( core)
- parrot formdesigner — HTTP/WS endpoint inventory
- Report Builder — ai parrot inventory and analysis
- WeasyPrint 69.0 CSS Support — Empirical Findings
- Identity Capability User Guide
- Layers Reference
- Output Language (FEAT 638)
- PromptBuilder — User Modifiable Variables
- PromptBuilder User Guide
- Delegated OAuth2 connections
- Delegated OAuth2 connections on the web channel — deployment recipe and live harness
- Deterministic Groundedness Scoring
- ONNX Backend for the Prompt Injection Guardrail (FEAT 439)
- PBAC Guardrails — Policy Driven Tool Call Denial (FEAT 406)
- SecurityAdvisor — SOC2 Oriented Read Only Advisory Agent
- User Profile Management
- AI Parrot MCP Server AWS Deployment Guide
- Bot Cleanup Lifecycle
- Business Automation — Operator Runbook
parrot loginand connections- CompanyInfoToolkit
- Per component and per agent LLM defaults (FEAT 796, FEAT 882)
- Answer Accuracy Metrics for the Evaluation Harness (FEAT 652)
- Infographic CSP and Signed URLs — Operations Guide
- Global install: the parrot managed runtime (reference)
- Runbook — the Fireflies Meeting Registry
- Wiki standup briefs — runbook
parrot.finance— the finance satellite- Migration — FEAT 201: ai parrot embeddings
- Migration — FEAT 203: ai parrot server
- FEAT 223 — Structured Artifact Contract: Migration Guide
- FEAT 273 — Legacy output mode deprecations → A2UI
- Migration — FEAT 315: Unified NovaClient for all Amazon Nova models
- Migration — FEAT 421: Client declared tenant in the forms URL
- Migration — FEAT 446: SaaS Auth Hardening (S0 of Parrot Research Cloud)
- Migration — FEAT 473: A2UI v1.0 for STRUCTURED_CHART / STRUCTURED_TABLE / STRUCTURED_MAP
- Migration — FEAT 523: PEP 420 LLM Client Extraction
- Gemini 2.5 retirement (FEAT 798)
- Migration — FEAT 564: Reliable video reels with Gemini Omni and Veo 3.1
- Native Claude sandbox for SDD sessions (FEAT 768)
- Complementary (collaborative) research partner (FEAT 482)
- Dev flow per seat LLM configuration (
DevFlowModelPlan) - Dev loop
novabackend (AWS Bedrock) - sdd worker as orchestrator of parallel sdd coder seats (FEAT 549)
- SDD compaction capability record
- SDD execution optimization — operation and rollout
- Proposals to Reduce SDD Execution Time
- Dev flow / dev loop telemetry accounting
- Language Agnostic Validation Runners (FEAT 709)
- Spec Driven Development in Google Gemini / Antigravity CLI
- Guide to using the SDD slash commands
- AI Parrot Spec Driven Development (SDD) Platform
- SDD on Google Antigravity (agy)
/sdd donecloseout hooks- Decision Audit (FEAT 784)
- SDD experience memory
- SDD Expert Consult
- Ledger outbox (FEAT 758)
- FEAT 580 LSP Pilot — Live Evaluation Results
- SDD LSP research pilot (FEAT 580)
- Necessity Ladder (FEAT 908)
- Procedure Graph
- Test selection in the SDD flow — the Validation Contract (FEAT 699)
- wikitoolkit Cheatsheet
- wikitoolkit inbox
- wikitoolkit lint
- LLM Wiki — an agent maintained knowledge repository
- Schema Plane — Operator Guide (FEAT 600)
- SQLite concurrency for wiki and ledger
- wikitoolkit standup
- WikiToolkit as Claude Code infrastructure
- Authentication uses Navigator Auth
- AbstractClient base changes require a decision
- Clients are memory less
- Configuration uses NavConfig
- Graph backends — retire ArangoDB for PostgreSQL + SurrealDB
- Conversation history has one writer
- HTTP stack uses aiohttp
- LangChain is not part of the stack
- Async code remains non blocking
- Concrete tools live in ai parrot tools