Closed vnoelifant closed 11 months ago
Dear Marvin people,
I am new to the Discord Server and love MarvinAI.
I have a question regarding marvin-tool.
Not to spam this channel I put details in the thread.
I created this function and added the tool decorator because I want to use it as a tool as follows:
function with tool decorator:
def function():
pass
tool usage:
However, I get the following error:
SomePythonError
Here is the full error message:
SomePythonError
Here is what I already tried:
Here is some information about my system:
I hope asking this here is appropriate.
Please let me know if another channel is more appropriate or if I should create an issue on GitHub.
Implementation for #25.
Video: https://www.youtube.com/watch?v=KcylvOvTT5Q
It works a lot better, but noted that there are times when the bot will repeat the feedback inquiry (i.e. saying "Did the response help"). I am suspecting this might have to do with the model's Pre-Trained Behavior: If the chatbot is using a pre-trained model, it might have been trained on data where user feedback was often sought after certain types of responses, like jokes. As a result, when the model generates a joke or a motivational message, it might also generate a feedback inquiry as part of its response. One thing that GPT suggested to help fix this is with the following logic, but I haven't yet tested it:
There is a bug with Marvin's tool decorator in assistant.py, as per error message below. When implementing this as a Marvin tool, the following error is received. When commenting out the tool decorator, the function runs just fine. In addition, I tried modifying/removing the type hints and ensuring the Marvin library is up to date, and looking at Marvin tool examples, but the issue persists. The error message suggests a configuration setting arbitrary_types_allowed. While this is a Pydantic setting, it's possible Marvin has a way to set or influenc this. I plan to consult Marvin's community to further investigate.
Traceback: