Replies: 1 comment
-
@SInXW It could also contain JSON data if it makes sense for your app |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Does the
delta
field in theTextMessageContent
event always contain plain text, or can it include JSON data, as inToolCallArgs
? In my scenario, the content includes metadata, so the delta would be JSON-formatted data.For example, I expect the frontend to perform simple text processing, such as controlling font size and color. The complete data would be:
and the data stream would be:
If the
delta
field can be JSON fragments, the challenge is that the frontend cannot easily distinguish whetherTextMessageContent
contains plain text or JSON data. In contrast,ToolCallArgs
allows differentiation based on thetoolCallName
field inToolCallStart
.Beta Was this translation helpful? Give feedback.
All reactions