HF RL Explorer

Gemini provider fails with Decimal fields in Pydantic models

Gemini provider fails with Decimal fields in Pydantic models: a task in LegoFlow-SWE (Harbor dataset). Problem When using a Pydantic response model that contains Decimal fields (common for financial calculations) with the Gemini (google‑genai) provider, schema validation and conversion fails…

The task

**Problem** When using a Pydantic response model that contains `Decimal` fields (common for financial calculations) with the Gemini (google‑genai) provider, schema validation and conversion fails. Pydantic’s JSON schema represents `Decimal` fields as an `anyOf` of `string` and `number` types. The Gemini provider’s…

Part of Lego-X/LegoFlow-SWE.