Skip to content

API Reference parrot.handlers.config_handler

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

parrot.handlers.config_handler

View source

REST API Handler for BotConfig Management.

Provides CRUD endpoints for managing agent configurations via the AgentRegistry and BotConfigStorage (Redis).

Alias AgentRegistry

Re-exported from parrot.registry.AgentRegistry.

Alias BotConfig

Re-exported from parrot.registry.BotConfig.

Class BotConfigHandler

REST API Handler for BotConfig CRUD operations.

Parameter Type Default Description
*args Any ()
**kwargs Any {}

Attributes:

Attribute Type Description
registry AgentRegistry Get AgentRegistry from the app.
storage BotConfigStorage Get BotConfigStorage from the app.

Method BotConfigHandler.get

GET handler.

  • /config/{agent_name} → single agent config
  • /config → list all (optionally ?category=X)

get() -> web.Response

Returns: web.Response

Method BotConfigHandler.post

Update an existing agent config.

Body: full BotConfig JSON. Query: ?persist=file to write YAML instead of Redis.

post() -> web.Response

Returns: web.Response

Method BotConfigHandler.put

Insert a new agent config into Redis and register in runtime.

Body: full BotConfig JSON.

put() -> web.Response

Returns: web.Response

Method BotConfigHandler.delete

Delete a Redis-backed agent config.

File-based configs cannot be deleted via this endpoint.

delete() -> web.Response

Returns: web.Response

Method BotConfigHandler.patch

Partially update fields on an existing agent config.

Body: JSON with fields to merge (e.g. {"priority": 5}).

patch() -> web.Response

Returns: web.Response

Alias BotConfigStorage

Re-exported from parrot.registry.BotConfigStorage.

Alias BotMetadata

Re-exported from parrot.registry.BotMetadata.

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