Skip to content

HuggingFaceAPIChatGenerator incorrectly assumes that arguments in a prepared Tool Call is always a dict #9298

Closed
@anakin87

Description

@anakin87

Investigating on test_live_run_with_tools, I found out that now arguments in a Tool Call prepared via the Hugging Face APIs can be a string instead of a dict.

While this is inconsistent with their docs, my impression is that in future they will enforce this behavior (code in main).

For this reason, I propose handling the conversion to dict on our side if arguments is a string.

Metadata

Metadata

Assignees

Labels

P1High priority, add to the next sprinttype:bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions