Skip to content

API Reference parrot_formdesigner.core.options

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

parrot_formdesigner.core.options

View source

Field option definitions for select and multi-select fields.

This module defines the data models for static options and dynamic options sources that can be loaded from external services.

Class FieldOption

A single option in a select or multi-select field.

Fields:

Field Type Default Description
value str The machine-readable value submitted with the form.
label LocalizedString The human-readable label shown to the user.
description LocalizedString | None None Optional extended description of the option.
disabled bool False Whether this option is disabled and cannot be selected.
icon str | None None Optional icon identifier or URL to display alongside the option.

Alias LocalizedString

Re-exported from parrot_formdesigner.core.types.LocalizedString.

Class OptionsSource

Dynamic options source configuration for fetching options at runtime.

Fields:

Field Type Default Description
source_type str Type of source (e.g., "tool", "endpoint", "query").
source_ref str Reference to the source (tool name, URL, query name).
value_field str 'value' Field in the source response to use as option value.
label_field str 'label' Field in the source response to use as option label.
cache_ttl_seconds int | None None How long to cache the fetched options. None means no cache.
http_method Literal['GET', 'POST'] 'GET' HTTP verb for endpoint sources. Defaults to "GET".
auth_ref str | None None Reference to an AuthContext auth entry for authenticated endpoints.

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