Skip to content

IONOS fails to parse some of our tool outputs; make sure to only output strings or stringify outputs #133

@marcelklehr

Description

@marcelklehr

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce

  1. Ask context agent in which timezone a non-existent user is

Expected behaviour

Tool call should succeed

Actual behaviour

tool_message: [{"name": "find_person_in_contacts", "content": [], "tool_call_id": "chatcmpl-tool-bd6edf2b08114811afcecfc7fb0e8d98"}]

Which fails to validate on IONOS:

OpenAI/LocalAI request failed: API request error: 1 validation error for ToolMessage
content
  Input should be a valid string [type=string_type, input_value=[], input_type=list]
    For further information visit https://errors.pydantic.dev/2.12/v/string_type 1 validation error for ToolMessage
content
  Input should be a valid string [type=string_type, input_value=[], input_type=list]
    For further information visit https://errors.pydantic.dev/2.12/v/string_type

Server configuration

c.nc.c

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions