Open shhlife opened 9 months ago
Jason was able to reproduce:
I got a different error but I think it's related.. I made an agent run a tool with an intentional mistake in their command so they would get errors. I asked them to do it 20 times and to force themselves to get it wrong, because I think that's what caused the context length issue. After 18 times, I got this message:
[2024-03-18 23:10:14,849: ERROR/ForkPoolWorker-1] Error handling event: The request to the Slack API failed. (url: https://www.slack.com/api/chat.update)
worker-1 | The server responded with: {'ok': False, 'error': 'no_text'}
worker-1 | [2024-03-18 23:10:14,853: ERROR/ForkPoolWorker-1] Traceback (most recent call last):
worker-1 | File "/app/griptape_slackbot/handlers/base_handler.py", line 66, in handle
worker-1 | self.try_handle(args)
worker-1 | File "/app/griptape_slackbot/handlers/events/message_event_handler.py", line 21, in try_handle
worker-1 | self._process_event(args)
worker-1 | File "/app/griptape_slackbot/handlers/events/base_event_handler.py", line 80, in _process_event
worker-1 | self._run_agent(
worker-1 | File "/app/griptape_slackbot/handlers/base_handler.py", line 443, in _run_agent
worker-1 | post_update(final_blocks)
worker-1 | File "/app/griptape_slackbot/handlers/base_handler.py", line 223, in post_update
worker-1 | slack_client.chat_update(
worker-1 | File "/app/.venv/lib/python3.11/site-packages/slack_sdk/web/client.py", line 2686, in chat_update
worker-1 | return self.api_call("chat.update", json=kwargs)
worker-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
worker-1 | File "/app/.venv/lib/python3.11/site-packages/slack_sdk/web/base_client.py", line 155, in api_call
worker-1 | return self._sync_send(api_url=api_url, req_args=req_args)
worker-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
worker-1 | File "/app/.venv/lib/python3.11/site-packages/slack_sdk/web/base_client.py", line 186, in _sync_send
worker-1 | return self._urllib_api_call(
worker-1 | ^^^^^^^^^^^^^^^^^^^^^^
worker-1 | File "/app/.venv/lib/python3.11/site-packages/slack_sdk/web/base_client.py", line 317, in _urllib_api_call
worker-1 | ).validate()
worker-1 | ^^^^^^^^^^
worker-1 | File "/app/.venv/lib/python3.11/site-packages/slack_sdk/web/slack_response.py", line 199, in validate
worker-1 | raise e.SlackApiError(message=msg, response=self)
worker-1 | slack_sdk.errors.SlackApiError: The request to the Slack API failed. (url: https://www.slack.com/api/chat.update)
worker-1 | The server responded with: {'ok': False, 'error': 'no_text'}
worker-1 |
Describe the bug I have a custom tool that interacts with ShotGrid. It's given to an Agent. The agent was performing an action that requires a certain format, and it kept getting an error from the ShotGrid api. The agent was using COT to try and fix the prompt, but eventually got an error that it exceeded the model's maximum context length.
Additional context Here's the output: