mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
Python: [BREAKING] update to v1.0.0 (#5062)
* updates to final deprecated pieces and versions * fix mypy * fix readme links
This commit is contained in:
@@ -98,7 +98,7 @@ class EchoingChatClient(BaseChatClient[OptionsT]):
|
||||
response_text = f"{response_text} {suffix}"
|
||||
stream_delay_seconds = float(options.get("stream_delay_seconds", 0.05))
|
||||
|
||||
response_message = Message(role="assistant", text=response_text)
|
||||
response_message = Message(role="assistant", contents=[response_text])
|
||||
|
||||
response = ChatResponse(
|
||||
messages=[response_message],
|
||||
@@ -150,7 +150,7 @@ async def main() -> None:
|
||||
# Use the chat client directly
|
||||
print("Using chat client directly:")
|
||||
direct_response = await echo_client.get_response(
|
||||
[Message(role="user", text="Hello, custom chat client!")],
|
||||
[Message(role="user", contents=["Hello, custom chat client!"])],
|
||||
options={
|
||||
"uppercase": True,
|
||||
"suffix": "(CUSTOM OPTIONS)",
|
||||
|
||||
Reference in New Issue
Block a user