• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dcdpr / jp / 27565777572
67%

Build:
DEFAULT BRANCH: main
Ran 15 Jun 2026 06:02PM UTC
Jobs 1
Files 410
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

15 Jun 2026 05:57PM UTC coverage: 66.541% (+0.03%) from 66.512%
27565777572

push

github

web-flow
feat(llm, cli): Surface Anthropic model refusals to the user (#752)

Add a `FinishReason::Refused { category, explanation }` variant to the
`FinishReason` enum in `jp_llm`. This represents a terminal state where
a safety classifier declined the request rather than the model failing.

On the Anthropic provider side, `stop_reason: "refusal"` is now mapped
to this new variant, pulling `category` and `explanation` out of the
`stop_details` field when present. Both fields are `Option<String>` to
handle uncategorized refusals gracefully.

In the CLI coordinator, the `finish_notice` function now handles this
variant, producing a human-readable notice like:

    The model declined this request (cyber): This request was declined.

When neither category nor explanation is present, the notice falls back
to the simpler form:

    The model declined this request.

---------

Signed-off-by: Jean Mertz <git@jeanmertz.com>

46 of 46 new or added lines in 4 files covered. (100.0%)

34650 of 52073 relevant lines covered (66.54%)

208.8 hits per line

Jobs
ID Job ID Ran Files Coverage
1 27565777572.1 15 Jun 2026 06:02PM UTC 410
66.54
GitHub Action Run
Source Files on build 27565777572
  • Tree
  • List 410
  • Changed 5
  • Source Changed 5
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #27565777572
  • baebf8b3 on github
  • Prev Build on main (#27563529395)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc