MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / poll

Method poll

tests/lib/environments/test_poller_method.py:57–59  ·  view source on GitHub ↗
(self, environment_id: str, **kwargs: Any)

Source from the content-addressed store, hash-verified

55 self.stop_calls: list[tuple[str, dict[str, Any]]] = []
56
57 def poll(self, environment_id: str, **kwargs: Any) -> Any:
58 self.poll_calls.append({"environment_id": environment_id, **kwargs})
59 return _next_poll_result(self._poll_script)
60
61 def ack(self, work_id: str, **kwargs: Any) -> None:
62 self.ack_calls.append((work_id, kwargs))

Calls 1

_next_poll_resultFunction · 0.85

Tested by

no test coverage detected