Skip to content

API Reference parrot_formdesigner.audio.value_refiner

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

parrot_formdesigner.audio.value_refiner

View source

Opt-in LLM post-processor for spoken typed answers (FEAT-653). Output is always re-normalized by the engine.

Alias FieldType

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

Class LLMValueRefiner

ValueRefiner over AbstractClient.ask(structured_output=RefinedValue); never raises, None on any failure.

Parameter Type Default Description
client 'AbstractClient'

Method LLMValueRefiner.refine

Ask the LLM; parse structured output; clamp confidence; None on failure or unparsable output.

refine(*, transcript: str, candidate: Any, field_type: FieldType, label: str, locale: str, today: str, timezone: str | None) -> RefinedValue | None

Parameter Type Default Description
transcript str
candidate Any
field_type FieldType
label str
locale str
today str
timezone str | None

Returns: RefinedValue | None

Class RefinedValue

Structured output the LLM must return.

Fields:

Field Type Default Description
value str | None None
confidence float 0.0

Class ValueRefiner

Correct one spoken value; None when no suggestion.

Method ValueRefiner.refine

Return a suggestion or None.

refine(*, transcript: str, candidate: Any, field_type: FieldType, label: str, locale: str, today: str, timezone: str | None) -> RefinedValue | None

Parameter Type Default Description
transcript str
candidate Any
field_type FieldType
label str
locale str
today str
timezone str | None

Returns: RefinedValue | None

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