Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java: When calling getContent or getItems, get null if the other property was set. #6228

Open
matthewbolanos opened this issue May 13, 2024 · 0 comments
Labels
java Issue or PR regarding Java code triage

Comments

@matthewbolanos
Copy link
Member

matthewbolanos commented May 13, 2024

In Java, when creating a ChatMessageContent, you can either set the content or items of the object. If you then retrieve either, the system isn't able to smartly pull from the right source.

For example, if I set content to "hello world" and I call getItems(), I should receive an array of KernelContent with a single TextContent inside of it. The reverse should also be true.

@markwallace-microsoft markwallace-microsoft added java Issue or PR regarding Java code triage labels May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
java Issue or PR regarding Java code triage
Projects
None yet
Development

No branches or pull requests

2 participants