Skip to content

API Reference parrot.manager.studio_builder

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

parrot.manager.studio_builder

View source

Build a Studio agent instance from one storage snapshot (spec §2.7). Never registers anything.

Alias AbstractBot

Re-exported from parrot.bots.abstract.AbstractBot.

Alias AgentMCPServerSpec

Re-exported from parrot.tools.spec.AgentMCPServerSpec.

Alias AgentRegistry

Re-exported from parrot.registry.registry.AgentRegistry.

Alias BotConfig

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

Alias IDENTITY_FILES

Re-exported from parrot.bots.prompts.identity.IDENTITY_FILES.

Class StudioAgentBuilder

§2.7 build: gate → factory with the explicit constructor map → versioned asset dir → stamps → configure.

Parameter Type Default Description
registry 'AgentRegistry'
runtime_dir Path
tooling_gate StudioToolingGate

Attributes:

Attribute Type Description
runtime_dir Path Root of the versioned asset directories (<root>/<agent_id>/v<version>).

Method StudioAgentBuilder.build

Build one instance; on failure clean the half-built bot once, remove its directory and raise.

build(snapshot: StudioAgentSnapshot, app: 'web.Application', *, part: StudioPartition) -> tuple['AbstractBot', Path]

Parameter Type Default Description
snapshot StudioAgentSnapshot
app 'web.Application'
part StudioPartition

Returns: tuple['AbstractBot', Path]

Raises:

  • StudioToolingRefused — the tenant policy refuses the stored tooling (fails the build closed).
  • AgentReloadError — any other failure (class refused/unknown, factory error, configure() error).

Alias StudioAgentSnapshot

Re-exported from parrot.handlers.studio.storage.models.StudioAgentSnapshot.

Alias StudioClassAllowlist

Re-exported from parrot.handlers.studio.storage.services._common.StudioClassAllowlist.

Alias StudioPartition

Re-exported from parrot.handlers.studio.storage.models.StudioPartition.

Alias StudioToolingGate

Re-exported from parrot.handlers.studio.storage.services._common.StudioToolingGate.

Alias StudioToolingRefused

Re-exported from parrot.handlers.studio.storage.models.StudioToolingRefused.

Alias ToolConfig

Re-exported from parrot.models.basic.ToolConfig.

Alias ToolkitSpec

Re-exported from parrot.tools.spec.ToolkitSpec.

Attribute logger

Alias normalized_tooling_for

Re-exported from parrot.handlers.studio.storage.services._common.normalized_tooling_for.

Alias studio_conversation_kwargs

Re-exported from parrot.handlers.studio.conversation.studio_conversation_kwargs.

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