Skip to content

API Reference parrot.handlers.agents.sharing

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

parrot.handlers.agents.sharing

View source

Agent sharing scaffold — deferred to a follow-up FEAT.

Design decision (FEAT-149 §8 Open Questions): Sharing will be implemented as a per-user permission list stored in the permissions JSONB column of navigator.users_bots. The exact scheme (read-only share links, per-user ACL, org-level visibility) is still being finalised and is intentionally out of scope for FEAT-149.

Intended interface (subject to change)::

POST /api/v1/user_agents/{chatbot_id}/share
    {
      "target_user_id": 42,
      "permission": "read"  # or "write" | "none"
    }

GET /api/v1/user_agents/{chatbot_id}/share
    → list of {user_id, permission, granted_at}

DELETE /api/v1/user_agents/{chatbot_id}/share/{target_user_id}

TODO(FEAT-XXX): Implement agent sharing when the design is finalised.

Class AgentSharingHandler

Stub handler for ephemeral agent sharing.

All methods raise :class:NotImplementedError until the follow-up feature implements the sharing scheme.

Method AgentSharingHandler.post

Share an agent with another user (not yet implemented).

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

Parameter Type Default Description
request web.Request The aiohttp request object.

Returns: web.Response

Raises:

  • NotImplementedError — Always, until sharing is implemented.

Method AgentSharingHandler.get

List users with access to an agent (not yet implemented).

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

Parameter Type Default Description
request web.Request The aiohttp request object.

Returns: web.Response

Raises:

  • NotImplementedError — Always, until sharing is implemented.

Method AgentSharingHandler.delete

Revoke access to an agent (not yet implemented).

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

Parameter Type Default Description
request web.Request The aiohttp request object.

Returns: web.Response

Raises:

  • NotImplementedError — Always, until sharing is implemented.

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