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 15:26:30 +00:00
committed by GitHub
parent 5f06b68535
commit 3446eb8d5d
171 changed files with 2580 additions and 2392 deletions
@@ -57,17 +57,17 @@ class InspectingChatClient(BaseChatClient[Any]):
self.last_messages = list(messages)
async def _get_response() -> ChatResponse:
return ChatResponse(messages=[Message(role="assistant", text="done")])
return ChatResponse(messages=[Message(role="assistant", contents=["done"])])
return _get_response()
def _build_messages() -> list[Message]:
return [
Message(role="user", text="Collect the deployment requirements."),
Message(role="assistant", text="I will gather the constraints first."),
Message(role="user", text="Summarize the rollout risks."),
Message(role="assistant", text="The main risks are drift, downtime, and rollback gaps."),
Message(role="user", contents=["Collect the deployment requirements."]),
Message(role="assistant", contents=["I will gather the constraints first."]),
Message(role="user", contents=["Summarize the rollout risks."]),
Message(role="assistant", contents=["The main risks are drift, downtime, and rollback gaps."]),
]