Skip to content

OpenAPIServiceConnector does not support the v2.9.x ChatMessage structure #8774

@richardpaulhudson

Description

@richardpaulhudson

Describe the bug
From v2.9.0 tool calls and message texts are separated in the ChatMessage structure. However, OpenAPIServiceConnector has not been updated to support the new structure.

Error message
ValueError: The provided ChatMessage has no text

Expected behavior
OpenAPIServiceConnector should retrieve the tool call information from the tool_calls attribute rather than from the text attribute.

To Reproduce
Try and use OpenAPIServiceConnector in conjunction with the v2.9.0 ChatMessage structure.

FAQ Check

System:

  • OS: MacOS
  • GPU/CPU: CPU
  • Haystack version (commit or version number): 2.9.0
  • DocumentStore: N/A
  • Reader: N/A
  • Retriever: N/A

Metadata

Metadata

Assignees

Labels

P2Medium priority, add to the next sprint if no P1 availabletype:bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions