Skip to content

API Reference parrot.bots.factory.tools.finalize

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

parrot.bots.factory.tools.finalize

View source

Finalize step — write the YAML and reload the registry.

This is the only tool that mutates the registry on disk. It is invoked at the very end of the factory flow, after the user has approved the AgentDefinition at the pre-finalize HITL checkpoint.

Alias AgentDefinition

Re-exported from parrot.bots.factory.contracts.AgentDefinition.

Alias BotConfig

Re-exported from parrot.registry.registry.BotConfig.

Alias agent_registry

Re-exported from parrot.registry.agent_registry.

Function finalize_agent_registration

Write the YAML, reload the registry, and return the registration result.

Returns a dict with the YAML path and whether the registry picked up the new definition (the registry skips enabled=False configs silently).

finalize_agent_registration(definition: AgentDefinition, category: str = 'general') -> Dict[str, Any]

Parameter Type Default Description
definition AgentDefinition
category str 'general'

Returns: Dict[str, Any]

Alias tool

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

Function write_agent_yaml

Persist an AgentDefinition as a YAML file under agents/<category>/.

Delegates to AgentRegistry.create_agent_definition so the on-disk layout matches what the registry's YAML loader expects.

write_agent_yaml(definition: AgentDefinition, category: str = 'general') -> Path

Parameter Type Default Description
definition AgentDefinition
category str 'general'

Returns: Path

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