Skip to content

API Reference parrot.handlers.models.users_prompts

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

parrot.handlers.models.users_prompts

View source

Database model for per-user prompts (navigator.users_prompts).

Mirrors :class:parrot.handlers.models.bots.PromptLibrary but is keyed by (user_id, prompt_id) so each user owns their own private prompt collection. chatbot_id is typed as a plain string so it can hold either a DB-backed chatbot UUID (stringified) or a registry agent slug (e.g. "web_search_agent").

Alias PARROT_SCHEMA

Re-exported from parrot.conf.PARROT_SCHEMA.

Alias PromptCategory

Re-exported from parrot.handlers.models.bots.PromptCategory.

Class UserPrompts

Per-user prompt definition.

All fields mirror :class:PromptLibrary semantics where applicable, plus user_id and the future-promotion flag is_public.

Attributes:

Attribute Type Description
prompt_id uuid.UUID
user_id int
chatbot_id str
title str
query str
description Optional[str]
prompt_category str
prompt_tags list
is_public bool
created_at datetime
created_by Optional[int]
updated_at datetime

Class UserPrompts.Meta

Meta UserPrompts.

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