Skip to content

Codex-generated pull request#889

Merged
willccbb merged 2 commits intoeli/anthropic-clientfrom
codex/prepare-branch-for-merge-to-main
Feb 11, 2026
Merged

Codex-generated pull request#889
willccbb merged 2 commits intoeli/anthropic-clientfrom
codex/prepare-branch-for-merge-to-main

Conversation

@willccbb
Copy link
Copy Markdown
Member

@willccbb willccbb commented Feb 10, 2026

Codex generated this pull request, but encountered an unexpected error after generation. This is a placeholder PR message.


Codex Task


Note

Medium Risk
Behavioral changes to saved results format (completion now always serialized as message lists and oai_tools removed) may break downstream consumers expecting flattened strings or legacy fields.

Overview
Standardizes endpoint configuration by replacing client_type with api_client_type (and type as a shorthand in registries), renaming the CLI flag to --api-client-type, and updating endpoint registry parsing to reject the deprecated client_type field and catch conflicting type declarations.

Changes rollout/output serialization to keep prompt/completion as Messages consistently (including message_type="completion"), updating TrajectoryStep/RolloutOutput/State typing and tests accordingly; this also removes the backward-compat oai_tools alias and stops flattening completion text into strings.

Written by Cursor Bugbot for commit 34f4c38. This will update automatically on new commits. Configure here.

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

Comment thread verifiers/utils/save_utils.py
The function had no remaining callers after its call sites in
state_to_output were removed. Delete the unused definition.

Co-authored-by: will brown <willccbb@users.noreply.github.com>
@willccbb willccbb merged commit c452450 into eli/anthropic-client Feb 11, 2026
3 checks passed
@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ willccbb
❌ cursoragent
You have signed the CLA already but the status is still pending? Let us recheck it.

@willccbb willccbb deleted the codex/prepare-branch-for-merge-to-main branch February 11, 2026 00:32
mikasenghaas added a commit that referenced this pull request Feb 14, 2026
* feat(clients): introduce unified client interface and provider adapters

* refactor(environment): migrate rollout core to Response + tool_defs

* refactor(envs): align tool/multiturn/integrations with new message and tool flow

* refactor(eval): unify eval outputs/serialization and improve display plumbing

* test(migration): update env/tool trajectory tests for unified client/types

* test(envs): harden env smoke tests and fixture setup for clean installs

* chore(endpoints): annotate endpoint registry with explicit client types

* dont strip client types

* small reversions

* format checks

* cleaner handling of pure completions with custom types

* formatting

* patch single turn to convert message list back to raw string

* safe serialization, output has both oai_tools and tool_defs

* test needs to accept kwargs

* update tests with tool_defs

* rename convert_func_to_tool_def

* formatting

* fix lines in types

* harden tool_defs/oai_tools to error when oai tools are passed in

* harden downstream reading of tool_defs

* use vf.client

* much tighter use of custom types

* get rid of legacy response.choices

* patch test

* clean up into unified normalized_messages util function

* bugbot fixes

* cli tool normalization

* more cli stuff

* add text message to client message types

* bugbot, normalize no tool calls across clients

* reasoning first

* ty check

* fix anthropic tool call blocks

* cli agent intercept back to openai types

* usage in anthropic types

* normalize raw tool calls oai tools

* cleaner errors

* revert to error string matches and pass through interleaved thinking to anthropic client

* small prepend system prompt edit

* small formatting

* max completion tokens rename

* anthropic overlong error

* bugbot shallow copy

* Codex-generated pull request (#889)

Co-authored-by: will brown <willccbb@users.noreply.github.com>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>

* flatten back into a string at the end for completions

* preserve thinking block anthropic content:

* remove interleaved from eval config

* minor

* each client in its own file

* move some stuff around

* rename to content_to_text

* do not warn on pydantic serialization on env worker

* client everywhere

* fix ty

* fix endpoints

* pop unrecognized stop arg

* add deepseek reasoner

* remove interleaved thinking from env

* fix tests with claude

* rename to mock_client

* update docs

* updated more reasoning content fields

* do not make interleaved settable on client

* simplify

* make thinking block part of our ass msg type

* fix endpoints

* rename to oai_tools

* allow closing clients

* removed unused native client

* add docs

* conditional warn

* only add reasoning content if its a string

---------

Co-authored-by: eligotts <78387377+eligotts@users.noreply.github.com>
Co-authored-by: will brown <williambrown97@gmail.com>
Co-authored-by: will brown <willccbb@users.noreply.github.com>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants