这是indexloc提供的服务,不要输入任何密码
Skip to content

[Feat]: Allow DataPart.data to be a valid JSON data type (not just object) #1088

@jamesarmenta

Description

@jamesarmenta

A2A/types/src/types.ts

Lines 828 to 835 in 472c736

export interface DataPart extends PartBase {
/** The type of this part, used as a discriminator. Always 'data'. */
readonly kind: "data";
/** The structured data content. */
data: {
[key: string]: any;
};
}

Why must DataPart.data be an object? It would be particularly beneficial to accept data in list format like:

{
  "kind": "data"
  "data": ["Apple", "Orange", "Banana"]
}

Thoughts?

Let me know if this should be opened as a PR or discussion instead. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    TSC ReviewTo be reviewed by the Technical Steering Committee

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions