Skip to content

[Bug]: RestHandler#sendMessage returns part with both "text" and "filename" fields #689

@yuyu123-yuyu

Description

@yuyu123-yuyu

What happened?

Hello!
I am currently using Alpha3 and ran into this problem:

I called RestHandler#sendMessage and expected to create a task with one TextPart.
But we get a part object like this:

{
  "tasks": [
  {
    "xxx": "xxx",
    "parts": [
      {
        "text": "abc",
        "metadata": {},
        "filename": "",
        "mediaType": ""
      }
    ]
  }
]
}

I believe the filename field is not supposed to be there.

I also found RestHandler use grpc models/functions internally, which might be the problem: when it performs proto deserialization, it added the filename to the part model.

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions