Premium Content
Sign in to see the full question
Get access to the full problem, solutions, follow-up questions, and discussion.
Get access to the full problem, solutions, follow-up questions, and discussion.
You are given an existing API:
def get_chat_messages(message_id: int) -> list[Message]:
...
For a given message_id, it returns the surrounding chat context: