---
title: "GPT-5.6 Sol on Pydantic AI - Structured output"
description: "Extracting UK company accounts into a nested Pydantic model, checked against the filer's tags. Tool calling 80%; rank 30 of 44."
canonical: https://pydantic.dev/models/list/gpt-5.6-sol/structured_output/
---

# GPT-5.6 Sol on Pydantic AI - Structured output

> Extracting UK company accounts into a nested Pydantic model, checked against the filer's tags. Tool calling 80%; rank 30 of 44.
>
> Markdown copy of https://pydantic.dev/models/list/gpt-5.6-sol/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/gpt-5.6-sol/pydantic_ai.md

| Mode         | Score | Tasks passed | Cost  | Requests | Tool calls | Time |
| ------------ | ----- | ------------ | ----- | -------- | ---------- | ---- |
| Tool calling | 80%   | 8 of 10      | $1.04 | 10       | 10         | 64 s |

Each task was run once per mode.

## Review

Written by an LLM from the runs' transcripts.

#### Overall

gpt-5.6-sol passed 8 of 10 cases, all in tool-calling mode. Every case took exactly 1 request, with one `accounts` call and no retries, at $0.08–$0.13 per case. Both failures came from not taking a figure exactly as the accounts show it.

#### Where it does well

- **Scaling and signs:** all 4 cases in £000 were scaled correctly. Signs on deficits, losses and tax credits were right every time, e.g. `-138000`, `-571000` and `-51830` for prior-year tax credits.
- **Group and parent:** in all 4 tier 3 and tier 5 cases it kept the consolidated and company columns apart and got them right, including parent-only `investments`.
- **Creditors notes:** it mapped creditor categories correctly in tier4-NI626135 and both tier 5 cases, including a zero current-year row with a non-zero prior amount.

#### Mistakes it makes

- **Overriding the face of the balance sheet with a note (1 case):** in tier1-11022760 the balance sheet shows `Called up share capital  -  -`. The model's reasoning saw this, then took £100 from the share capital note and returned `100` instead of `0`.
- **Computing a split the accounts don't show (1 case):** in tier4-05840865 a narrative line said other creditors included director loans of £48,817. The model subtracted them itself (`1278154 − 48817 = 1229337`) instead of returning the line total shown, which breaks the handbook's "do not compute" rule.
- **Leaving out rows shown as `-` (same case):** it also skipped the group `amounts_owed_to_group` row and the parent `bank_loans_and_overdrafts` row, both expected as 0/0.
- **Wasteful but not marked down:** in tier5-NI037684 it returned `0` instead of `null` for lines the accounts don't show and added an unrequested `investment_property` figure. None of these fields was checked.

The two failures pull in opposite directions. In one the model reported a precise underlying figure the face of the accounts doesn't show; in the other it broke a total into more detail than the note presents. Both times it went beyond the figures as printed, and the checker wanted the figures as printed. Because every answer was submitted in a single call, the model never checked its own output.

## Runs

### tier1-07054261

**Tool calling: passed.** Made one `accounts` call for a single company in £000. Every figure was correctly multiplied by 1,000, and the prior-year tax credit came out as `-138000`. Passed. ($0.12, 1 requests, 6 s)
- Right: Read £000 correctly and scaled every figure by 1,000
- Right: Bracketed deficits (`net_current_assets -8967000`, `profit_and_loss_reserve -8457000`) were signed negative and costs were kept positive
- Right: Prior-year tax credit was returned as negative

### tier1-11022760

**Tool calling: failed.** Made one `accounts` call. Every balance sheet and P&L figure matched except `called_up_share_capital`: the balance sheet shows `-` (nil in £000) for both years, but the model returned `100` for each. Failed. ($0.083, 1 requests, 6 s)
- Right: Read all £000 figures and scaled them correctly, e.g. `creditors_within_one_year 50167000` and `total_assets_less_current_liabilities -19925000`
- Right: P&L signs were right, including a tax charge of `312000` against a pre-tax loss in the prior year
- Mistake: In its first and only turn, its reasoning noticed the balance sheet shows share capital as `-`, then took £100 from the share capital note (100 shares of £1). It returned `called_up_share_capital: 100` for both periods when the expected value was `0`. The figure on the face of the balance sheet, `-` meaning 0, is the one to use.

