Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
refactor(sdk): drop two unused accessors from the Python client
thinhlpgd4d45cc83bed
diff --git a/sdk/python/jan_agent_sdk/_queue.py b/sdk/python/jan_agent_sdk/_queue.pyindex 9eb6eab7a..8bd4e9f9b 100644--- a/sdk/python/jan_agent_sdk/_queue.py+++ b/sdk/python/jan_agent_sdk/_queue.py@@ -23,10 +23,6 @@ class EventQueue:self._ended = Falseself._failure: Optional[BaseException] = None- def __len__(self) -> int:- with self._condition:- return len(self._items)-def push(self, item: Any) -> bool:"""Append ``item``; ``True`` when it had to be buffered.diff --git a/sdk/python/jan_agent_sdk/session.py b/sdk/python/jan_agent_sdk/session.pyindex ec984ad46..c77e2546d 100644--- a/sdk/python/jan_agent_sdk/session.py+++ b/sdk/python/jan_agent_sdk/session.py@@ -26,10 +26,6 @@ class HostToolCall:aborted: threading.Event"""Set when the runtime withdraws the request; a late answer is refused."""- @property- def cancelled(self) -> bool:- return self.aborted.is_set()-@dataclassclass HostTool: