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
deltafield in theTextMessageContentevent 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
deltafield can be JSON fragments, the challenge is that the frontend cannot easily distinguish whetherTextMessageContentcontains plain text or JSON data. In contrast,ToolCallArgsallows differentiation based on thetoolCallNamefield inToolCallStart.Beta Was this translation helpful? Give feedback.
All reactions