Skip to content

[Feature Request] Unify streaming-response handling across workforce/task flows #3720

@coolbeevip

Description

@coolbeevip

Required prerequisites

Motivation

I found that some workforce .step / .astep paths (e.g. task analysis, assignment, worker creation) assume non-streaming responses and do not check the returned response type.

When the default model is configured to stream, these steps may receive streaming responses (or generators), which leads to parsing errors or dropped content.

Solution

Add a shared streaming-response helper under camel/utils to detect and consume streaming responses (sync & async)

Alternatives

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions