Skip to content
Discussion options

You must be logged in to vote

Sessions are scoped to the agent today. A session id is not treated as a workflow/global conversation id that can be resolved interchangeably by multiple agents, so passing the same session id from one agent to another and expecting the second agent to load the first agent’s session is not the intended model.

For a multi-agent workflow, the safer pattern is to keep shared workflow state outside the per-agent session boundary and pass the relevant state/context into each agent invocation. Using a “virtual” or coordinator agent as the owner of the persisted session can work as a workaround if you want one SDK-managed session record, but it effectively makes that coordinator the session boun…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by VaclavK
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants