mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
Merge branch 'main' into crickman/dotnet-sample-improvements
This commit is contained in:
@@ -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`."""
|
||||
|
||||
Reference in New Issue
Block a user