fix(ai): document confidence fields in write_cache tool schema (#54)
The system prompt already instructs the agent to set confidence/ confidence_reason on every write_cache call, but the tool's data schema description listed only the legacy fields. Add the confidence fields and a one-line calibration pointer so the model sees them when binding the tool, not just in the system prompt. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
4a847d20aa
commit
c03f4f7c60
1 changed files with 7 additions and 2 deletions
|
|
@ -247,9 +247,14 @@ _DIR_TOOLS = [
|
|||
"type": "object",
|
||||
"description": (
|
||||
"Cache entry. Files: {path, relative_path, size_bytes, "
|
||||
"category, summary, notable, notable_reason, cached_at}. "
|
||||
"category, summary, notable, notable_reason, "
|
||||
"confidence, confidence_reason, cached_at}. "
|
||||
"Dirs: {path, relative_path, child_count, summary, "
|
||||
"dominant_category, notable_files, cached_at}."
|
||||
"dominant_category, notable_files, "
|
||||
"confidence, confidence_reason, cached_at}. "
|
||||
"Always set confidence (0.0–1.0); see system prompt "
|
||||
"for calibration. Set confidence_reason only when "
|
||||
"confidence < 0.7."
|
||||
),
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue