Skip to content

feat(ai-sdk): allow createSpawnAgentSession to resume by sessionId#4

Open
giuseppeg wants to merge 1 commit intomillionco:mainfrom
giuseppeg:resume
Open

feat(ai-sdk): allow createSpawnAgentSession to resume by sessionId#4
giuseppeg wants to merge 1 commit intomillionco:mainfrom
giuseppeg:resume

Conversation

@giuseppeg
Copy link
Copy Markdown

Support passing LoadSessionInput to createSpawnAgentSession via options.session.

When session.sessionId is present the helper now calls agent.resumeSession otherwise it calls agent.createSession as before.

Also update README stateful sessions example to show resume-by-id usage with the same helper.

Support passing LoadSessionInput to createSpawnAgentSession via options.session.

When session.sessionId is present the helper now calls agent.resumeSession; otherwise it calls agent.createSession as before.

Also update README stateful sessions example to show resume-by-id usage with the same helper.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant