Skip to content

Crash using streamed API to submit tool outputs #418

Open
@davidgarciaanton

Description

@davidgarciaanton

Description

Calling the method submitStreamingToolOutput crashes with following error at Serialization level:

java.lang.IllegalStateException: Serializing collections of different element types is not yet supported. Selected serializers: [kotlin.collections.ArrayList, kotlin.Boolean]

Steps to Reproduce

Just compute tool outputs locally and submit the streamed result with Runs.submitStreamingToolOutput That makes the kotlinx.serialization library to complain with the IllegalStateException mentioned before

Environment

  • openai-kotlin version: 4.0.1
  • Kotlin version: 2.1.10
  • OS: Mac

Additional Info

There's also an open issue in YouTrack for the root cause

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions