---
title: "Gemini 4 Hydrogen on Pydantic AI Companies House"
description: "Extracting UK company accounts into a nested Pydantic model, checked against the filer's tags. Tool calling 100%; rank 1 of 20."
canonical: https://models.pydantic.dev/models/gemini-4-hydrogen/companies_house/
---

# Gemini 4 Hydrogen on Pydantic AI Companies House

> Extracting UK company accounts into a nested Pydantic model, checked against the filer's tags. Tool calling 100%; rank 1 of 20.
>
> Markdown copy of https://models.pydantic.dev/models/gemini-4-hydrogen/companies_house/. Index for agents: https://models.pydantic.dev/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://models.pydantic.dev/api/select` with a JSON body such as `{"description": "what the agent does"}`. It returns up to five ranked models with reasons. Format: https://models.pydantic.dev/select.md
- Search models by name: `GET https://models.pydantic.dev/api/search?query=<text>`
- List, filter and sort models: `GET https://models.pydantic.dev/api/models`, for example `?weights=open&max_price=2&sort=efficiency`
- One model in full: `GET https://models.pydantic.dev/api/models/<slug>`

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

About the benchmark: https://models.pydantic.dev/benchmarks/companies_house.md. The model on every Pydantic AI benchmark: https://models.pydantic.dev/models/gemini-4-hydrogen.md

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

Each task was run once per mode.

## Review

Written by an LLM from the runs' transcripts.

#### Overall

The model passed all 10 cases. Every case ran in **tools** mode only, and each finished with a single `accounts` call and no validation failures or retries. Cost per case ranged from $0.0508 (tier2-11600506) to $0.0816 (tier5-12026946), averaging about $0.060 and totalling $0.602. The cases covered every tier, from single-entity accounts (tier 1) to full group-plus-parent extractions (tier 5). The hardest case, tier5-12026946, was also the most expensive.

#### Where it does well

- **Unit scaling:** It multiplied £000 figures by 1,000 consistently, for example turnover 16382 → 16,382,000 in tier1-07054261 and cash 2,855,000 in tier2-SC121467.
- **Sign conventions:** It signed deficits, losses and tax credits negative and kept charges positive in every case. Examples are net assets -6,187,000 with prior tax credit -138,000 (tier1-07054261), and tax charge 72,816 with prior credit -51,830 (tier5-12026946).
- **Group vs parent separation:** It chose consolidated over parent figures when asked (tier2-11600506, tier2-SC121467). It also kept the two entities apart in all tier 3–5 cases, for example group stocks 7,357,548 vs parent 5,082,704 in tier5-NI037684.
- **Null for absent lines:** It generally returned null for lines the accounts do not show, such as stocks, provisions and investment property, instead of inventing values. It also correctly returned 0 where the accounts show a zero, for example the tier4-NI626135 bank loan and the tier3-09727592 parent investments.
- **Notes mapping:** It mapped creditor categories correctly, and in tier4-05840865 they sum to the stated totals.

#### Mistakes it makes

None of these mistakes affected grading. All involved ungraded or tolerated fields.

- **0 vs null inconsistency:** It returned `creditors_after_one_year` as 0 where null was more faithful (tier2-SC121467, tier5-12026946 parent).
- **Omitted zero lines:** It dropped lines that the expected answer gives as 0/0 (group amounts owed to group and parent bank loans in tier4-05840865).
- **Extra fields:** It returned data the expected answer does not include, such as social security costs (tier4-NI626135) and group debtors and creditors after one year (tier3-05959188). These could not be verified.
- **Possible copy error:** Provisions of 5,889 appear identically across all four entity/period slots in tier3-09727592. This is unconfirmed.
- **No flag on resignations:** It listed a director who had resigned without comment (tier5-12026946). This matched the expected answer.

#### Tool calling compared with code mode

All 10 notes are tools-mode runs, so the model cannot be compared with code mode from this data. In tools mode it was efficient: one request per case, a 100% pass rate, and about $0.06 per case. Evaluating code mode would require separate runs.

## Runs

### tier1-07054261

**Tool calling: passed.** The agent pulled Cube Logic Limited's single-entity audited accounts, stated in £000, into the required structure in one accounts call. Every expected field matched and the run passed. ($0.059, 1 requests, 21 s)
- Right: Multiplied the £000 figures by 1,000 throughout, e.g. turnover 16382 became 16,382,000.
- Right: Signed the deficits correctly: net current assets -8,967,000, net assets -6,187,000 and P&L reserve -8,457,000.
- Right: Recorded the prior-year tax credit as -138,000, so the prior loss after tax of -10,439,000 is smaller than the loss before tax of -10,577,000.
- Right: Set prior-year interest receivable to 0 and used null for lines not shown, such as stocks, provisions and creditors after one year.
- Right: Got the company metadata right: full accounts, audited, not consolidated, and the correct periods.
- Right: Finished in a single submission with no validation failures.

### tier1-11022760

**Tool calling: passed.** The agent pulled the company details and both years' balance sheet and P&L from TaskUs Limited's £000 accounts in a single `accounts` call. Every scored field matched the expected answer, with no validation failures. ($0.056, 1 requests, 26 s)
- Right: Multiplied the £000 figures by 1,000 throughout (e.g. creditors within one year 50167 → 50,167,000).
- Right: Gave negative signs to the deficit figures: net current assets -36,631,000, net assets -20,029,000, P&L reserve -20,196,000 and prior profit before tax -1,230,000.
- Right: Kept costs and the tax charge positive, including prior tax of 632,000 alongside a prior loss after tax of -1,862,000.
- Right: Read called-up share capital as 0 instead of null, and prior other operating income as 0.
- Right: Correctly classed the accounts as full, audited and non-consolidated.
- Right: Finished in one call with no rework.

### tier2-11600506

**Tool calling: passed.** The agent pulled the group's consolidated balance sheet and P&L for both periods from the accounts in a single `accounts` call. Every value matched the expected answer and validation reported no failures. ($0.051, 1 requests, 19 s)
- Right: It took the group (consolidated) figures, not the parent company balance sheet, as the task asked.
- Right: It signed the deficit fields correctly: net assets (-2896388), net current assets (-6090208), P&L reserve (-2896788) and total assets less current liabilities (-857995, prior 1430307).
- Right: It used null for lines the accounts do not show (distribution costs, investments, investment property, share premium).
- Right: It got everything right in one tool call, with no retries or validation failures.

### tier2-SC121467

**Tool calling: passed.** The agent took the group consolidated balance sheet and P&L for both years from the Franke UK Holding accounts. It made a single `accounts` call, scaling £000 figures by 1,000, and every expected field matched, so the run passed. ($0.057, 1 requests, 22 s)
- Right: Multiplied the £000 figures by 1,000, e.g. cash 2,855,000 and creditors within one year 8,804,000.
- Right: Applied the sign rules: the profit and loss reserve deficit is -1,296,000, the prior-year loss before tax is -1,678,000, and the prior-year tax credit is -571,000.
- Right: Returned group (consolidated) figures rather than the parent company's, as the task asked.
- Right: Finished in a single tool call with no validation failures.
- Mistake: It set creditors_after_one_year to 0 for the current year. If the balance sheet shows no such line, null would have been the more accurate value. That field was not graded.

### tier3-05959188

**Tool calling: passed.** The agent read Tribe Payments Limited's accounts and made a single `accounts` call returning group and parent balance sheets for both periods. Every graded field matched the expected answer and the run passed with no validation failures. ($0.063, 1 requests, 20 s)
- Right: It kept the group (consolidated) and parent company figures apart, e.g. group creditors within one year of 2,483,825 against the parent's 3,852,856, and group intangibles of 14,896,135 against the parent's prior-year 14,896,091.
- Right: Deficit figures were signed negative as the handbook requires: net assets -13,564,855 and profit and loss reserve -25,824,630.
- Right: It returned null for lines the accounts do not show (stocks, provisions, investment property, group investments) instead of inventing values.
- Right: The submission was correct first time, with no validation failures and no retries.
- Mistake: Nothing material went wrong.
- Mistake: It also returned group debtors and group creditors after one year (e.g. 34,844,638). These fields were not graded, so they could not be checked against the expected answer.

### tier3-09727592

**Tool calling: passed.** The agent pulled the group and parent company balance sheets for both years in a single accounts call. Every graded field matched the expected answer and the run passed with no validation failures. ($0.056, 1 requests, 22 s)
- Right: It kept the group and parent figures apart correctly. For example, group net assets were -3,674,263 and parent net assets were -1,632,236.
- Right: Negative reserves and net assets got the right signs, such as the P&L reserve of -32,613,535 and the prior-year parent net assets of +783,514.
- Right: It returned parent prior-year investments as 0 rather than null, which matches the expected answer.
- Right: It finished in one call with no validation failures.
- Mistake: Provisions are given as 5,889 for all four periods and entities, which looks like the same value copied into each. The field was not graded, so this could not be confirmed against the accounts from the shortened transcript.

### tier4-05840865

**Tool calling: passed.** The agent pulled the group and parent company staff costs and creditors notes in a single accounts call. The output passed, and every expected field matched. ($0.056, 1 requests, 24 s)
- Right: It kept the group and parent company figures separate, including the parent's amounts owed to group of 1,538,825 against a prior 1,524,980.
- Right: It reported bank loans as 0 for the current year and kept the prior 10,251, rather than dropping the line.
- Right: The creditor categories add up to the stated totals (group within one year 4,229,724; parent 1,808,163).
- Right: It finished in one call with no validation failures.
- Mistake: It left out the group amounts_owed_to_group line, which the expected answer has as 0/0. This did not affect grading.
- Mistake: It also omitted the parent bank_loans line, expected as 0/0. Again no effect on grading.

### tier4-NI626135

**Tool calling: passed.** The agent extracted the group and parent company creditors and staff costs from the accounts in a single accounts call. Every expected field matched, there were no validation failures, and the run passed. ($0.057, 1 requests, 23 s)
- Right: It kept the group and parent company figures apart in both the creditors and staff costs notes.
- Right: It returned the after-one-year bank loan as 0 with a prior of 5836, rather than null, matching what the note shows.
- Right: It mapped the parent's 750,000 creditor to the 'other' category, as expected.
- Right: It submitted once with no validation failures, so no requests were wasted.
- Mistake: It also returned social_security_costs figures, which the expected answer does not include. This was harmless extra data and did not affect the pass.

### tier5-12026946

**Tool calling: passed.** The agent extracted the full group and parent company accounts for The Cambium Group UK Holdings Limited in a single accounts call. The submission passed and matches the expected figures. ($0.082, 1 requests, 39 s)
- Right: It returned all group balance sheet, P&L, staff cost and creditor figures with the correct current and prior values in one call.
- Right: It applied the sign conventions correctly, for example net current assets -14613956, the P&L reserve -43056856, the current-year tax charge of 72816 as positive and the prior-year tax credit of -51830 as negative.
- Right: It kept the parent company figures separate from the group's, including amounts owed to group undertakings and a different finance lease amount (165337).
- Right: It used null for lines the accounts do not show, such as provisions, investment property and distribution costs.
- Mistake: It set parent_company.balance_sheet.creditors_after_one_year to 0, although the expected answer leaves that field out (the current-year line was evidently blank). The check accepted it, but null would have been more faithful.
- Mistake: It listed Mr R Thompson as a director without remark, although the accounts say he resigned on 13 August 2025. This matched the expected answer, so it caused no harm.

### tier5-NI037684

**Tool calling: passed.** The agent pulled the group and parent company figures from John Mulholland Motors' 2025 accounts in a single `accounts` call. The submission passed and matches the expected answer. ($0.066, 1 requests, 30 s)
- Right: Kept group and parent figures apart. For example, group stocks 7,357,548 against parent 5,082,704, and group debtors 713,051 against parent 3,616,379.
- Right: Left group fixed_assets and investments as null, because the consolidated balance sheet shows only tangible assets. It filled parent fixed_assets 3,599,359 and investments 300.
- Right: Put each creditor line into the right category with its prior-year amount, including directors' loans of 18,372 against 5,938.
- Right: Got everything right in one tool call, with no wasted retries.
