Skip to content

API Reference parrot_formdesigner.tools.database_form

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

parrot_formdesigner.tools.database_form

View source

DatabaseFormTool — thin dispatcher over an AbstractFormService.

Resolves the requested service by name, runs fetch + to_form_schema, then registers the resulting FormSchema in the FormRegistry.

Class DatabaseFormInput

Input schema for DatabaseFormTool — service-aware.

Fields:

Field Type Default Description
service str 'networkninja' Form source service name. Must be registered via register_form_service(...). Defaults to 'networkninja'.
formid int Numeric form identifier in the database.
orgid int Organization ID that owns the form.
params dict[str, Any] | None None Optional service-specific extras forwarded to AbstractFormService.fetch(**params).
service_kwargs dict[str, Any] | None None Extra kwargs forwarded to the service constructor.
persist bool False Whether to save the resulting FormSchema to the registry storage.

Class DatabaseFormTool

Load a form definition from a configured form-source service into a FormSchema.

Resolves the requested service by name via the form-service registry, runs fetch() to retrieve raw data, maps it via to_form_schema(), registers the result in the FormRegistry, and returns it in ToolResult.metadata["form"].

Parameter Type Default Description
registry FormRegistry FormRegistry where the generated FormSchema will be registered.
tenant str | None None Optional tenant slug to use when registering the loaded form. When None, :class:FormRegistry falls back to its configured default_tenant.
**kwargs Any {} Additional keyword arguments forwarded to AbstractTool.

Attributes:

Attribute Type Description
name str
description str

Alias FormRegistry

Re-exported from parrot_formdesigner.services.registry.FormRegistry.

Alias get_form_service

Re-exported from parrot_formdesigner.tools.services.get_form_service.

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