inference icon indicating copy to clipboard operation
inference copied to clipboard

Anthropic structured output parsing in the workfkow

Open kashperova opened this issue 1 month ago • 1 comments

Search before asking

  • [x] I have searched the Inference issues and found no similar feature requests.

Question

I’m running a custom Roboflow workflow for bounding-box labeling that integrates Anthropic models for detection and structured output parsing.
However, neither unrecognized object detection nor structured output generation modes pass Pydantic validation during runtime.

When I include either the JSON Parser block or use VLM as Detector, the workflow fails with:

Failed to assemble claude_output.
Could not successfully use any deserializer for declared kinds.
Details:
Kind: string - Error: Detected runtime parameter claude_output declared to hold string value, but invalid type of data found (dict).
Kind: language_model_output - Error: Detected runtime parameter claude_output declared to hold string value, but invalid type of data found (dict).

It looks like the Anthropic block always returning an object.

Could you help me solve this issue? What should I change in my block configurations? Thanks!

Additional

No response

kashperova avatar Nov 10 '25 15:11 kashperova

yeah seems liek a bug on the block maybe mismatch between what i has declared vs actually returns. could you paste an example workflow spec to help reproduce? (be sure to remove any api keys).

hansent avatar Nov 14 '25 21:11 hansent