Repository: home-assistant/core
File: tests/components/anthropic/test_conversation.py (Python)

Code before:
                        ),
                        CitationDetails(
                            index=84,
                            length=29,
                            citations=[
                                CitationWebSearchResultLocationParam(
                                    type="web_search_result_location",
                                    cited_text="Breaking news from around the world today includes major events in technology, politics, and culture...",
                                    encrypted_index="AQE=",
                                    title="Breaking News",
                                    url="https://www.newssite.com/breaking-news",
                                ),
                                CitationWebSearchResultLocationParam(
                                    type="web_search_result_location",
                                    cited_text="Well, this happened...",
                                    encrypted_index="AgI=",
                                    title="Breaking News",
                                    url="https://www.newssite.com/breaking-news",
                                ),
                            ],
                        ),
                    ],
                ),
            ),
        ],
        # Regression test for #160078 - datetime serialization in tool results
        [
            conversation.chat_log.SystemContent("You are a helpful assistant."),
            conversation.chat_log.UserContent("What time is it?"),
            conversation.chat_log.AssistantContent(
                agent_id="conversation.claude_conversation",
                content="Let me check the time for you.",
                tool_calls=[
                    llm.ToolInput(
                        id="mock-tool-call-id",
                        tool_name="GetCurrentTime",
                        tool_args={},
                    ),
                ],
            ),
            conversation.chat_log.ToolResultContent(
                agent_id="conversation.claude_conversation",
                tool_call_id="mock-tool-call-id",
                tool_name="GetCurrentTime",
                tool_result={
                    "speech_slots": {"time": datetime.time(14, 30, 0)},
                    "message": "Current time retrieved",
                },
            ),
            conversation.chat_log.AssistantContent(
                agent_id="conversation.claude_conversation",

Review comment (suggestion):
```suggestion
```
This comment isn't really needed.

Code after:
                        ),
                        CitationDetails(
                            index=84,
                            length=29,
                            citations=[
                                CitationWebSearchResultLocationParam(
                                    type="web_search_result_location",
                                    cited_text="Breaking news from around the world today includes major events in technology, politics, and culture...",
                                    encrypted_index="AQE=",
                                    title="Breaking News",
                                    url="https://www.newssite.com/breaking-news",
                                ),
                                CitationWebSearchResultLocationParam(
                                    type="web_search_result_location",
                                    cited_text="Well, this happened...",
                                    encrypted_index="AgI=",
                                    title="Breaking News",
                                    url="https://www.newssite.com/breaking-news",
                                ),
                            ],
                        ),
                    ],
                ),
            ),
        ],
        [
            conversation.chat_log.SystemContent("You are a helpful assistant."),
            conversation.chat_log.UserContent("What time is it?"),
            conversation.chat_log.AssistantContent(
                agent_id="conversation.claude_conversation",
                content="Let me check the time for you.",
                tool_calls=[
                    llm.ToolInput(
                        id="mock-tool-call-id",
                        tool_name="GetCurrentTime",
                        tool_args={},
                    ),
                ],
            ),
            conversation.chat_log.ToolResultContent(
                agent_id="conversation.claude_conversation",
                tool_call_id="mock-tool-call-id",
                tool_name="GetCurrentTime",
                tool_result={
                    "speech_slots": {"time": datetime.time(14, 30, 0)},
                    "message": "Current time retrieved",
                },
            ),
            conversation.chat_log.AssistantContent(
                agent_id="conversation.claude_conversation",
                content="It is currently 2:30 PM.",