Skip to content

Allow functions to return fully formed Parts that can be added directly to the content of the response #2577

Description

@slilichenko

Currently, a function can only return a dictionary (or an object which gets converted to the dictionary). It prevents functions from returning more complex Parts, like images references or binary file contents and forces complex orchestration or adding these parts via callbacks.

Metadata

Metadata

Labels

core[Component] This issue is related to the core interface and implementationneeds review[Status] The PR/issue is awaiting review from the maintainer

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions