---
title: "Claude Fable 5.2 on Pydantic AI - Structured output"
description: "Extracting UK company accounts into a nested Pydantic model, checked against the filer's tags. Tool calling 90%; rank 15 of 44."
canonical: https://pydantic.dev/models/list/claude-fable-5.2/structured_output/
---

# Claude Fable 5.2 on Pydantic AI - Structured output

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

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

Each task was run once per mode.

## Review

Written by an LLM from the runs' transcripts.

#### Overall

Claude Fable 5.2 passed 9 of 10 cases in tool-calling mode. Every case took exactly one request, costing $0.29–$0.46 each (about $3.47 in total). No case asked for a retry or got a check failure. The one failure came down to a single field, share capital, in both periods.

#### Where it does well

- **Scaling and signs:** It handled £000 scaling and bracket signs without error. Four tier-1/2 cases were in £000 and it multiplied correctly every time. It gave deficits as negatives (net liabilities, P&L reserves, operating losses) and tax credits as negatives (-138000, -571000, -51830), while keeping costs and creditors positive.
- **Group against parent:** It kept the two sets of figures apart in all 6 cases that needed both. Some of the differences were tiny: prior intangibles of 14896091 for the parent against 14896135 for the group in tier3-05959188, and prior trade creditors of 2689140 against 2698613 in tier5-NI037684.
- **Note breakdowns (tier 4/5):** It categorised the creditors notes correctly. This included explicit zero lines (bank loans 0 against a prior 10251) and within/after-one-year splits for finance leases.
- **Company details:** It got accounts type ('medium'), consolidation flags and periods right in all 4 cases that asked for them.

#### Mistakes it makes

- **tier1-11022760 (TaskUs):** The balance sheet shows `Called up share capital | 20 | - | -` in £000, but the model returned `called_up_share_capital` = 100 for both years. It took that from note 20, which lists 100 shares at '0.10' £000. That is arguably the true amount, but the expected answer was the figure on the balance sheet (0). The handbook says to take figures from the accounts, and the model preferred an underlying note over a nil on the face of the balance sheet. Every other field in this case matched, including a total assets less current liabilities figure that changes sign between the years.
- **Directors' titles (minor, no penalty):** In tier5-12026946 it returned names with titles ('Mrs P Leary', 'Mr B Ellis'), and the checker accepted them.

There was no code-mode run for this model, so no comparison is possible.

## Runs

### tier1-07054261

**Tool calling: passed.** It extracted Cube Logic's single-entity accounts in £000, multiplied by 1,000, in one request. Every expected field matched, including the negative net assets and reserves and the prior tax credit of -138000. ($0.39, 1 requests, 14 s)
- Right: Scaled £000 figures correctly (e.g. `creditors_within_one_year` 20446000)
- Right: Gave signs correctly for deficits: `net_current_assets` -8967000, `profit_and_loss_reserve` -8457000
- Right: Recorded the prior-year tax credit as -138000

### tier1-11022760

**Tool calling: failed.** It returned every TaskUs balance sheet and P&L figure correctly except `called_up_share_capital`. It gave 100 for both years, but 0 was expected: the balance sheet shows `Called up share capital | 20 | - | -` in £000. The 100 comes from the share capital note (100 shares, '0.10' £000). ($0.29, 1 requests, 14 s)
- Right: Scaled all £000 figures correctly, including `total_assets_less_current_liabilities` -19925000 against a prior figure of +26107000
- Right: Took P&L figures straight from the statement (`other_operating_income` 7592000, `tax` 312000)
- Right: Left the unlisted 'Equity reserve' (167) out of any requested field
- Mistake: In its final answer it set `balance_sheet.called_up_share_capital` and `prior_balance_sheet.called_up_share_capital` to 100, taken from note 20 ('100 Ordinary shares ... 0.10' in £'000). The balance sheet shows '-', so the face figure (0) should have been used. The £100 is arguably the true value, but it is not the figure presented on the balance sheet.

### tier2-11600506

**Tool calling: passed.** It extracted the group's consolidated balance sheet and P&L in whole pounds in one request. All expected fields matched. ($0.32, 1 requests, 11 s)
- Right: Picked the consolidated figures rather than the parent's
- Right: Gave negative signs for net liabilities and the reserve (-2896388, -2896788)
- Right: Recorded small items exactly (`interest_receivable` 91)

### tier2-SC121467

**Tool calling: passed.** It extracted the group's figures in £000 for both years in one request. All expected fields matched, including the prior tax credit of -571000 and the prior loss. ($0.33, 1 requests, 13 s)
- Right: Recorded the prior tax credit as negative and the loss before tax as -1678000
- Right: Separated distribution costs from administrative expenses

### tier3-05959188

**Tool calling: passed.** It returned separate group and parent-company balance sheets for both years in one request. All expected fields matched, including parent-only figures such as `investments` 2467 and the different prior intangibles (14896091 against 14896135 for the group). ($0.37, 1 requests, 8 s)
- Right: Kept group and parent columns apart even where they nearly coincide
- Right: Gave `creditors_after_one_year` separately for each entity

### tier3-09727592

**Tool calling: passed.** It returned group and parent balance sheets for both years in one request. All expected fields matched, including the parent's prior positive net assets of 783514 against the group's prior -1437569. ($0.31, 1 requests, 13 s)
- Right: Recorded the parent's prior `investments` as 0
- Right: Took share capital changes (250 to 252) and share premium from the face of each balance sheet

### tier4-05840865

**Tool calling: passed.** It extracted staff costs and the creditors note breakdowns for group and parent, current and prior, in one request. All expected fields matched. ($0.33, 1 requests, 15 s)
- Right: Recorded zero lines explicitly (`bank_loans_and_overdrafts` 0, prior 10251)
- Right: Split parent finance leases correctly into within (11658) and after one year (28174)

### tier4-NI626135

**Tool calling: passed.** It extracted the group and parent creditors notes and staff costs in one request. All expected fields matched, including the after-one-year bank loan of 0 (prior 5836). ($0.34, 1 requests, 16 s)
- Right: Categorised amounts owed to group undertakings separately for group and parent
- Right: Gave the after-one-year finance leases and bank loans for both entities

### tier5-12026946

**Tool calling: passed.** It returned the full extraction in one request: company details, directors, group and parent balance sheets, group P&L, staff costs and creditors. All expected fields matched. This was the most expensive case ($0.46). ($0.46, 1 requests, 31 s)
- Right: Signs correct throughout the group P&L (operating loss -4462968, prior tax credit -51830)
- Right: Parent figures kept separate (net assets 39954968 against the group's 1427969)
- Right: Listed all four directors
- Mistake: Returned directors with honorifics ('Mrs P Leary', 'Mr B Ellis'), which the checker accepted

### tier5-NI037684

**Tool calling: passed.** It returned the full extraction for a medium-sized group in one request, correctly identifying `accounts_type` 'medium' and consolidated. All expected fields matched, including the parent creditors that differ slightly from the group's (prior trade creditors 2689140 against 2698613). ($0.34, 1 requests, 28 s)
- Right: Classified the accounts type correctly as 'medium'
- Right: Kept small differences between group and parent apart in the creditors notes
- Right: Included `amounts_owed_to_directors` as its own category
