You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does the delta field in the TextMessageContent event always contain plain text, or can it include JSON data, as in ToolCallArgs? 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:
If the delta field can be JSON fragments, the challenge is that the frontend cannot easily distinguish whether TextMessageContent contains plain text or JSON data. In contrast, ToolCallArgs allows differentiation based on the toolCallName field in ToolCallStart.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
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