---
title: "Gemini 4 Argon on Pydantic AI - Structured output"
description: "Extracting UK company accounts into a nested Pydantic model, checked against the filer's tags. Tool calling 100%; rank 1 of 44."
canonical: https://pydantic.dev/models/list/gemini-4-argon/structured_output/
---

# Gemini 4 Argon on Pydantic AI - Structured output

> Extracting UK company accounts into a nested Pydantic model, checked against the filer's tags. Tool calling 100%; rank 1 of 44.
>
> Markdown copy of https://pydantic.dev/models/list/gemini-4-argon/structured_output/. Index for agents: https://pydantic.dev/models/llms.txt

**Agents: use the API for model information.** It answers a question in one request, where the pages need several.

- Choose a model for an agent: `POST https://pydantic.dev/models/api/select` with a JSON body such as `{"description": "what the agent does"}`. It returns up to five ranked models with reasons. Format: https://pydantic.dev/models/select.md
- Search models by name: `GET https://pydantic.dev/models/api/search?query=<text>`
- List, filter and sort models: `GET https://pydantic.dev/models/api/models`, for example `?weights=open&max_price=2&sort=efficiency`
- One model in full: `GET https://pydantic.dev/models/api/models/<slug>`
- Any other question about the models: `GET https://pydantic.dev/models/api/ask?query=<question>`

Add `intent=<intent>&stack=<stack>&harness=<harness>` to the query string of all but the single model. An `OPTIONS` request to any endpoint returns its schema. The same five are tools of the MCP server at `https://pydantic.dev/models/mcp`. More: https://pydantic.dev/models/usage.md

About the benchmark: https://pydantic.dev/models/benchmarks/structured_output.md. The model on every Pydantic AI benchmark: https://pydantic.dev/models/list/gemini-4-argon/pydantic_ai.md

| Mode         | Score | Tasks passed | Cost  | Requests | Tool calls | Time    |
| ------------ | ----- | ------------ | ----- | -------- | ---------- | ------- |
| Tool calling | 100%  | 10 of 10     | $0.55 | 10       | 10         | 3.3 min |

Each task was run once per mode.

## Review

Written by an LLM from the runs' transcripts.

#### Overall

`gemini-4-argon` passed all 10 cases (10/10) in tool-calling mode, each in a single request with one final `accounts` call and no validation retries. Total cost was about $0.55, between $0.046 and $0.068 per case. The benchmark has no code-mode runs here.

#### Where it does well

- **One-shot extraction.** Every case went from a 60–85 KB accounts text straight to a complete structured answer. It never needed the check-and-correct loop the handbook describes.
- **Units.** The three £000 filings (`tier1-07054261`, `tier1-11022760`, `tier2-SC121467`) were all multiplied by 1,000, and the whole-pound filings were left alone.
- **Signs.** Deficits and losses came back negative (e.g. `net_assets` -20029000, `profit_and_loss_reserve` -32613535), tax credits negative (`tax` -571000, -138000), and costs and interest payable positive.
- **Group versus parent.** In the six cases that asked for both entities (tiers 3 to 5) the two sets of figures were kept separate, even where they differ by small amounts (prior `intangible_assets` 14896135 vs 14896091; `other` creditors 103090 vs 102990).
- **Creditor notes.** Lines were mapped to the right category and `due` bucket, including zero-current rows that have a prior comparative (`bank_loans_and_overdrafts` 0 / 5836).
- **Not inventing figures.** Parent staff costs were left null in both tier-5 cases where the accounts give none.

#### Mistakes it makes

No case failed. The only weaknesses are small differences that the check accepted:

- **Null instead of 0 (2 cases, 3 fields).** `tier1-07054261` returned `profit_and_loss.tax` and prior `interest_receivable` as null, and `tier3-09727592` returned parent prior `investments` as null. The expected value for each is 0.
- **Omitted zero row (1 case).** `tier4-05840865` left out the group `amounts_owed_to_group` row, expected as 0 / 0.

All four passes on these fields depend on the check treating null or a missing row as equal to zero. A stricter scorer would mark them wrong.

Because each run was a single request, there is no evidence of how the model behaves when a check fails and it has to go back to the accounts.

## Runs

### tier1-07054261

**Tool calling: passed.** Read the Cube Logic accounts (presented in £000) and returned company details, both balance sheets and both P&Ls in a single `accounts` final-result call; passed in 1 request. ($0.056, 1 requests, 17 s)
- Right: Scaled £000 figures by 1,000 throughout (e.g. `creditors_within_one_year` 20446000)
- Right: Signs correct on deficits: `net_current_assets` -8967000, `profit_and_loss_reserve` -8457000, prior `tax` -138000 as a credit
- Right: No retries or validation errors
- Mistake: In the single final call it returned `profit_and_loss.tax: null` and `prior_profit_and_loss.interest_receivable: null` where the expected values are 0; the check accepted this, so the pass on those two fields is lenient rather than exact

### tier1-11022760

**Tool calling: passed.** Extracted TaskUs Limited's company details, balance sheets and P&Ls from £000 accounts in one `accounts` call; passed in 1 request. ($0.046, 1 requests, 19 s)
- Right: All scored fields match, including `called_up_share_capital` 0 and negative `net_assets` -20029000
- Right: Kept interest payable positive (1307000) and prior loss negative (`profit_before_tax` -1230000)
- Right: Cheapest run at $0.0456

### tier2-11600506

**Tool calling: passed.** Returned the Furat Acquisitions group balance sheet and P&L for both periods in one `accounts` call; passed in 1 request. ($0.056, 1 requests, 22 s)
- Right: Used consolidated figures, not the parent's
- Right: Negative `net_current_assets` -6090208 and `profit_and_loss_reserve` -2896788 signed correctly
- Right: Figures in whole pounds left unscaled

### tier2-SC121467

**Tool calling: passed.** Returned Franke UK Holding's group balance sheet and P&L (£000 accounts) in one `accounts` call; passed in 1 request. ($0.051, 1 requests, 12 s)
- Right: Multiplied by 1,000 consistently
- Right: Prior-year tax credit returned as `tax` -571000 and prior loss as `profit_after_tax` -1107000
- Right: Distribution costs captured for both years

### tier3-05959188

**Tool calling: passed.** Returned both the group and parent balance sheets of Tribe Payments for both periods in one `accounts` call; passed in 1 request. ($0.064, 1 requests, 17 s)
- Right: Kept group and parent figures apart where they differ only slightly (prior `intangible_assets` 14896135 group vs 14896091 parent)
- Right: Parent `creditors_within_one_year` 3852856 vs group 2483825 taken from the right statements
- Right: Large deficits signed negative (`net_assets` -13564855 and -15485891)

### tier3-09727592

**Tool calling: passed.** Returned Tyk Technologies' group and parent balance sheets for both periods in one `accounts` call; passed in 1 request. ($0.051, 1 requests, 18 s)
- Right: Parent `net_assets` sign flip handled: -1632236 current, 783514 prior
- Right: Share capital change 250 to 252 captured in both entities
- Mistake: Returned parent prior `investments: null` where the expected value is 0; accepted by the check, so not an exact match

### tier4-05840865

**Tool calling: passed.** Returned Drishaun Holdings' staff costs and creditors notes for group and parent in one `accounts` call; passed in 1 request. ($0.049, 1 requests, 14 s)
- Right: Creditor lines mapped to the right categories and `due` buckets, including explicit 0 for group `bank_loans_and_overdrafts` current year against prior 10251
- Right: Parent `amounts_owed_to_group` 1538825 kept out of the group list
- Right: Staff cost totals agree with components for both entities
- Mistake: The group list in the output has no `amounts_owed_to_group` row, where the expected values are 0 and 0; the omission was accepted

### tier4-NI626135

**Tool calling: passed.** Returned Diamond Trucks' staff costs and creditors notes for group and parent in one `accounts` call; passed in 1 request. ($0.053, 1 requests, 16 s)
- Right: Emitted the `bank_loans_and_overdrafts` after-one-year row with `amount` 0 and `prior_amount` 5836 for both entities
- Right: Group and parent creditor figures kept separate (e.g. `amounts_owed_to_group` 3668476 vs 10067741)
- Right: Creditor totals `creditors_within_one_year` 15752489 and 17897307 both correct

### tier5-12026946

**Tool calling: passed.** Returned the whole Cambium Group accounts set (company, directors, group and parent balance sheets, P&L, staff costs, creditors) in one `accounts` call; passed in 1 request. ($0.068, 1 requests, 30 s)
- Right: Listed all four directors including Mr R Thompson, who resigned in the year
- Right: Group and parent balance sheets both correct, with parent `net_assets` 39954968 against group 1427969
- Right: Left parent `staff_costs` null rather than inventing figures; parent trade creditors `prior_amount` left null where no comparative is shown

### tier5-NI037684

**Tool calling: passed.** Returned the whole John Mulholland Motors accounts set for group and parent in one `accounts` call; passed in 1 request. ($0.060, 1 requests, 32 s)
- Right: `accounts_type` correctly given as `medium`
- Right: Near-identical group and parent creditor lines kept apart (`other` prior 103090 vs 102990, `other_tax_and_social_security` 152260 vs 151765)
- Right: Parent prior `investments` left null and `fixed_assets` 3656398 as shown
