---
title: "DeepSeek V4 Pro 0423 on Pydantic AI Companies House"
description: "Extracting UK company accounts into a nested Pydantic model, checked against the filer's tags. Tool calling 90%; rank 9 of 20."
canonical: https://models.pydantic.dev/models/deepseek-v4-pro/companies_house/
---

# DeepSeek V4 Pro 0423 on Pydantic AI Companies House

> Extracting UK company accounts into a nested Pydantic model, checked against the filer's tags. Tool calling 90%; rank 9 of 20.
>
> Markdown copy of https://models.pydantic.dev/models/deepseek-v4-pro/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/deepseek-v4-pro.md

| Mode         | Score | Tasks passed | Cost  | Requests | Tool calls | Time     |
| ------------ | ----- | ------------ | ----- | -------- | ---------- | -------- |
| Tool calling | 90%   | 9 of 10      | $0.60 | 13       | 16         | 21.8 min |

Each task was run once per mode.

## Review

Written by an LLM from the runs' transcripts.

#### Overall

Across 10 cases, all run in **tools** mode, the model passed **9/10**. It made 13 requests in total (1.3 per case) and cost **$0.598** overall, an average of **$0.060** per case with a range of $0.034 to $0.093. Seven cases needed one request and three needed two. The only failure was **tier1-11022760**. Every case from tier 2 to tier 5 passed.

#### Where it does well

- **Unit scaling and sign rules.** It multiplied £000 figures by 1,000 correctly in all cases, including Cube Logic, TaskUs and Franke UK. It gave deficits, losses and tax credits negative signs (for example, the Franke prior tax credit of -571000) and kept charges positive.
- **Group vs parent separation.** It kept consolidated and parent figures apart in every multi-entity case (tier 3 to tier 5). Examples are the NI626135 group creditors of 15,752,489 against the parent's 17,897,307, and parent investments of 300 in NI037684. In the single-entity group cases (tier 2) it used group figures, not the parent company's.
- **Null vs zero, mostly right.** It used null for lines the accounts don't show. It used 0 where the accounts show a nil comparative, as with the bank loans in tier4-05840865 and tier4-NI626135.
- **Note-level detail.** In the tier 4 cases, all staff-cost and creditor lines matched. NI626135 had 58 of 58 figures correct.

#### Mistakes it makes

- **Nil vs null and the source of figures (the one failure).** In TaskUs (tier1-11022760), it returned share capital as 100 instead of 0. It took £100 from a note rather than the "-" shown on the £000 balance sheet. It also returned prior-year other operating income as null instead of 0. It submitted once and did not re-check.
- **Splitting multi-entity payloads.** In tier3-05959188, tier4-05840865 and tier4-NI626135, the first two submissions each sent only `group` or only `parent_company`. Both were rejected with "Field required". The model then recovered by merging the entities without changing any figures. This is why these three cases needed 2 requests and why tier4-05840865 cost more ($0.078).
- **Minor 0 vs null choices that were not penalised:**
  - Parent creditors after one year set to 0 in tier5-12026946.
  - Parent prior investments set to 0 in tier5-NI037684.
  - A provisions figure of 5,889 repeated across all four periods in tier3-09727592. This field was not graded but may be worth checking.

#### Tool calling compared with code mode

The notes contain **no code_mode runs**, so the two modes can't be compared. All of the figures above describe tools mode only.

## Runs

### tier1-07054261

**Tool calling: passed.** The agent extracted Cube Logic Limited's company details, balance sheets and P&L for FY2025 and FY2024 in a single accounts call. It scaled £000 figures by 1,000 and signed deficits correctly, and passed with no validation failures. ($0.063, 1 requests, 2.4 min)
- Right: Multiplied every £000 figure by 1,000, so share capital came out as 1000 and cash as 1,687,000.
- Right: Gave negative signs to the net current liabilities, net liabilities, losses and P&L reserve deficit, as the handbook requires.
- Right: Recorded the prior-year tax credit as -138000 and the current-year tax as 0.
- Right: Gave prior-year interest receivable as 0 rather than null, which matched the expected answer.
- Right: Set creditors after one year, provisions and stocks to null, since the accounts do not show them.
- Right: Identified the company as non-consolidated and audited with full accounts, and got both period dates right.
- Right: Finished in one call, with no wasted steps.

### tier1-11022760

**Tool calling: failed.** The agent pulled the full balance sheet, P&L and company details for TaskUs Limited (£000 accounts) in one call. Most figures matched, but the run failed on share capital (100 instead of 0, both years) and on prior-year other operating income (null instead of 0). ($0.057, 1 requests, 2.5 min)
- Right: Correctly multiplied the £000 figures by 1,000 for every major line, e.g. investments 16,705,000 and creditors within one year 50,167,000.
- Right: Applied the sign rules correctly: net current assets -36,631,000, net assets -20,029,000 and the P&L reserve deficit are negative, while tax of 312,000 and 632,000 is a positive charge.
- Right: Company details were all right: full, audited, not consolidated, and both periods' dates.
- Right: Every balance sheet subtotal agreed across both years.
- Mistake: In the single accounts call, called_up_share_capital was set to 100 for both years. The balance sheet is in £000, where the share capital shows as nil or '-'. The expected value is 0, so the agent took £100 from the note rather than the balance sheet figure as presented.
- Mistake: prior_profit_and_loss.other_operating_income was returned as null. The P&L shows this line in the current year (7,592,000), so the prior column showed it as nil and the value should have been 0, not null.
- Mistake: The agent made only one submission and did not check the accounts again for lines that appear with a nil comparative.

### tier2-11600506

**Tool calling: passed.** The agent extracted the group's consolidated balance sheet and P&L for both years from the Furat Acquisitions Ltd accounts in one `accounts` call. Every graded field matched the expected answer and the run passed. ($0.034, 1 requests, 47 s)
- Right: Signed the deficit figures correctly as negatives: net current assets -6090208, net assets -2896388, P&L reserve -2896788 and total assets less current liabilities -857995. Positive figures such as prior-year TALCL 1430307 were kept positive.
- Right: Reported costs, creditors and tax as positive amounts, as the handbook requires.
- Right: Used group (consolidated) figures, not the parent company's own balance sheet.
- Right: Set lines the accounts do not show (investments, investment property, share premium, distribution costs) to null.
- Right: Finished in a single tool call with no validation failures.

### tier2-SC121467

**Tool calling: passed.** The agent pulled the group's consolidated balance sheet and P&L for both years from the Franke UK Holding accounts (£000 multiplied by 1,000) in a single accounts call. The output matched every expected field and passed. ($0.040, 1 requests, 59 s)
- Right: Multiplied every £000 figure by 1,000 correctly (e.g. cash 2855000, net assets 8263000).
- Right: Gave the profit and loss reserve as negative in both years (-1296000, -1176000), since it is a deficit.
- Right: Gave the prior-year loss figures as negative (profit before tax -1678000, profit after tax -1107000) and the prior tax credit as -571000.
- Right: Kept the current-year tax charge of 299000 positive.
- Right: Used the group figures, not the parent company's.
- Right: Finished in one call with no validation failures.

### tier3-05959188

**Tool calling: passed.** The agent extracted the group and parent company balance sheets for both years. Its first two submissions failed because each sent only one entity, and it passed on the third call once it combined both entities into one payload. ($0.051, 2 requests, 63 s)
- Right: Every figure that was scored matches the expected answer for the group and the parent company in both years. This includes the negative net assets, P&L reserve and shareholders' funds, which are correctly signed.
- Right: It kept the group and parent company figures separate, for example parent intangibles prior of 14,896,091 against group 14,896,135.
- Right: It correctly left stocks, provisions, investment property and group investments as null.
- Right: After the schema errors it recovered by merging both entities into a single submission.
- Mistake: The first two 'accounts' calls each submitted only the group or only the parent_company. Both were rejected with 'Field required', which cost an extra round-trip. The agent should have sent both entities in one call from the start.
- Mistake: Group creditors_after_one_year (34,844,638 and 27,503,256) and group debtors were included although the expected answer does not score them. This was harmless.

### tier3-09727592

