---
title: "Qwen3.8 27B on Pydantic AI - Research & deck"
description: "Questioning a founder and writing an eight-slide investor deck from a data room. Tool calling 81.5%, code mode 79.3%; rank 19 of 44."
canonical: https://pydantic.dev/models/list/qwen3.8-27b/research_deck/
---

# Qwen3.8 27B on Pydantic AI - Research & deck

> Questioning a founder and writing an eight-slide investor deck from a data room. Tool calling 81.5%, code mode 79.3%; rank 19 of 44.
>
> Markdown copy of https://pydantic.dev/models/list/qwen3.8-27b/research_deck/. 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/research_deck.md. The model on every Pydantic AI benchmark: https://pydantic.dev/models/list/qwen3.8-27b/pydantic_ai.md

| Mode         | Score | Tasks passed | Cost  | Requests | Tool calls | Time     |
| ------------ | ----- | ------------ | ----- | -------- | ---------- | -------- |
| Tool calling | 81.5% | 1 of 1       | $0.63 | 31       | 66         | 14.2 min |
| Code mode    | 79.3% | 1 of 1       | $0.37 | 38       | 54         | 12.4 min |

Each task was run once per mode.

## Review

Written by an LLM from the runs' transcripts.

#### Overall

Both runs of the single case, `kestrel-cargo`, passed: tools in 31 requests at $0.63, code mode in 38 requests at $0.37. Both decks reached `check_deck` = `ok` with figures checked against the data room. The code-mode pass is the weaker one: it never asked the founder about slide structure, so its deck differs from the structure she gave in the tools run.

#### Where it does well

- **Thorough reading before writing.** Both runs read every text file, queried all the finance tables and viewed all the images.
- **Catches traps in the data.** Both used the restated September revenue (£351,442, not £403,642), kept app registrations out, left out the prototype photo and handled the recall and the loss of Parcelo directly.
- **Checks figures to the shown rounding.** Examples: £3,085,543 as "£3.1m" or "£3.09m", +77.1% as "+77%", 39.4% gross margin.
- **Reviews its own copy.** The tools run caught "teleports", "Bristol Drop" and a wrong citation year; code mode caught "out of trial" against "in trial".

#### Mistakes it makes

- **Thin founder interview in code mode.** It asked four confirmation questions and none about slide order. Its reasoning later claims "Maya also confirmed the layout order", which she never did.
- **SVG scaling.** Both runs failed the first `check_deck` because 12px labels shrank to 10.4-11.3px inside a scaled `viewBox`.
- **Gives up on a tool too early.** In code mode it called `pdf_text` as a top-level tool, got "Unknown tool name", and never tried it inside `run_code`. It read the market PDFs as page images, first pages only.
- **Wasteful editing in tools mode.** It made seven full rewrites of about 32,000 characters. One of them accidentally deleted the chart's month labels, and one `read_file` call on the deck failed.
- **Sloppy sandbox code.** Seven `run_code` calls failed (`shutil`, `/tmp`, `/dev/null`, two syntax errors, a `sorted` type error, a helper bug).
- **Typos in the final notes.** "onPurpose" in tools; the traction slide numbered "02" in code mode.

#### Tool calling compared with code mode

Code mode cost 41% less despite seven more requests. It patched the deck with `html.replace` and built charts from query rows, where the tools run re-sent the whole file each time. Tools mode did the task better: it asked one fuller question to the founder, read the PDFs properly with `pdf_text`, and followed her slide order exactly. Code mode had more execution errors and the one invented claim about the founder.

## Runs

### kestrel-cargo

