---
title: "DeepSeek V4.1 Flash 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.1-flash/companies_house/
---

# DeepSeek V4.1 Flash 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.1-flash/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.1-flash.md

| Mode         | Score | Tasks passed | Cost   | Requests | Tool calls | Time    |
| ------------ | ----- | ------------ | ------ | -------- | ---------- | ------- |
| Tool calling | 90%   | 9 of 10      | $0.066 | 10       | 10         | 6.7 min |

Each task was run once per mode.

## Review

Written by an LLM from the runs' transcripts.

#### Overall

The model passed 9 of 10 cases on financial-accounts extraction, all in **tools mode**. Every run finished in a single `accounts` call with no retries. Cost per case ranged from $0.0033 to $0.0119, averaging about $0.0066 ($0.066 total). Tiers 2 through 5 passed in full (8/8). The only failure was in tier 1 (tier1-07054261), and it came from a single classification field. All the figures in that case were correct.

#### Where it does well

- **Scaling and signs:** It multiplied £000 figures by 1,000 correctly (tier1-11022760, tier2-SC121467, tier1-07054261). It signed deficits as negative, for example net assets of -20,029,000 and a P&L reserve of -2,896,788. It kept costs, interest payable and tax charges positive, and gave tax credits as negative (-138,000, -571,000, -51,830).
- **Group vs parent separation:** It used consolidated rather than company-only figures where required (tier2-11600506, tier2-SC121467). It kept group and parent balance sheets and notes apart in all four tier 3–4 cases and both tier 5 cases. It also caught small differences, such as intangibles of 14,896,091 for the parent against 14,896,135 for the group.
- **Notes extraction:** It handled staff costs and creditors notes accurately. The creditor totals were consistent with their components (tier4-05840865, tier4-NI626135). In tier5-12026946 it listed all four directors, including one who resigned during the year.
- **Efficiency:** It completed every case in one request with no wasted calls.

#### Mistakes it makes

- **Classification error (the only failure):** In tier1-07054261 it labelled audited accounts as `accounts_type: "medium"` instead of `"full"`. Those accounts had a full income statement, a strategic report and an auditor's report. Reviewers tagged the cause as `misread_question`.
- **Inconsistent null vs 0:** None of these cost a pass, but the pattern is consistent:
  - It used null or omitted the field where the accounts showed a dash or nil and the expected value was 0. This happened in tier1-11022760 (prior other operating income), tier3-09727592 (parent's prior investments) and tier4-05840865 (two creditor fields omitted).
  - In the reverse direction, it gave 0 where null was arguably expected in tier2-SC121467 (an unscored field).
- **Single-shot risk:** It submits without any visible inspection or self-check step, as noted in tier4-05840865. This has worked so far, but nothing in the runs would catch an error before submission.
- **Minor formatting:** It gave the company name in title case rather than as printed ("TaskUs Limited"). This was accepted.

#### Tool calling compared with code mode

All ten cases were run in tools mode only, so the notes give no basis for comparing the two modes. In tools mode the model passed 90% of cases at one request per case and about $0.0066 per case. Evaluating it in code mode would require separate runs.

## Runs

### tier1-07054261

**Tool calling: failed.** The agent extracted every financial figure correctly for both periods in a single accounts call. It labelled accounts_type as "medium" where the expected value is "full", and that one field caused the run to fail. ($0.0076, 1 requests, 67 s)
- Right: All balance sheet figures for both years match the expected values, including correctly scaling £000 figures by 1,000 (e.g. intangibles 2,640,000, creditors within one year 20,446,000).
- Right: Negative reserves and net liabilities were signed correctly (net assets -6,187,000, P&L reserve -8,457,000).
- Right: The prior-year tax credit was returned as -138,000, following the rule for tax credits.
- Right: The prior-year interest receivable was returned as 0 rather than null, matching the expected answer.
- Right: Company details, period dates, the audited flag and the consolidated flag were all correct.
- Mistake: In the single accounts call, the agent set company.accounts_type to "medium" instead of "full". These are audited accounts with a full Statement of Comprehensive Income (turnover, cost of sales and so on), a strategic report and an auditor's report. Nothing in the transcript shows the filing being labelled as medium-sized accounts, so it should have been classed as "full".

### tier1-11022760

**Tool calling: passed.** The agent extracted the company details, both balance sheets and both profit and loss accounts for TaskUs Limited in a single accounts call. The output passed validation with no failures. ($0.0082, 1 requests, 60 s)
- Right: Scaled every £000 figure by 1,000 correctly, e.g. investments 16705000 and creditors within one year 50167000.
- Right: Signed the deficit fields correctly: net assets -20029000, net current assets -36631000, profit and loss reserve -20196000, prior profit before tax -1230000.
- Right: Kept tax as a positive charge (312000 and 632000) and recorded called-up share capital as 0.
- Right: Set the company flags correctly: audited true, consolidated false, accounts type full, with the right period dates.
- Right: Finished in one call with no retries.
- Mistake: It set prior_profit_and_loss.other_operating_income to null where the expected answer is 0. The checker did not count this against the run, but the prior column probably showed a dash or nil next to a current-year amount, which is a zero rather than a missing line.
- Mistake: The company name was given as 'TaskUs Limited' rather than 'TASKUS LIMITED' as printed in the accounts. This was accepted.

### tier2-11600506

**Tool calling: passed.** The agent pulled the group consolidated balance sheet and P&L for both years from the accounts in a single accounts call. Every expected field matched and the run passed. ($0.0033, 1 requests, 7 s)
- Right: It took the consolidated (group) figures and not the company-only balance sheet.
- Right: Deficit figures were signed correctly: net current assets of -6090208, net assets of -2896388 and a P&L reserve of -2896788.
- Right: It entered total assets less current liabilities as negative for the current year (-857995) and positive for the prior year (1430307), as the accounts show.
- Right: Costs, interest payable and tax were returned as positive amounts, as the handbook requires.
- Right: It finished in one submission with no validation failures.

### tier2-SC121467

**Tool calling: passed.** The agent pulled the group consolidated balance sheet and P&L for both years from accounts presented in £000, scaled them to pounds, and submitted everything in one accounts call. It passed with every scored field matching the expected answer. ($0.0065, 1 requests, 36 s)
- Right: Multiplied the £000 figures by 1,000 throughout (e.g. cash 2,855,000; net assets 8,263,000).
- Right: Gave the signs correctly: the profit and loss reserve deficits are negative (-1,296,000 and -1,176,000), the prior-year losses are negative, and the prior-year tax credit is -571,000.
- Right: Gave costs and interest payable as positive amounts.
- Right: Used the group figures rather than the parent company's.
- Right: The single submission passed with no validation failures and no retries.
- Mistake: Current-year creditors_after_one_year was given as 0 rather than null. This field was not scored, and it may have appeared as '-' in the accounts, so the impact is minor or nil.

### tier3-05959188

**Tool calling: passed.** The agent read the Tribe Payments Limited group accounts and made one `accounts` call returning the group and parent company balance sheets for both years. The output matched every expected field and passed with no validation failures. ($0.0042, 1 requests, 9 s)
- Right: It kept the consolidated and parent-company figures apart, giving the parent intangibles of 14,896,091 in the prior year against 14,896,135 for the group.
- Right: Deficit figures were signed correctly: net assets, shareholders' funds and the profit and loss reserve are negative, for example group net assets of -13,564,855.
- Right: It set investments to null for the group and filled them for the parent (2,467 and 2,446), following what each balance sheet actually shows.
- Right: It completed the task in a single call, with no retries or adjustments needed.
- Mistake: No material mistakes. It filled fields the expected answer leaves out, such as group debtors and creditors after one year, but these did not affect the result.

### tier3-09727592

**Tool calling: passed.** The agent extracted the group and parent company balance sheets for both years in a single accounts call and passed. Every graded field matches the expected answer. ($0.0036, 1 requests, 9 s)
- Right: It separated the group figures from the parent company figures correctly, including the parent's investments (40275) and the different profit and loss reserves (-32613535 for the group, -30571508 for the parent).
- Right: It kept the deficit figures negative (net assets, shareholders' funds, profit and loss reserve) and left creditors and provisions positive.
- Right: It finished in a single tool call with no validation failures.
- Mistake: In the single accounts call, the agent returned null for the parent's prior-year investments. The expected answer has 0, presumably because the accounts show a dash or nil. This field does not seem to be graded strictly, since the run passed, but 0 was the closer match.

### tier4-05840865

**Tool calling: passed.** The agent read the group and parent company staff costs and creditors notes and submitted them in a single accounts call, with no validation failures. The run passed, and every expected figure was matched. ($0.012, 1 requests, 1.6 min)
- Right: Separated group (consolidated) and parent company figures correctly for both staff costs and creditors.
- Right: Recorded nil current-year bank loans for the group (0) and kept the prior-year figure of 10,251.
- Right: Captured the parent's amounts owed to group undertakings (1,538,825 / 1,524,980) and finance leases split into within one year (11,658) and after one year (28,174).
- Right: The creditor totals are consistent with their components: group within one year 4,229,724 and parent within one year 1,808,163.
- Right: Finished efficiently with a single submission and no retries.
- Mistake: The group's amounts_owed_to_group and the parent's bank_loans_and_overdrafts were omitted rather than given explicitly as 0. The expected answer has 0 for these, but the check still passed.
- Mistake: The transcript shows no inspection step before the submission, so it cannot be confirmed that the figures were checked against the notes. It was correct, but this is a single-shot risk.

### tier4-NI626135

**Tool calling: passed.** The agent pulled the group and parent company staff costs and creditors notes for Diamond Trucks Limited in a single accounts call, current and prior year. Every graded field matched the expected answer and the run passed with no validation failures. ($0.0053, 1 requests, 24 s)
- Right: It kept the group (consolidated) figures separate from the parent company's own figures for both staff costs and creditors.
- Right: It entered the after-one-year bank loans as 0 for the current year with 5,836 prior, which matches the note, instead of using null.
- Right: Creditors were split correctly by due date, and the totals (15,752,489 group, 17,897,307 parent within one year) match the expected answer.
- Right: It finished in one tool call with nothing wasted.

### tier5-12026946

**Tool calling: passed.** The agent read the group accounts for The Cambium Group UK Holdings Limited and submitted all group and parent company figures in a single accounts call. Every figure checked matched the expected answer and the run passed. ($0.011, 1 requests, 72 s)
- Right: It got the full group balance sheet, P&L and staff costs right, with correct signs: negative net current assets, operating loss and P&L reserve; tax charge of 72816 positive; prior-year tax credit of -51830.
- Right: It separated group from parent company figures and broke the creditors note down by category, current and prior.
- Right: It listed all four directors, including Mr R Thompson, who resigned during the year.
- Right: It used null for lines the accounts do not show, such as provisions and distribution costs.
- Right: It finished in one submission with no retries.

### tier5-NI037684

**Tool calling: passed.** The agent extracted the group and parent company figures from John Mulholland Motors' 2025 consolidated accounts in a single accounts tool call, and the run passed. ($0.0053, 1 requests, 26 s)
- Right: Kept the group (consolidated) figures separate from the parent company figures for both balance sheets and the creditors notes, e.g. parent trade creditors prior 2,689,140 vs group 2,698,613.
- Right: Got the parent's £300 investment right for the current year and used null for the prior year, where no figure is shown.
- Right: Reported all costs, tax and interest payable as positive amounts and used null for lines not shown (distribution costs, intangibles, share premium).
- Right: Finished in one submission with no failed checks.
