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:
committed by
GitHub
Unverified
parent
5f06b68535
commit
3446eb8d5d
@@ -256,7 +256,7 @@ async def main() -> None:
|
||||
"""Result hook that wraps the response text in quotes."""
|
||||
if response.text:
|
||||
return ChatResponse(
|
||||
messages=[Message(text=f'"{response.text}"', role="assistant")],
|
||||
messages=[Message(contents=[f'"{response.text}"'], role="assistant")],
|
||||
additional_properties=response.additional_properties,
|
||||
)
|
||||
return response
|
||||
@@ -293,7 +293,7 @@ async def main() -> None:
|
||||
# In real code, this would create an AgentResponse
|
||||
text = "".join(u.text or "" for u in updates)
|
||||
return ChatResponse(
|
||||
messages=[Message(text=f"[AGENT FINAL] {text}", role="assistant")],
|
||||
messages=[Message(contents=[f"[AGENT FINAL] {text}"], role="assistant")],
|
||||
additional_properties={"layer": "agent"},
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user