**Tool calling: passed.** Read the whole data room, asked Maya one batch of five questions, then wrote the 8-slide deck in her order and rewrote the full file six more times until `check_deck` returned `ok`. Passed in 31 requests at $0.63. ($0.63, 31 requests, 14.2 min)
- Right: Covered the data room before asking: `list_files`, batched `read_file` calls on the `.md` files and updates, `query` on `monthly_pnl`, `operations`, cash, customers and orders, `pdf_text` on the accounts, certificate and market papers, `view_pdf` on the supply agreement, `view_image` on every image.
- Right: Spotted the September restatement (£403,642 to £351,442, Northline's 12-bike order cancelled) while reading `updates/2026-10.md`, and raised it with Maya, who remembered about £404k; the deck uses the restated figure.
- Right: The single `ask_founder` call proposed a structure and asked (a) to (e). Maya's reply set the order (cover, why now, problem, product, traction, market, business model and unit economics, the ask), dropped the team and competition slides, approved the offsite funnel photo, excluded app registrations and asked for the recall and Parcelo head on. The final note reports all of these as followed.
- Right: Checked figures to the shown rounding before writing: LTM revenue £3,085,543 as "£3.1m", October +77.1% year on year as "+77%", fleet bikes 256 to 688 as "+169%", October gross margin 39.43%, 1,043 bikes delivered, 17 active fleets.
- Right: Re-read its own copy after the first write and caught "Every bike teleports", "Bristol Drop" for GreenDrop, "power-cache connector" and a 13.5px caption. A later pass corrected the citation "Garidis (2022)" to 2023.
- Right: Left out the workshop prototype photo `IMG_1288.jpg` because the board minutes wanted prototype photos out of circulation.
- Mistake: Made seven full `write_file` calls of about 32,000 characters each (messages 37, 39, 43, 47, 49, 53, 57); several changed one or two strings. No patch tool appears in the conversation, so each small fix cost a whole-file rewrite, which is the main reason this run cost more than code mode.
- Mistake: Message 41: called `read_file` on `deck/index.html` and got "is not a file in the data room". The surrounding reasoning loops repeatedly over whether it had typed "17 fle…ered" in a stat card, then rewrote the file to be safe.
- Mistake: Message 46: the first `check_deck` flagged slide 5 axis labels at 11.3px. It had set 12px SVG text in a `viewBox` scaled down to 698px wide and had not allowed for the scaling.
- Mistake: Message 47: the rewrite that fixed the axis labels also deleted the chart's month labels and added a nonsensical caption ("Sep–Nov 2025 in light bars"). It caught this itself and rewrote again at message 49.
- Mistake: Final note contains the typo "onPurpose".

**Code mode: passed.** Explored the data room through `run_code`, read PDFs as page images, asked Maya four confirmation questions, then generated SVG charts in Python and assembled the deck in two parts, patching until `check_deck` returned `ok`. Passed in 38 requests at $0.37, but it never asked Maya about slide structure. ($0.37, 38 requests, 12.4 min)
- Right: One `run_code` call read every `.md` and `.csv` file; later calls ran `query` on all tables and computed the headline figures in code (LTM £3,085,543, cumulative £4,651,766, +77.1% year on year, gross margin 39.4%, average EBITDA of the last three months -£48,651).
- Right: Generated the chart geometry from the database rows in Python instead of hand-placing SVG coordinates.
- Right: Fixed `check_deck` findings with targeted `html.replace(...)` patches followed by `await check_deck()` in the same call, with no full rewrites; `check_deck` returned `ok` five times.
- Right: Ran final greps on the file: 8 sections, 0 tables, 0 scripts, no gradient, no app-registration figures, both palette colours present, key figures counted.
- Right: Caught a wording error against `roadmap.md`: "two national carriers out of trial" was corrected to "in trial". Also changed the cover's "24 months to date" to "since november 2024".
- Right: Followed Maya's answers on palette (#1F6F5C / #F2A541), lowercase "kestrel cargo", no tables, and the Parcelo loss on the recall slide.
- Mistake: Message 29: the only `ask_founder` call asked four yes/no confirmations (audience, app number, recall wording, palette) and nothing about which slides Maya wanted or their order. In the tools run she answered that question with a fixed order including a "Why now" slide and no team or competition slides. This deck has a competition slide and a team-and-ask slide and no "Why now". It should have proposed its outline and asked.
- Mistake: Messages 69 and 71: its reasoning states "Maya also confirmed the layout order". She was never asked and never said so.
- Mistake: Message 15: called `pdf_text` as a top-level tool and got "Unknown tool name". It concluded the function was unavailable without trying `await pdf_text(...)` inside `run_code`, although its own reasoning says the sandbox catalogue lists `pdf_text` beside `query` and `check_deck`. It then read every PDF with `view_pdf`, and only page 1 or pages 1-2 of the market papers.
- Mistake: Guessed page counts: `view_pdf` with `pages:[1,2]` on the one-page spec sheet and `[1,2,3,4]` on the two-page supply agreement both failed and were retried.
- Mistake: Seven failed `run_code` calls: `import shutil` not available; a bug in the bar-chart helper `hb`; `PermissionError` writing to `/tmp`; `open('/dev/null','w')`; a generator-expression syntax error; `sorted()` on `PosixPath`; an unparenthesised generator inside `sorted(..., key=str)`.
- Mistake: Copied images into `/deck/images` by hand, which the handbook does not ask for, and left the unused `IMG_2155.jpg` there.
- Mistake: Message 52: the first `check_deck` flagged slides 4, 6 and 7 (SVG labels rendered at 10.4-11.3px after `viewBox` scaling) and slide 8 (text outside the slide).
- Mistake: The final note labels the traction slide "02" instead of 04 and ends with a question to Maya.
