Repository navigation
API Reference parrot.tools.manager
Re-exported from parrot.auth.resolver.AbstractPermissionResolver.
Re-exported from parrot.tools.abstract.AbstractTool.
Re-exported from parrot.tools.toolkit.AbstractToolkit.
Re-exported from parrot.a2a.models.AgentCard.
Re-exported from parrot.auth.exceptions.AuthorizationRequired.
Re-exported from parrot.core.exceptions.BudgetError.
Re-exported from parrot.tools.compression.budget.BudgetRouter.
Re-exported from parrot.tools.compression.CompressionStage.
Re-exported from parrot.tools.compression.tee.CompressionTee.
Re-exported from parrot.tools.compression.CompressorRegistry.
Re-exported from parrot.auth.confirmation.ConfirmationGuard.
Re-exported from parrot.auth.credentials.CredentialRequired.
Re-exported from parrot.auth.grants.GrantGuard.
Re-exported from parrot.tools.mcp_mixin.MCPToolManagerMixin.
Re-exported from parrot.auth.permission.PermissionContext.
Re-exported from parrot.a2a.models.RegisteredAgent.
Data structure for tool definition.
| Parameter | Type | Default | Description |
|---|---|---|---|
name |
str |
||
description |
str |
||
input_schema |
Dict[str, Any] |
||
function |
Callable |
||
routing_meta |
Dict[str, Any] |
dict() |
|
required_permissions |
Set[str] |
set() |
Fields:
| Field | Type | Default | Description |
|---|---|---|---|
name |
str |
||
description |
str |
||
input_schema |
Dict[str, Any] |
||
function |
Callable |
||
routing_meta |
Dict[str, Any] |
field(default_factory=dict) |
|
required_permissions |
Set[str] |
field(default_factory=set) |
Re-exported from parrot.tools.abstract.ToolExecutionRoute.
Enum for different tool format requirements by LLM providers.
Unified tool manager for handling tools across AbstractBot and AbstractClient.
Capabilities:
- Local tool registration and execution
- MCP server management (via MCPToolManagerMixin)
- Tool schema generation for LLM providers
| Parameter | Type | Default | Description |
|---|---|---|---|
logger |
Optional[logging.Logger] |
None |
Logger instance |
debug |
bool |
False |
Enable debug logging |
include_search_tool |
bool |
False |
Whether to include the 'search_tools' meta-tool. Set to False for agents that rely on RAG context rather than dynamic tool discovery. Default is True. |
resolver |
Optional['AbstractPermissionResolver'] |
None |
Optional permission resolver for Layer 2 enforcement. If None, no permission enforcement is applied (backward compatible). |
execution_policy |
Optional[Any] |
None |
Optional :class:~parrot.tools.executors.ExecutionPolicy (or a dict coercible to one) that routes matching tools/toolkits to remote executors at registration time. Tools constructed with an explicit executor= are never overridden. |
Attributes:
| Attribute | Type | Description |
|---|---|---|
auto_share_dataframes |
bool |
|
auto_push_to_pandas |
bool |
|
enable_redaction |
bool |
|
pandas_tool_name |
str |
|
resolver |
Optional['AbstractPermissionResolver'] |
Get the current permission resolver. |
execution_policy |
Return the active ExecutionPolicy, or None. | |
broker |
Optional[Any] |
Return the credential broker, or None if none is configured. |
grant_guard |
Optional[GrantGuard] |
Return the current grant guard, or None if not configured. |
confirmation_guard |
Optional['ConfirmationGuard'] |
Return the current confirmation guard, or None if not configured. |
tools |
List[AbstractTool] |
Get list of registered tool instances. |
invocation_observer |
Optional[Any] |
The installed invocation observer, or None. |
Set or swap the permission resolver at runtime.
This allows changing the resolver after initialization, useful for:
- Upgrading permissions after authentication
- Switching resolvers for different contexts
- Testing with different permission configurations
set_resolver(resolver: 'AbstractPermissionResolver') -> None
| Parameter | Type | Default | Description |
|---|---|---|---|
resolver |
'AbstractPermissionResolver' |
The new permission resolver to use. |
Set the execution policy; this manager owns it from now on.
Every dispatch of a tool this policy matches resolves its route from it
(:meth:_execution_route_for, FEAT-933). Already-registered tools get
the registration-time fallback route that direct tool.execute()
calls, and dispatches through managers without a matching rule, use
(:meth:_apply_execution_policy). :meth:close_executors
closes the policy's executors only on the manager that set it.
set_execution_policy(policy: Any) -> None
| Parameter | Type | Default | Description |
|---|---|---|---|
policy |
Any |
An :class:~parrot.tools.executors.ExecutionPolicy instance or a dict coercible to one (e.g. {"rules": {"python_repl": "docker"}}). |
Close every executor the execution policy instantiated.
Called from the owning bot's shutdown path. Idempotent. A no-op on a
:meth:clone: the policy is shared by reference and only the manager
that set it (:meth:set_execution_policy) closes its executors (FEAT-933).
close_executors() -> None
Set the credential broker that gates credentialed tool calls.
set_broker(broker: Any) -> None
| Parameter | Type | Default | Description |
|---|---|---|---|
broker |
Any |
A :class:~parrot.auth.broker.CredentialBroker instance. |
Set the grant guard for tool-level bounded approval windows.
When set, tools with routing_meta["requires_grant"] = True will
require an active grant or HITL approval before execution. Tools
without this flag are unaffected.
This is an additive change: without a guard configured,
execute_tool behaves identically to its current behaviour.
set_grant_guard(guard: 'GrantGuard') -> None
| Parameter | Type | Default | Description |
|---|---|---|---|
guard |
'GrantGuard' |
The GrantGuard instance to use for authorization decisions. |
Set the confirmation guard for per-call HITL tool-call review.
When set, tools with routing_meta["requires_confirmation"] = True
will require human confirmation (approve / cancel / edit) before
execution. Tools without this flag are unaffected.
The confirm check runs after the grant check (order: grant → confirm).
This is purely additive: without a guard configured, execute_tool
behaves identically to today.
set_confirmation_guard(guard: 'ConfirmationGuard') -> None
| Parameter | Type | Default | Description |
|---|---|---|---|
guard |
'ConfirmationGuard' |
The ConfirmationGuard instance to use for confirmation decisions. |
Bind (or clear, with None) the host hook every toolkit this manager constructs goes through.
subject is the :class:~parrot.tools.tooling_policy.ToolingSubject handed to the hook; see
:mod:parrot.tools.host_hooks for the hook contract.
set_toolkit_param_hook(hook: Optional[Callable[..., Any]], subject: Any = None) -> None
| Parameter | Type | Default | Description |
|---|---|---|---|
hook |
Optional[Callable[..., Any]] |
||
subject |
Any |
None |
(final constructor params, forced exclude_tools) of slug after the host hook.
Without a bound hook the params come back unchanged. Raises ToolParamRefused (a TenantToolingRefused)
when the hook refuses; phase overrides the bound subject's phase (e.g. attach for a live assignment).
hooked_toolkit_params(slug: str, params: Dict[str, Any], *, phase: Optional[str] = None) -> tuple[Dict[str, Any], tuple[str, ...]]
| Parameter | Type | Default | Description |
|---|---|---|---|
slug |
str |
||
params |
Dict[str, Any] |
||
phase |
Optional[str] |
None |
Returns: tuple[Dict[str, Any], tuple[str, ...]]
Bind the mapping (the aiohttp app) every tool/toolkit this manager constructs gets its server-managed
source="app" constructor params from (e.g. artifact_store), whichever path builds it.
set_server_param_source(source: Optional[Any]) -> None
| Parameter | Type | Default | Description |
|---|---|---|---|
source |
Optional[Any] |
Constructor values the server owns for cls: source="app" params found in the bound source.
server_filled_params(cls: type) -> Dict[str, Any]
| Parameter | Type | Default | Description |
|---|---|---|---|
cls |
type |
Returns: Dict[str, Any]
Construct cls(**params) for a toolkit OR a standalone tool: server-managed params filled, then the
host hook (forced values applied, exclude_tools set on the instance). Identical to cls(**params)
when neither a hook nor a server-param source is bound.
build_toolkit(cls: type, slug: str, params: Dict[str, Any], *, phase: Optional[str] = None) -> Any
| Parameter | Type | Default | Description |
|---|---|---|---|
cls |
type |
||
slug |
str |
||
params |
Dict[str, Any] |
||
phase |
Optional[str] |
None |
Returns: Any
Rank registered tools by relevance to query, best first.
Replaces the substring-match + alphabetical-sort behaviour that
search_tools() implemented inline; search_tools() now formats
this method's output as JSON for LLM consumption. Scoring is purely
lexical (token overlap over tool name + description); ties are
broken deterministically by name so results are stable across calls
and safe to cache.
rank_tools(query: str, limit: int = 15) -> list[tuple[float, Any]]
| Parameter | Type | Default | Description |
|---|---|---|---|
query |
str |
Relevance query (e.g. the turn's prompt). | |
limit |
int |
15 |
Maximum number of ranked tools to return. |
Returns: list[tuple[float, Any]] — List of (score, tool) tuples, best score first. tool is the raw registered object (ToolDefinition or AbstractTool); internal tools (_INTERNAL_TOOL_NAMES — search_tools and read_omitted_content) are always excluded.
Search for tools by name or description.
Thin JSON-formatting wrapper over rank_tools() (FEAT-434): results
are now relevance-ordered instead of alphabetically ordered — flagged
in the changelog — but the return type, JSON shape, and no-match
message are unchanged.
search_tools(query: str, limit: int = 15) -> str
| Parameter | Type | Default | Description |
|---|---|---|---|
query |
str |
Search query | |
limit |
int |
15 |
Max results |
Returns: str — JSON string list of matching tools with descriptions
default_tools(tools: list = None) -> List[AbstractTool]
| Parameter | Type | Default | Description |
|---|---|---|---|
tools |
list |
None |
Returns: List[AbstractTool]
Sync tools from another ToolManager instance.
sync(other_manager: 'ToolManager') -> None
| Parameter | Type | Default | Description |
|---|---|---|---|
other_manager |
'ToolManager' |
Another ToolManager instance to sync from |
Add a tool to the manager.
add_tool(tool: Union[ToolDefinition, AbstractTool], name: Optional[str] = None) -> None
| Parameter | Type | Default | Description |
|---|---|---|---|
tool |
Union[ToolDefinition, AbstractTool] |
Tool instance (AbstractTool or ToolDefinition) | |
name |
Optional[str] |
None |
Optional custom name for the tool |
Register a tool in the unified format.
register_tool(tool: Union[dict, ToolDefinition, AbstractTool] = None, name: str = None, description: str = None, input_schema: Dict[str, Any] = None, function: Callable = None) -> None
| Parameter | Type | Default | Description |
|---|---|---|---|
tool |
Union[dict, ToolDefinition, AbstractTool] |
None |
Tool instance (AbstractTool, ToolDefinition, or dict) |
name |
str |
None |
Optional custom name for the tool |
description |
str |
None |
|
input_schema |
Dict[str, Any] |
None |
|
function |
Callable |
None |
Alias for register_tool with optional CapabilityRegistry auto-registration.
register(tool: Union[dict, ToolDefinition, AbstractTool] = None, name: str = None, description: str = None, input_schema: Dict[str, Any] = None, function: Callable = None, capability_registry=None) -> None
| Parameter | Type | Default | Description |
|---|---|---|---|
tool |
Union[dict, ToolDefinition, AbstractTool] |
None |
Tool to register (dict, ToolDefinition, or AbstractTool). |
name |
str |
None |
Optional name override. |
description |
str |
None |
Optional description override. |
input_schema |
Dict[str, Any] |
None |
Optional input schema override. |
function |
Callable |
None |
Optional callable override. |
capability_registry |
None |
Optional CapabilityRegistry. When provided, calls registry.register_from_tool(tool) after registration. |
Register multiple tools from list or dictionary.
register_tools(tools: List[Union[ToolDefinition, AbstractTool]]) -> None
| Parameter | Type | Default | Description |
|---|---|---|---|
tools |
List[Union[ToolDefinition, AbstractTool]] |
List of tools or dictionary of tools |
Load a tool by name.
Resolution order:
- An already-registered tool with this name (no-op success).
- The discovered
TOOL_REGISTRY(fromai-parrot-toolsandplugins.tools), matched case-insensitively against the canonical tool name. This covers every individual tool shipped byparrot_tools— e.g.ibisworld,yfinance,web_scraping_tool— which the legacy import path below cannot resolve. - The legacy
parrot.tools.<name>module import, kept for backward compatibility with historically-named tools.
load_tool(tool_name: str, **kwargs) -> bool
| Parameter | Type | Default | Description |
|---|---|---|---|
tool_name |
str |
Name of the tool to load. | |
**kwargs |
{} |
Arguments forwarded to the tool/toolkit constructor. |
Returns: bool — True if a tool (or toolkit) was registered, False otherwise.
Register all tools from a toolkit.
Re-registration is a no-op that keeps the FIRST registration: when a
toolkit of the same exact class and the same tool_prefix is already
registered, its registered tools are returned and nothing is mutated —
a name or class is not even constructed. A name claimed by a DIFFERENT
owner still raises ToolNameCollisionError.
This method supports multiple input types:
- String: Looks up the toolkit by name in SUPPORTED_TOOLKITS registry
- Class: Instantiates the toolkit class with provided kwargs
- Instance: Uses the toolkit instance directly
register_toolkit(toolkit: Union[str, 'AbstractToolkit', type], **kwargs) -> List[AbstractTool]
| Parameter | Type | Default | Description |
|---|---|---|---|
toolkit |
Union[str, 'AbstractToolkit', type] |
Toolkit name (str), toolkit class, or toolkit instance | |
**kwargs |
{} |
Arguments to pass to toolkit constructor if instantiating |
Returns: List[AbstractTool] — List of registered AbstractTool instances
Raises:
-
ValueError— If toolkit name is not found or invalid type provided
Get tool schemas formatted for specific LLM provider.
get_tool_schemas(provider_format: ToolFormat = ToolFormat.GENERIC) -> List[Dict[str, Any]]
| Parameter | Type | Default | Description |
|---|---|---|---|
provider_format |
ToolFormat |
ToolFormat.GENERIC |
Target provider format |
Returns: List[Dict[str, Any]] — List of tool schemas compatible with the provider
Get tool instance by name.
get_tool(tool_name: str) -> Optional[Any]
| Parameter | Type | Default | Description |
|---|---|---|---|
tool_name |
str |
Name of the tool |
Returns: Optional[Any] — Tool instance or None
List available tool categories.
list_categories() -> List[str]
Returns: List[str]
Get tools by category.
get_tools_by_category(category: str) -> List[str]
| Parameter | Type | Default | Description |
|---|---|---|---|
category |
str |
Returns: List[str]
Get list of registered tool names.
list_tools() -> List[str]
Returns: List[str]
Get all registered tools.
get_tools() -> Dict[str, Any]
Returns: Dict[str, Any]
Get all registered tool instances.
get_all_tools() -> List[Union[ToolDefinition, AbstractTool]]
Returns: List[Union[ToolDefinition, AbstractTool]]
Get all registered tools with their schemas as a generator.
all_tools() -> Generator[Any, Any, Any]
Returns: Generator[Any, Any, Any] — List of tool schemas
Unregister a tool by name.
unregister_tool(tool_name: str) -> bool
| Parameter | Type | Default | Description |
|---|---|---|---|
tool_name |
str |
Returns: bool
Clear all registered tools.
clear_tools() -> None
Remove a tool by name.
remove_tool(tool_name: str) -> None
| Parameter | Type | Default | Description |
|---|---|---|---|
tool_name |
str |
Name of the tool to remove |
Build formatted tool descriptions for system prompts.
build_tools_description(format_style: str = 'compact', include_parameters: bool = True, include_examples: bool = False, max_tools: Optional[int] = None) -> str
| Parameter | Type | Default | Description |
|---|---|---|---|
format_style |
str |
'compact' |
Style of formatting ("detailed", "compact", "list", "markdown") |
include_parameters |
bool |
True |
Whether to include parameter details |
include_examples |
bool |
False |
Whether to include usage examples |
max_tools |
Optional[int] |
None |
Maximum number of tools to include (None for all) |
Returns: str — Formatted string describing all available tools
Get a summary of all registered tools.
get_tools_summary() -> Dict[str, Any]
Returns: Dict[str, Any] — Dictionary with tool count and basic information
Install (or remove) the FEAT-538 invocation observer.
Opt-in and per-manager. A :meth:clone deliberately does NOT
inherit it: clones share tool instances but own their mutable
state, and a shared observer would let one clone's turn capture
collect another clone's calls.
set_invocation_observer(observer: Optional[Any]) -> None
| Parameter | Type | Default | Description |
|---|---|---|---|
observer |
Optional[Any] |
An observer exposing begin/finish/ cancelled/not_executed, or None to detach. |
Execute a registered tool function.
Public entry point. Behaviour is defined by
:meth:_execute_tool_impl; this wrapper only adds the optional
FEAT-538 observer, and is a direct pass-through when none is
installed.
The split exists so that dispatches which never reach a tool body
— an unknown tool, a guardrail or grant denial, an authorization
requirement — can be classified as unsuccessful dispatch
outcomes with executed=False. They must never receive a
fictitious tool_started: recording a start for a call that did
not run would claim an execution that never happened and corrupt
the journal's attempt counts.
execute_tool(tool_name: str, parameters: Dict[str, Any], permission_context: Optional['PermissionContext'] = None, *, return_tool_result: bool = False, request_tools: Optional[Mapping[str, Any]] = None) -> Any
| Parameter | Type | Default | Description |
|---|---|---|---|
tool_name |
str |
Name of the tool to execute. | |
parameters |
Dict[str, Any] |
Tool parameters/arguments. | |
permission_context |
Optional['PermissionContext'] |
None |
Optional permission context (see :meth:_execute_tool_impl). |
return_tool_result |
bool |
False |
Opt-in full-result mode (FEAT-536). |
request_tools |
Optional[Mapping[str, Any]] |
None |
Optional request-local tools, which take precedence over persistent registrations without modifying the manager registry. |
Returns: Any — Exactly what :meth:_execute_tool_impl returns.
Register an A2A agent by its URL.
register_a2a_agent(url: str) -> RegisteredAgent
| Parameter | Type | Default | Description |
|---|---|---|---|
url |
str |
The base URL of the A2A agent. |
Returns: RegisteredAgent — The registered agent object.
Raises:
-
Exception— If registration fails or agent is unreachable.
Get all registered A2A agents.
get_a2a_agents() -> List[RegisteredAgent]
Returns: List[RegisteredAgent]
Get agents that have a specific skill (by ID or name substring).
get_by_skill(skill: str) -> List[RegisteredAgent]
| Parameter | Type | Default | Description |
|---|---|---|---|
skill |
str |
Returns: List[RegisteredAgent]
Get agents that have a specific tag.
get_by_tag(tag: str) -> List[RegisteredAgent]
| Parameter | Type | Default | Description |
|---|---|---|---|
tag |
str |
Returns: List[RegisteredAgent]
Search agents by name, description, tags, or skills.
search_a2a_agents(query: str) -> List[RegisteredAgent]
| Parameter | Type | Default | Description |
|---|---|---|---|
query |
str |
Returns: List[RegisteredAgent]
List names of registered A2A agents.
list_a2a_agents() -> List[str]
Returns: List[str]
Execute a single tool call and return the result.
execute_tool_call(content_block: Dict[str, Any], permission_context: Optional['PermissionContext'] = None) -> Dict[str, Any]
| Parameter | Type | Default | Description |
|---|---|---|---|
content_block |
Dict[str, Any] |
Tool-use content block with name, input, and id keys. |
|
permission_context |
Optional['PermissionContext'] |
None |
Optional permission context, forwarded to execute_tool() for enforcement (FEAT-474 G7). Fail-open default preserved when omitted. |
Returns: Dict[str, Any]
Return the first registered instance of toolkit_cls, or None.
Matches on the exact class and, when tool_prefix is given, on an
equal prefix. A None prefix means that no prefix filter is applied.
find_registered_toolkit(toolkit_cls: type, *, tool_prefix: Optional[str] = None) -> Optional['AbstractToolkit']
| Parameter | Type | Default | Description |
|---|---|---|---|
toolkit_cls |
type |
The toolkit class to find. | |
tool_prefix |
Optional[str] |
None |
Optional prefix filter. |
Returns: Optional['AbstractToolkit'] — The first matching registered toolkit, or None.
Get the number of registered tools.
tool_count() -> int
Returns: int
Return a new ToolManager sharing this manager's tool registrations.
Designed for per-user session isolation (Telegram, MS Teams, Slack,
HTTP) where every user must get their own manager so credential
state cached on the manager cannot leak across concurrent users.
The cloned manager reuses the same tool instances by reference
so LLM schemas stay identical — credential isolation is expected
to happen at the tool-invocation layer via CredentialResolver.
Not cloned (each user gets a fresh, independent copy):
- _shared (dataframe registry)
- _registered_agents (per-session agent bindings)
- _result_hooks
- _wired_toolkits (auto-wire tracking)
- MCP state initialised by _init_mcp
- FEAT-380 compression metrics/circuit-breaker state
(_compression_router and _compression_stage's router):
one user's degraded codec must never leak into another's
session. The _compression_registry (parsed TOML config)
IS shared by reference — schemas must stay identical across
users, and re-parsing per clone would be wasted I/O.
- FEAT-380 _compression_tee (TASK-1953): each clone gets its
own tee (fresh retention/counters) from its own __init__,
(re)bound to whatever WorkingMemoryToolkit THAT clone has
registered — a shared tee would let one session's teed
payloads evict another's.
Carried by reference (the owning bot's guardrail configuration —
a clone must never be a way around it):
- _tool_call_pipeline (PA-10, TOOL_CALL guardrails)
- enable_redaction and _tool_output_pipeline (FEAT-932,
TOOL_OUTPUT guards; applied per dispatch, never stamped onto
the shared tool instances)
- _execution_policy (FEAT-933, executor routing; resolved per
dispatch, not owned by the clone, so its close_executors()
leaves the bot's executors open)
clone(*, include_search_tool: bool = False) -> 'ToolManager'
| Parameter | Type | Default | Description |
|---|---|---|---|
include_search_tool |
bool |
False |
Whether the clone should auto-register the search_tools meta-tool. Defaults to False so the copy inherits exactly the tools the original carries, avoiding a duplicate registration when the original already included it. |
Returns: 'ToolManager' — A new ToolManager whose _tools dict holds the same references as this one but whose mutable state is independent.
Store df in shared context and push into python_pandas if present.
FEAT-380 (TASK-1945): pushing into python_pandas here only
updates the tool's host-side df_locals bookkeeping (via
add_dataframe() -> _process_dataframes()) — the actual
cross-process delivery into the worker's namespace (Arrow IPC/shm,
pickle fallback) happens lazily, transparently, the next time that
tool's worker is acquired (PythonPandasTool._get_worker_handle(),
TASK-1944's diff-based seeding, upgraded to Arrow by TASK-1945).
This method stays synchronous (its own call sites are), so it cannot
await that round-trip directly.
share_dataframe(name: str, df: 'pd.DataFrame', meta: Dict[str, Any] = None) -> str
| Parameter | Type | Default | Description |
|---|---|---|---|
name |
str |
||
df |
'pd.DataFrame' |
||
meta |
Dict[str, Any] |
None |
Returns: str
get_shared_dataframe(name: str) -> 'pd.DataFrame'
| Parameter | Type | Default | Description |
|---|---|---|---|
name |
str |
Returns: 'pd.DataFrame'
list_shared_dataframes() -> List[str]
Returns: List[str]
clear_shared() -> None
Register a function(tool_name, result, metadata) -> None run after each tool.
add_result_hook(fn: Callable[[str, Any, Dict[str, Any]], None]) -> None
| Parameter | Type | Default | Description |
|---|---|---|---|
fn |
Callable[[str, Any, Dict[str, Any]], None] |
Close all registered toolkits that hold resources (DB pools, etc.).
Iterates the registered tools, finds unique parent toolkit instances
(via ToolkitTool.bound_method.__self__), and calls cleanup()
or stop() on each. Failures are logged and isolated so one
misbehaving toolkit cannot block the rest.
FEAT-391: before the existing cleanup()/stop() call, releases
any resources acquired via the _open()/_ensure_open() lazy
lifecycle by calling _close() on every toolkit (Phase 1) and on
every standalone (non-toolkit) tool (Phase 2) that has _opened
set. _close() errors are caught and logged, matching the
existing error-isolation pattern, so one broken toolkit/tool never
blocks cleanup of the rest.
Resetting _opened is framework-enforced here, not merely left
to each _close() override's discipline: this method always
sets _opened = False after attempting _close() — whether it
succeeded, raised, or was a subclass override that forgot to call
super()._close() — so a forgetful override cannot permanently
wedge the toolkit/tool into "always considered open".
cleanup_toolkits() -> None
Raised when two toolkits try to register the same tool name.
Only raised for tools originating from toolkits that opted into
namespacing via AbstractToolkit.tool_prefix. Legacy (unprefixed)
tools fall back to the previous warn-and-skip behaviour to avoid
breaking untouched toolkits during the migration.
Re-exported from parrot.tools.abstract.ToolOutputGuards.
Re-exported from parrot.tools.abstract.ToolResult.
Adapter class to convert tool schemas between different LLM provider formats.
Clean and adapt tool schema for specific LLM provider requirements.
clean_schema_for_provider(schema: Dict[str, Any], provider: ToolFormat) -> Dict[str, Any]
| Parameter | Type | Default | Description |
|---|---|---|---|
schema |
Dict[str, Any] |
Original tool schema | |
provider |
ToolFormat |
Target LLM provider format |
Returns: Dict[str, Any] — Cleaned schema compatible with the provider
Re-exported from parrot.memory.agent_memory.attribution.capture_tool_attempt.
Re-exported from parrot.auth.retry_safety.current_turn_tracker.
Return the toolkit that owns tool, or None.
A toolkit is reachable two ways: it is registered directly (tool IS
an AbstractToolkit), or one of its methods is registered as a
ToolkitTool whose bound_method.__self__ is the owner. Anything
else (plain AbstractTool, ToolDefinition, None) has no owner.
get_toolkit_owner(tool: Any) -> Optional['AbstractToolkit']
| Parameter | Type | Default | Description |
|---|---|---|---|
tool |
Any |
Any object a ToolManager iterable may yield. |
Returns: Optional['AbstractToolkit'] — The owning AbstractToolkit instance, or None.
Re-exported from parrot.auth.pending.record_auth_requirement.
Re-exported from parrot.tools.abstract.tool_execution_route_scope.
Re-exported from parrot.tools.abstract.tool_output_guards_scope.
- 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