Merge branch 'main' into crickman/dotnet-sample-improvements

This commit is contained in:
Chris
2026-02-19 16:26:49 -08:00
committed by GitHub
Unverified
2 changed files with 147 additions and 46 deletions
@@ -1,15 +1,15 @@
# Copyright (c) Microsoft. All rights reserved.
from collections.abc import Sequence
from .._types import Message
"""Helpers for managing chat conversation history.
These utilities operate on standard `list[Message]` collections and simple
dictionary snapshots so orchestrators can share logic without new mixins.
"""
from collections.abc import Sequence
from .._types import Message
def latest_user_message(conversation: Sequence[Message]) -> Message:
"""Return the most recent user-authored message from `conversation`."""