Replies: 2 comments 1 reply
-
It doesn't have to be. As all events that you get back in one response will belong to the same run for which the client has generated the run ID. As the events are just temporary, it would be a waste of bandwidth to transmit the run ID, thread ID, and parent run ID over and over again.
The run ID is present on the run itself rather than on the messages. Since runs and messages roughly have a 1:n connection that means we only need to store / transmit the run ID once rather than n times. |
Beta Was this translation helpful? Give feedback.
-
|
I think there are two different identities here that are easy to conflate:
That makes So for the current model, I would not treat message objects as having a required foreign key back to a run. I would store the event stream append-only if I need provenance: Where I agree with your concern is concurrent or nested runs. Once multiple runs can interleave in one stream, consumers need a reliable correlation boundary. The newer |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
RunAgentInputallows arunIdto be specified, which is echo'd inRunStartedEventandRunFinishedEvent, but it is not present in any other event or message. What's the purpose/intent of this id? If it were to be generally useful to associate messages/events with a particular run, it would need to be echo'd in all events/messages contained within a run.Beta Was this translation helpful? Give feedback.
All reactions