Drop prescriptive guidance from image-rejection placeholder
The replacement text was telling the model "view_image is unsupported on this scan; do not call it again" — which is wrong when the rejection was format-specific (SVG rejected, JPEG would have worked). Shorten to a neutral description of what happened; let the model decide whether to retry with a different format or skip the asset. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -19,10 +19,7 @@ def open_agent_session(agent_id: str, path: Path) -> SQLiteSession:
|
||||
return SQLiteSession(session_id=agent_id, db_path=path)
|
||||
|
||||
|
||||
_IMAGE_REJECTED_TEXT = (
|
||||
"[image rejected by the model — view_image is unsupported on this scan; "
|
||||
"do not call it again, continue without visual inspection]"
|
||||
)
|
||||
_IMAGE_REJECTED_TEXT = "[image rejected by the model]"
|
||||
|
||||
|
||||
async def strip_latest_image_from_session(session: Session) -> bool:
|
||||
|
||||
Reference in New Issue
Block a user