**Tool calling: passed.** The agent made a single accounts call that filled in the group and parent balance sheets for both periods. It passed with no validation failures, and every expected field matched. ($0.053, 1 requests, 2.1 min)
- Right: The group and parent company figures were kept apart: the parent's investments (40,275) and its own creditors are distinct from the group's.
- Right: Negative signs were applied correctly to net assets, shareholders' funds and the profit and loss reserve, including the parent's prior net assets, which are positive at 783,514.
- Right: Lines the accounts do not show were returned as null, and the parent's prior investments were given as 0, matching the expected answer.
- Right: The figures are internally consistent. For example, group current assets of 5,261,432 less creditors within one year of 4,517,103 gives net current assets of 744,329.
- Mistake: No errors were seen in the graded fields. The ungraded fields (provisions of 5,889 in every period and group creditors after one year) could not be checked against the expected answer. The same provisions figure appearing in all four periods may be worth checking, though it did not affect the grade.

### tier4-05840865

**Tool calling: passed.** The agent extracted the staff costs and creditors notes for the group and the parent company. Its first two calls each sent only one of the two entities and failed schema validation ('Field required'). A third call that combined both entities passed, and every expected field matched. ($0.078, 2 requests, 2.6 min)
- Right: All group within-one-year creditor lines and their prior amounts matched the expected values, e.g. trade creditors 2215873/1818672 and other creditors 1278154/820961.
- Right: Parent company figures were correctly kept apart from the group's, including amounts owed to group of 1538825/1524980 and finance leases after one year of 28174/39831.
- Right: The group bank loans line was correctly entered as 0 for the current year with a prior of 10251, rather than null.
- Right: Staff cost totals and their components matched for both entities and both years.
- Right: After the validation errors it corrected the problem by merging the two entities into one submission. It did not change any figures.
- Mistake: The first two `accounts` calls submitted 'group' and 'parent_company' as separate payloads. Both were rejected with 'Field required', which wasted two calls. The output schema needed both entities in a single object from the start.

### tier4-NI626135

**Tool calling: passed.** The agent pulled the staff costs and creditors notes for both the group and the parent company. Its first two submissions each covered only one entity and failed schema validation. Its third, combined submission was accepted and matched every expected field. ($0.048, 2 requests, 65 s)
- Right: All 58 expected figures were correct: group and parent creditor lines, both creditor totals, and staff costs, for current and prior periods.
- Right: It recorded the bank loans after one year as amount 0 with prior_amount 5836, rather than leaving the field null.
- Right: It kept group and parent figures apart, for example group creditors within one year of 15,752,489 against parent creditors within one year of 17,897,307.
- Right: After the schema errors it combined both entities into one call without changing any figures.
- Mistake: Calls 1 and 2 sent the group and parent_company objects as separate submissions. Each was rejected with a 'Field required' error for the missing entity, which wasted two calls. The schema needed both entities in a single object from the start.

### tier5-12026946

**Tool calling: passed.** The agent extracted the group and parent company figures for the year to 31 December 2025 in a single accounts call, and the run passed. ($0.093, 1 requests, 4.3 min)
- Right: Kept group and parent figures apart, including the separate parent balance sheet and the parent's creditor breakdown.
- Right: Applied the sign conventions correctly: negative net current assets, negative P&L reserve, a tax charge of 72816 shown positive and the prior-year tax credit of -51830 shown negative.
- Right: Listed all four directors, including Mr R Thompson, who resigned during the year.
- Right: Finished in one tool call with no retries.
- Mistake: In the accounts call, the agent set parent_company.balance_sheet.creditors_after_one_year to 0. The expected answer omits this field, which suggests null was the intended value because the line is not shown for the current year. The check still accepted the run.

### tier5-NI037684

**Tool calling: passed.** The agent made one `accounts` call. It extracted the group and parent company balance sheets, profit and loss, staff costs and creditors for both periods of the medium-sized consolidated accounts. The run passed on the first submission. ($0.081, 1 requests, 3.8 min)
- Right: It kept the consolidated figures and the parent company's own figures apart, including the parent's investments of 300 and its separate debtors, stocks and creditors.
- Right: Creditor categories and prior amounts were correctly split between group and company, for example trade creditors prior of 2,698,613 for the group against 2,689,140 for the company.
- Right: Tax, interest and provisions were returned as positive figures, as the handbook's sign rules require.
- Right: Every figure matched on the first attempt, with no retries or wasted calls.
- Mistake: Minor: the parent company's prior investments were entered as 0 when null might have been more accurate. The expected answer does not check this field, so the run was not affected.
