-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
backlogblocked/external-sdkBlocked on external SDK/API changes - periodic review requiredBlocked on external SDK/API changes - periodic review required
Description
Summary
The Claude Agent SDK (@anthropic-ai/claude-agent-sdk) does not currently expose programmatic access to conversation history, unlike OpenAI's OpenAIConversationsSession.getItems(). This blocks implementing a Claude-specific sendChatHistoryAsync method equivalent to PR #157.
Current State (January 2026)
- Workspace SDK version: ^0.1.30
- unstable_v2 APIs added in: v0.1.54
- History retrieval API: Not available
The SDK's experimental unstable_v2_* session APIs provide:
session.send(message)- Send a messagesession.stream()- Stream responsessession.close()- Close session
Missing: session.getHistory() or equivalent to retrieve past messages.
Workaround
Developers can use the generic sendChatHistory from @microsoft/agents-a365-tooling by manually constructing ChatHistoryMessage[].
See: packages/agents-a365-tooling-extensions-claude/docs/design.md
Revisit Criteria
Re-evaluate when:
- Claude SDK adds
session.getHistory()orsession.getMessages() - unstable_v2 APIs stabilize (lose unstable_ prefix)
- SDK version is upgraded in this workspace
- Anthropic documentation shows new history capabilities
References
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
backlogblocked/external-sdkBlocked on external SDK/API changes - periodic review requiredBlocked on external SDK/API changes - periodic review required