Repository navigation
fix(llm): preserve schema-keyword field names - #5605
Conversation
Agent Task Evaluation Results: 2/2 (100%)View detailed results
Check the evaluate-tasks job for detailed task execution logs. |
|
This is cleaner than what I had in #5604 - dropping One thing worth flagging, because I got two details wrong in #5603 and only caught them re-checking against d2fcda5.
But there are two names I never mentioned that are worse than the one I did. The dropped ones are quieter than the dangling ref: no error anywhere, the model just never sees the field and can't fill it. Your patch fixes both, since the class Details(BaseModel):
summary: str
class M(BaseModel):
headline: str
additionalProperties: Details
# d2fcda5: 'additionalProperties' is absent from the optimized schema entirely |
4a5c0a8 to
c48b1c9
Compare
There was a problem hiding this comment.
All reported issues were addressed across 2 files (changes from recent commits).
Reply with feedback, questions, or to request a fix.
Fix all with cubic | Re-trigger cubic
What
Treat keys inside a schema
propertiesmap as user field names before applying schema-keyword rules. This keeps fields nameddescriptionorpropertiesfrom retaining dangling$refvalues.Fixes #5603
Test
uv run pytest -q tests/ci/models/test_llm_schema_optimizer.pyuv run pre-commit run --files browser_use/llm/schema.py tests/ci/models/test_llm_schema_optimizer.pySummary by cubic
Fixes schema optimization so user fields named
descriptionorpropertiesno longer keep dangling$refvalues.propertiesmap as field names before applying schema-keyword rules.titleskipping, which now only applies outsideproperties.Written for commit b250709. Summary will update on new commits.