Skip to content

API Reference parrot.memory.dream.toolkit

github-actions[bot] edited this page Dec 2, 2026 · 1 revision

parrot.memory.dream.toolkit

View source

BrainAdminToolkit — administrator-only inspection of an agent's brain (FEAT-889 M6).

Never registered on the agent's own ToolManager. The agent HTTP handler mounts it on the session-scoped ToolManager only when PBAC allows the user (tool:brain_admin_* is denied to everyone outside superuser by policies/tools.yaml).

Alias AbstractToolkit

Re-exported from parrot.tools.toolkit.AbstractToolkit.

Class BrainAdminToolkit

Administrator-only inspection of an agent's brain.

Parameter Type Default Description
service BrainService
**kwargs Any {}

Attributes:

Attribute Type Description
read_tools frozenset[str]

Method BrainAdminToolkit.search

Search the brain of a tenant. Defaults to the tenant of the request.

search(query: str, tenant_id: str | None = None) -> str

Parameter Type Default Description
query str
tenant_id str | None None

Returns: str

Method BrainAdminToolkit.list_pages

List the pages of a tenant's brain.

list_pages(tenant_id: str | None = None, category: str | None = None) -> list[dict[str, Any]]

Parameter Type Default Description
tenant_id str | None None
category str | None None

Returns: list[dict[str, Any]]

Method BrainAdminToolkit.read_page

Read one brain page in full.

read_page(page_id: str, tenant_id: str | None = None) -> dict[str, Any] | None

Parameter Type Default Description
page_id str
tenant_id str | None None

Returns: dict[str, Any] | None

Method BrainAdminToolkit.cycle_status

Lease holder flag, known tenants and each tenant's cycle state.

cycle_status() -> dict[str, Any]

Returns: dict[str, Any]

Method BrainAdminToolkit.run_cycle

Trigger a dream cycle now and return its reports.

run_cycle(tenant_id: str | None = None) -> list[dict[str, Any]]

Parameter Type Default Description
tenant_id str | None None

Returns: list[dict[str, Any]]

Alias BrainService

Re-exported from parrot.memory.dream.service.BrainService.

Alias brain_admin_grant

Re-exported from parrot.memory.dream.models.brain_admin_grant.

Alias current_tenant

Re-exported from parrot.observability.context.current_tenant.

Alias requires_permission

Re-exported from parrot.tools.decorators.requires_permission.

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