Skip to content

Add timestamps to parsed message models#898

Open
MukundaKatta wants to merge 1 commit intoanthropics:mainfrom
MukundaKatta:codex/message-timestamps
Open

Add timestamps to parsed message models#898
MukundaKatta wants to merge 1 commit intoanthropics:mainfrom
MukundaKatta:codex/message-timestamps

Conversation

@MukundaKatta
Copy link
Copy Markdown

Summary

  • add optional timestamp fields to user, assistant, system, and result message dataclasses
  • preserve transcript JSONL timestamps when parsing messages
  • add parser and type tests covering timestamp propagation

Fixes #258

Testing

  • /Users/ubl/.cache/codex-runtimes/codex-primary-runtime/dependencies/python/bin/python3 -m pytest tests/test_types.py tests/test_message_parser.py
  • /Users/ubl/.cache/codex-runtimes/codex-primary-runtime/dependencies/python/bin/python3 -m ruff check src/claude_agent_sdk/types.py src/claude_agent_sdk/_internal/message_parser.py tests/test_types.py tests/test_message_parser.py

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.

Message models are missing 'timestamp' field

1 participant