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 message
session.stream() - Stream responses
session.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() or session.getMessages()
- unstable_v2 APIs stabilize (lose unstable_ prefix)
- SDK version is upgraded in this workspace
- Anthropic documentation shows new history capabilities
References
Summary
The Claude Agent SDK (
@anthropic-ai/claude-agent-sdk) does not currently expose programmatic access to conversation history, unlike OpenAI'sOpenAIConversationsSession.getItems(). This blocks implementing a Claude-specificsendChatHistoryAsyncmethod equivalent to PR #157.Current State (January 2026)
The SDK's experimental unstable_v2_* session APIs provide:
session.send(message)- Send a messagesession.stream()- Stream responsessession.close()- Close sessionMissing:
session.getHistory()or equivalent to retrieve past messages.Workaround
Developers can use the generic
sendChatHistoryfrom@microsoft/agents-a365-toolingby manually constructingChatHistoryMessage[].See: packages/agents-a365-tooling-extensions-claude/docs/design.md
Revisit Criteria
Re-evaluate when:
session.getHistory()orsession.getMessages()References