---
title: "GPT-5.6 Sol on Pydantic AI - Billing ops"
description: "Questions about and changes to a tutoring agency's books, checked to the penny. Tool calling 70%, code mode 80%; rank 21 of 44."
canonical: https://pydantic.dev/models/list/gpt-5.6-sol/billing_ops/
---

# GPT-5.6 Sol on Pydantic AI - Billing ops

> Questions about and changes to a tutoring agency's books, checked to the penny. Tool calling 70%, code mode 80%; rank 21 of 44.
>
> Markdown copy of https://pydantic.dev/models/list/gpt-5.6-sol/billing_ops/. 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/billing_ops.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 | 70%   | 7 of 10      | $2.82 | 53       | 617        | 4.6 min |
| Code mode    | 80%   | 8 of 10      | $0.80 | 68       | 69         | 3.3 min |

Each task was run once per mode.

## Review

Written by an LLM from the runs' transcripts.

#### Overall

gpt-5.6-sol passed 15 of 20 cases: 7 of 10 in tool calling and 8 of 10 in code mode. All 5 failures come from two task families:

- **Wrong invoices** failed in all 4 runs (both modes, both data sizes).
- **Missed students billed, large data** failed in tool calling.

Every single-figure question and every write task passed in both modes: invoice total, amount owed, tutor margin, recording a payment, and the void-and-reissue correction.

#### Where it does well

- **Write tasks:** both `large-correction-2` runs matched every expected change. That covers the attendance change, the credit note, the released allocation, the new invoice and the credit applied to it, in 5–6 requests for about $0.03.
- **Pricing rules:** where it recomputed lines, the rules were exact. Code-mode `large-wrong_invoices-1` got every rate, tax-on-non-taxable and missed-student overcharge right to the penny.
- **Code mode coverage:** it batches calls well with `asyncio.gather`, splitting calls into batches of 96–100.

#### Mistakes it makes

- **Stopping early in tool calling (3 cases).**
  - `large-missed_billed-1`: it scanned about 3 of ~27 attendance batches. It noted that 26 were left, then answered with one invoice anyway.
  - `large-wrong_invoices-1`: it answered only the 3 tax errors it could see in invoice headers, judging that 'three seems likely'.
  - `small-wrong_invoices-1`: it recomputed only 4 lessons that looked suspicious, and missed `INV-00176`.
- **Missing a rule in code mode (2 cases).** Each line was priced on its own, so duplicate lesson/student lines passed as valid. That cost 3 invoices on large data.
  - On small data, `expected_line` also never checked the line's own student's attendance. It therefore missed `INV-00158`, even though the large-data version of the same code had this check.

#### Tool calling compared with code mode

- **Cost:** code mode was cheaper overall, about $0.80 against about $2.82. `large-duplicate_lines-1` cost $1.32 in tool calling and $0.09 in code mode.
- **Coverage on large data:** code mode handled big jobs where tool calling gave up. It solved `large-missed_billed-1` and found 9 of 12 wrong invoices, against 3 of 12 in tool calling.
- **Small data:** tool calling did slightly better on small wrong-invoices, with 3 of 4 against 2 of 4. Reading the records by eye caught a missed-student charge that the flawed code missed.
- **Common gap:** neither mode thought to check for duplicate lines when asked about wrong amounts.

## Runs

### small-invoice_total-1

**Tool calling: passed.** Answered 89700 in 2 requests, which is correct. ($0.042, 2 requests, 6 s)
- Right: Minimal calls

**Code mode: passed.** Answered 89700, which is correct. ($0.049, 2 requests, 7 s)
- Right: 2 requests

### small-owed_on_invoices-1

**Tool calling: passed.** Summed what was left to pay on unpaid invoices less allocations and got 85204, which is correct. ($0.011, 4 requests, 8 s)
- Right: Cheap: $0.01

**Code mode: passed.** Answered 85204, which is correct. ($0.021, 5 requests, 12 s)
- Right: Cheap and quick

### large-tutor_margin-3

**Tool calling: passed.** Worked out the margin from lesson, attendance and client records and got 120741, which is correct. ($0.13, 5 requests, 27 s)
- Right: Exact figure in 5 requests

**Code mode: passed.** Computed 120741, which is correct. ($0.095, 6 requests, 22 s)
- Right: Correct in 6 requests

### small-tutor_margin-3

**Tool calling: passed.** Computed a margin of 65045, which is correct. ($0.062, 5 requests, 17 s)
- Right: Correct rounding of client charges and tutor pay

**Code mode: passed.** Answered 65045, which is correct. ($0.070, 6 requests, 20 s)
- Right: Correct in 6 requests

### large-duplicate_lines-1

**Tool calling: passed.** Paged through all 394 October invoices, then fetched every non-void one with batches of parallel `get_invoice` calls and read them by eye for repeated lesson/student lines. It found `INV-06060`, `INV-06073` and `INV-06097`, which is correct. ($1.32, 7 requests, 63 s)
- Right: Covered every invoice rather than sampling
- Right: Spotted that the duplicated line is a repeated (`LS-044150`, `ST-0461`) pair on `INV-06060`
- Mistake: Very expensive at $1.32, because about 384 invoice payloads went through the model's context. Code mode did the same check for $0.09

