still seeing this in latest SDK. Expected?
# proj-sdk
w
still seeing this in latest SDK. Expected?
c
which model are you using?
if it is sonnet, then no
w
it might have been haiku, I thought I switched
will let you know if I see it again
also Tim FYI on the event loop
Copy code
/workspace/project/agent-sdk/.venv/lib/python3.12/site-packages/litellm/llms/custom_httpx/async_client_cleanup.py:66: DeprecationWarning: There is no current event loop
  loop = asyncio.get_event_loop()
also got this on CTRL+C
Copy code
^CTraceback (most recent call last):
  File "/workspace/project/rbren-sdk-experiments/inter_agent_communication_demo_v2.py", line 319, in <module>
    main()
  File "/workspace/project/rbren-sdk-experiments/inter_agent_communication_demo_v2.py", line 296, in main
    alice_thread.join()
  File "/openhands/micromamba/envs/openhands/lib/python3.12/threading.py", line 1149, in join
    self._wait_for_tstate_lock()
  File "/openhands/micromamba/envs/openhands/lib/python3.12/threading.py", line 1169, in _wait_for_tstate_lock
    if lock.acquire(block, timeout):
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyboardInterrupt

Demo interrupted by user.
(openhands) root@runtime-nlfuowercawguzcr-55bd5bb789-khzcp:/workspace/project/rbren-sdk-experiments# Exception in thread Bob-Thread:
Traceback (most recent call last):
  File "/openhands/micromamba/envs/openhands/lib/python3.12/threading.py", line 1075, in _bootstrap_inner
    self.run()
  File "/openhands/micromamba/envs/openhands/lib/python3.12/threading.py", line 1012, in run
    self._target(*self._args, **self._kwargs)
  File "/workspace/project/rbren-sdk-experiments/inter_agent_communication_demo_v2.py", line 206, in run_agent_conversation
    conversation.run()
  File "/workspace/project/agent-sdk/openhands/sdk/conversation/impl/local_conversation.py", line 236, in run
    self.agent.step(self._state, on_event=self._on_event)
  File "/workspace/project/agent-sdk/openhands/sdk/agent/agent.py", line 206, in step
    raise e
  File "/workspace/project/agent-sdk/openhands/sdk/agent/agent.py", line 180, in step
    response = self.llm.completion(
               ^^^^^^^^^^^^^^^^^^^^
  File "/workspace/project/agent-sdk/openhands/sdk/llm/llm.py", line 440, in completion
    resp = _one_attempt()
           ^^^^^^^^^^^^^^
  File "/workspace/project/agent-sdk/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 338, in wrapped_f
    return copy(f, *args, **kw)
           ^^^^^^^^^^^^^^^^^^^^
  File "/workspace/project/agent-sdk/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 477, in __call__
    do = self.iter(retry_state=retry_state)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/workspace/project/agent-sdk/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 378, in iter
    result = action(retry_state)
             ^^^^^^^^^^^^^^^^^^^
  File "/workspace/project/agent-sdk/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 400, in <lambda>
    self._add_action_func(lambda rs: rs.outcome.result())
                                     ^^^^^^^^^^^^^^^^^^^
  File "/openhands/micromamba/envs/openhands/lib/python3.12/concurrent/futures/_base.py", line 449, in result
    return self.__get_result()
           ^^^^^^^^^^^^^^^^^^^
  File "/openhands/micromamba/envs/openhands/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
    raise self._exception
  File "/workspace/project/agent-sdk/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 480, in __call__
    result = fn(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^
  File "/workspace/project/agent-sdk/openhands/sdk/llm/llm.py", line 421, in _one_attempt
    resp = self._transport_call(messages=formatted_messages, **final_kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/workspace/project/agent-sdk/openhands/sdk/llm/llm.py", line 469, in _transport_call
    ret = litellm_completion(
          ^^^^^^^^^^^^^^^^^^^
  File "/workspace/project/agent-sdk/.venv/lib/python3.12/site-packages/litellm/utils.py", line 1343, in wrapper
    raise e
  File "/workspace/project/agent-sdk/.venv/lib/python3.12/site-packages/litellm/utils.py", line 1274, in wrapper
    executor.submit(
  File "/openhands/micromamba/envs/openhands/lib/python3.12/concurrent/futures/thread.py", line 171, in submit
    raise RuntimeError('cannot schedule new futures after shutdown')
RuntimeError: cannot schedule new futures after shutdown
asking OH to look