### tier2-11600506

**Tool calling: passed.** Made one `accounts` call to extract the group balance sheet and P&L in whole pounds. Passed. ($0.095, 1 requests, 4 s)
- Right: Negative net assets and reserves were signed correctly
- Right: Filled extra lines such as `provisions` and `creditors_after_one_year` from the accounts

### tier2-SC121467

**Tool calling: passed.** Made one `accounts` call for group figures in £000, including a prior-year loss and a tax credit of `-571000`. Passed. ($0.100, 1 requests, 5 s)
- Right: Signed the prior-year loss and tax credit correctly
- Right: Scaled £000 figures correctly

### tier3-05959188

**Tool calling: passed.** Made one `accounts` call and filled in the group and parent balance sheets for both years. Passed. ($0.12, 1 requests, 5 s)
- Right: Kept the group and parent columns apart, e.g. parent `creditors_within_one_year 3852856` against group `2483825`
- Right: Every negative net assets and reserve figure was signed correctly

### tier3-09727592

**Tool calling: passed.** Made one `accounts` call for the group and parent balance sheets. Passed. ($0.094, 1 requests, 5 s)
- Right: Took the parent's prior-year positive net assets (`783514`) and the group's negative net assets correctly
- Right: Separated the parent's own `investments 40275` from the group figures

### tier4-05840865

**Tool calling: failed.** Made one `accounts` call for staff costs and creditor breakdowns. The model split the group's 'Other creditors' line of `1,278,154` into `amounts_owed_to_directors 48817` and `other 1229337`, a split the note never shows. It also left out zero rows the note shows as `-`. Failed. ($0.100, 1 requests, 8 s)
- Right: Staff costs for group and parent, both years, were correct
- Right: Parent creditor categories matched the note
- Mistake: Note 16 shows 'Other creditors 1,278,154 (2024: 820,961)', and the narrative beneath it says this includes director loans of £48,817. The model subtracted the director loans itself and returned `other 1229337 / 795554`. The handbook says not to compute figures; it should have returned `other 1278154 / 820961` as shown.
- Mistake: Left out the group's `amounts_owed_to_group` row (shown as `-`/`-`, expected 0/0) and the parent's `bank_loans_and_overdrafts` row (shown as `-`, expected 0/0).

### tier4-NI626135

**Tool calling: passed.** Made one `accounts` call. Every group and parent creditor category came out right, including a zero current-year row with a non-zero prior amount (`bank_loans_and_overdrafts` after one year 0/5836). Passed. ($0.10, 1 requests, 5 s)
- Right: Mapped all categories correctly for group and parent
- Right: Listed a zero row where the prior year had a value

### tier5-12026946

**Tool calling: passed.** Made one `accounts` call for the full extraction: company details, directors, group and parent balance sheets, P&L, staff costs and creditors. Passed. ($0.13, 1 requests, 10 s)
- Right: Covered every section in one call
- Right: Group and parent balance sheets were correct, as was the group tax credit `-51830` in the prior year

### tier5-NI037684

**Tool calling: passed.** Made one `accounts` call for the full extraction of a medium-sized group. Passed. ($0.097, 1 requests, 11 s)
- Right: Identified `accounts_type: medium` and consolidated correctly
- Right: Parent and group creditor rows, including `amounts_owed_to_directors`, matched the note
- Mistake: Returned `0` instead of `null` for lines the accounts don't show (`intangible_assets`, `investments`, `creditors_after_one_year`) and added `investment_property 523300`. None of these fields was checked, so it was lucky not to be marked down.
