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:
Eduard van Valkenburg
2026-04-02 17:26:30 +02:00
committed by GitHub
Unverified
parent 5f06b68535
commit 3446eb8d5d
171 changed files with 2580 additions and 2392 deletions
+2 -2
View File
@@ -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"},
)