8.4.0 #591
Replies: 3 comments 4 replies
-
GOOOOD!!!! |
Beta Was this translation helpful? Give feedback.
-
@kayhantolga i really not understand how to retrieve content when stream a run. |
Beta Was this translation helpful? Give feedback.
-
I am trying with "RunCreateAsStream", but I will also try soon the "RunSubmitToolOutputsAsStream" 'cause i need FileRetrive and FunctionCall tools. I did several tests and I understood why I could not get the results. The EndPoint responds with several objects from OpenAi, but this is not what happens with the library. The "RunResponse" object does not cover all the cases. For example: "thread.message.delta" responds, from OpenAi, with the object "Delta", where the partial message of the stream is contained: {
"data":{
"id":"msg_MMMMMMMMMMMMMMM"
"object":"thread.message.delta"
"delta":{
"content":[
0:{
"index":0
"type":"text"
"text":{
"value":" il"
}
}
]
}
}
"event":"thread.message.delta"
} "Thread.run.step" contains its specific detail fields inside "Step details" {
"data":{
"id":"step_SSSSSSSSSSSSSSSSSSSSSS"
"object":"thread.run.step"
"created_at":1718284038
"run_id":"run_XXXXXXXXXXXXXXXXXXXXX"
"assistant_id":"asst_AAAAAAAAAAAAAAAAAAA"
"thread_id":"thread_TTTTTTTTTTTTTTTTTTTTTT"
"type":"message_creation"
"status":"in_progress"
"cancelled_at":NULL
"completed_at":NULL
"expires_at":1718284635
"failed_at":NULL
"last_error":NULL
"step_details":{...}
"usage":NULL
}
"event":"thread.run.step.in_progress"
} each event responds with its own different object type. it is true that there are IDs to call individual objects, but the execution becomes inefficient and terribly slow. An adapter should be created for each event that returns the right object or alternatively updated "RunResponse" with all the possible fields that could come from the stream array (Delta, StepDetails...). |
Beta Was this translation helpful? Give feedback.
-
8.4.0
What's Changed
Full Changelog: v8.3.0...v8.4.0
This discussion was created from the release 8.4.0.
Beta Was this translation helpful? Give feedback.
All reactions