WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Anthropic structured output parsing in the workfkow #1696

@kashperova

Description

@kashperova

Search before asking

  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions