Skip to content

content_block_delta event not deserialized correctly during streaming #941

@sahibpandori

Description

@sahibpandori

We got an exception that the following event couldn't be deserialized even though it looks correct.

Event -

{
  delta: {
    text: "something something",
    type: "text_delta"
  },
    index: 0,
    type: "content_block_delta"
}

Error

Unexpected event runtime type, after deserialising twice - {'type': 'content_block_delta', 'index': 0, 'delta': {'type': 'text_delta', 'text': 'something something'}} - <class 'dict'>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingsdk

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions