Skip to content

API Reference parrot.server.ui.catalog

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

parrot.server.ui.catalog

View source

Admin UI catalog endpoint — GET /api/v1/admin/catalog.

Serves the option lists the Admin UI agent-management form needs (LLM providers, operation_mode/memory_type enums, knowledge-base class options) so the UI hardcodes none of them (spec §8 Q2, resolved: no hardcoded KB list — the server owns the catalog).

Follows the same authenticated-endpoint pattern as parrot.server.ui.status.AdminStatusHandler (TASK-2524): the response models here are also the TS codegen source (scripts/generate_ts_types.py).

Class AdminCatalog

Aggregate option-list payload for the Admin UI agent form.

Fields:

Field Type Default Description
llm_providers list[str]
operation_modes list[str]
memory_types list[str]
knowledge_bases list[KnowledgeBaseOption]
bot_class_default str 'BasicBot'

Class AdminCatalogHandler

GET /api/v1/admin/catalog — option lists for the agent form.

Method AdminCatalogHandler.get

Return the current :class:AdminCatalog payload as JSON.

get() -> web.Response

Returns: web.Response — A 200 JSON response matching :class:AdminCatalog. Requires an authenticated session (enforced by the class decorators).

Class KnowledgeBaseOption

A single selectable knowledge-base class for custom_kbs.

Fields:

Field Type Default Description
class_path str
name str
description str | None None

Alias RedisKnowledgeBase

Re-exported from parrot.stores.kb.RedisKnowledgeBase.

Alias SUPPORTED_CLIENTS

Re-exported from parrot.clients.factory.SUPPORTED_CLIENTS.

Function build_catalog

Assemble the :class:AdminCatalog payload.

Pure and import-safe: no aiohttp request/app dependency, so it is unit-testable directly without spinning up a server.

build_catalog() -> AdminCatalog

Returns: AdminCatalog — The aggregated catalog payload.

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