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

Method poll

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

Source from the content-addressed store, hash-verified

69 self.stop_calls: list[tuple[str, dict[str, Any]]] = []
70
71 def poll(self, environment_id: str, **kwargs: Any) -> Any:
72 self.poll_calls.append({"environment_id": environment_id, **kwargs})
73 return _next_poll_result(self._poll_script)
74
75 def ack(self, work_id: str, **kwargs: Any) -> None:
76 self.ack_calls.append((work_id, kwargs))

Calls 2

_next_poll_resultFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected