We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb5f1a6 commit 62b817cCopy full SHA for 62b817c
1 file changed
src/askui/models/anthropic/messages_api.py
@@ -56,6 +56,9 @@ def from_content_block(block: ContentBlockParam) -> BetaContentBlockParam:
56
as it is not accepted by the API.
57
"""
58
if isinstance(block, ToolUseBlockParam):
59
+ # visual_representation is an internal field (perceptual hash for cache
60
+ # validation) that does not exist in the Anthropic API schema. Sending
61
+ # it would cause the API to reject the request with an unknown-field error.
62
return cast(
63
"BetaContentBlockParam",
64
block.model_dump(exclude={"visual_representation"}),
0 commit comments