**Code mode: passed.** Fetched the invoices in sandbox batches and found the duplicated lines in code. It answered `INV-06060`, `INV-06073` and `INV-06097`, which is correct. ($0.086, 7 requests, 16 s)
- Right: About 15 times cheaper than tool calling ($0.086 against $1.32)

### large-missed_billed-1

**Tool calling: failed.** Listed the September `complete` and `cancelled_chargeable` lessons, then called `list_attendance` by hand with 100 lesson IDs at a time. After about 3 of the ~27 batches it stopped and answered `["INV-05846"]`, missing `INV-05821` and `INV-06080`. ($0.58, 10 requests, 73 s)
- Right: Chose a sound method: find `missed` attendance rows marked `invoiced: true`, then map them to invoices
- Right: Confirmed that `INV-05846` charges `ST-0127` for `LS-041761`
- Mistake: Its own reasoning said 'We should continue with the remaining 26 pages', but it called `final_result` with the one invoice it had found
- Mistake: It should have finished the remaining `list_attendance` batches (or used every non-void invoice's lines) before answering

**Code mode: passed.** Joined invoice lines to attendance in Python and found all 3 invoices: `INV-05821`, `INV-05846` and `INV-06080`. ($0.14, 11 requests, 28 s)
- Right: Covered everything thanks to batched `asyncio.gather`, where tool calling gave up after 3 batches

### large-wrong_invoices-1

**Tool calling: failed.** Read the 394 invoice headers and noticed 3 invoices with small tax amounts on clients who are not taxable. It checked them with `get_invoice` and `get_client` and answered just those 3. It missed 9 others: wrong rates, missed students who were billed, and duplicate lines. ($0.44, 5 requests, 31 s)
- Right: The 3 tax errors it gave (`INV-05851` 1050, `INV-06016` 1150, `INV-06105` 1875) are correct
- Mistake: Never recomputed the lines from lessons and attendance. It reasoned 'three seems likely' and answered from a header-level pattern
- Mistake: It should have fetched every non-void invoice with its lessons, attendance and clients and recomputed each line

**Code mode: failed.** Fetched all 384 non-void invoices, 2655 lessons, 3148 attendance rows and 384 clients, then recomputed each line with `Decimal` half-up rounding in `calc_line`. It found 9 of the 12 wrong invoices and missed `INV-06060` (3563), `INV-06073` (4500) and `INV-06097` (9900). ($0.18, 15 requests, 45 s)
- Right: The pricing rules were right: it got every rate, tax and missed-student error exactly
- Right: It recovered quickly from a sandbox `next()` TypeError
- Mistake: `calc_line` priced each line on its own, so a repeated lesson/student line looked valid. It needed to check for duplicate (`lesson_id`, `student_id`) pairs and count the extra copy as an overcharge

### small-wrong_invoices-1

**Tool calling: failed.** Fetched all 37 October invoices, then pulled lessons and attendance for only 4 lessons that looked suspicious (`LS-001226`, `LS-001133`, `LS-001295`, `LS-001219`). It answered 3 of the 4 wrong invoices and missed `INV-00176` (6000). ($0.17, 4 requests, 23 s)
- Right: Correct amounts for `INV-00158` (4050), `INV-00162` (863) and `INV-00172` (600)
- Mistake: Checked only lines that looked odd instead of recomputing every line, so it never examined `INV-00176`

**Code mode: failed.** Recomputed every line of the 37 invoices but found only `INV-00162` and `INV-00172`, missing `INV-00158` (4050) and `INV-00176` (6000). ($0.082, 6 requests, 20 s)
- Right: Fetched everything systematically and used exact `Decimal` rounding
- Mistake: `expected_line(lesson, client)` charged a line whenever the lesson was billable and never checked whether that line's own student was `missed`. That hid the missed-but-billed line on `INV-00158`. Its later large-data version did include this check
- Mistake: It did not check for duplicate lines either, which probably explains `INV-00176`

### large-correction-2

**Tool calling: passed.** Marked Yara Baker missed on `LS-045235`, voided `INV-06372` with a 22800 credit note, and reissued an invoice for the 3 remaining October lessons (17100), which credit paid automatically. Every change matched the expected result. ($0.029, 6 requests, 14 s)
- Right: Did the whole void-and-reissue chain (attendance, credit note, released allocation, new invoice, auto-applied credit) in 6 requests for $0.03

**Code mode: passed.** Made the same correct void, credit note and reissue sequence as in tool calling, in 5 requests. ($0.027, 5 requests, 13 s)
- Right: Matched every expected change
- Right: $0.027

### large-record_payment-1

**Tool calling: passed.** Recorded the 50126 payment for CL-0294 and applied it oldest-due first: 37626 to `INV-02840`, making it `paid`, and 12500 to `INV-03247`. This was correct. ($0.033, 5 requests, 15 s)
- Right: Correct allocation order and amounts in 5 requests

**Code mode: passed.** Recorded the 50126 payment and allocated 37626 to `INV-02840` and 12500 to `INV-03247`, which is correct. ($0.043, 5 requests, 14 s)
- Right: Correct oldest-due-first allocation
