Closed alexmanner closed 1 month ago
The script reasoning.py
was executed successfully, but it encountered an issue when attempting to chat with "Agent 47". The error indicates that there is an AttributeError
related to the PromptTokensDetails
object, which suggests there may be a bug in the script where it tries to access a non-existent get
attribute. This caused repeated failed retries when communicating.
To resolve this, you may want to review the part of the code that handles interaction with agents, especially where PromptTokensDetails
is used. Ensure the correct methods or attributes are available and used correctly. Debugging this code section or checking the documentation or source for PromptTokensDetails
could also provide insights.
The error is indepent of the prompts I use.
"python reasoning.py Successfully loaded agents configuration from 'agents.json'. Available agents:
Using both agents with a minimal greeting is not reproducing this error.
Please run in a fresh terminal, a prompt of: Hello how are you?
Issue not reproducible when run using current code version. Please update local defined script imports. If error persist, reopen.
Description: When attempting to chat with agents (Agent 47 and Agent 74) in the Multi-Agent Reasoning Chatbot, the following error repeatedly occurs:
AttributeError: 'PromptTokensDetails' object has no attribute 'get'
The issue persists across multiple agents, and the system retries the request several times before eventually reaching the maximum retry limit. The error prevents generating a response from the agents.
Steps to Reproduce:
Expected Behavior: The agents should respond to the message as expected without encountering any errors.
Actual Behavior: The system encounters an AttributeError in the token handling process, and no response is generated from the agents.
Environment: