Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plugins must be deactivated and reactivated #972

Open
ninodamico opened this issue Nov 8, 2024 · 5 comments
Open

plugins must be deactivated and reactivated #972

ninodamico opened this issue Nov 8, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@ninodamico
Copy link

Good evening, it happens very frequently that while you are chatting with the cat and you have an active plugin, if the cat, after calling the tool (internal to the plugin) at the first question, is unable to do so at the second question, the plugin must be deactivated and reactivated otherwise it is practically dead for subsequent questions. If you send a chatbot into production it's a problem. How can I solve it?

@pieroit
Copy link
Member

pieroit commented Nov 11, 2024

Moving this issue to core repo as it is not related to local-cat.

Can you track doewn the error in the terminal?
When you report a bug, always tell how to replicate it, otherwise it is impossible to help

@pieroit pieroit transferred this issue from cheshire-cat-ai/local-cat Nov 11, 2024
@pieroit pieroit added the bug Something isn't working label Nov 11, 2024
@valentimarco
Copy link
Collaborator

Moving this issue to core repo as it is not related to local-cat.

Can you track doewn the error in the terminal? When you report a bug, always tell how to replicate it, otherwise it is impossible to help

i don't think is related to local-cat!

Like @pieroit said, we need an dump of the terminal in order to understand the possible bug.

@ninodamico
Copy link
Author

I'll show you in the screenshot, it's the behavior of the AiChatSql plugin, if in one question it stops querying the db, then in the next one it's as if it has been deactivated. So to make it work again it must be deactivated and reactivated manually.

Registrazione.2024-11-12.201519.mp4

@valentimarco
Copy link
Collaborator

I'll show you in the screenshot, it's the behavior of the AiChatSql plugin, if in one question it stops querying the db, then in the next one it's as if it has been deactivated. So to make it work again it must be deactivated and reactivated manually.
Registrazione.2024-11-12.201519.mp4

Seems a broken plugin... Can you try to create a similar plugin or even a different one and try again?

@ninodamico
Copy link
Author

I can intervene on the plugin code, try to modify it, I wanted to intervene with a hook, that if the plugin stops being used, it deactivates and reactivates the plugin, can this be done?! Another problem is when I want to interrupt the flow with a response in case the tool is not invoked, so the LLM does not formulate response taken out of the db, but I can't use a control variable(
is the boolean variable called triggered in the screen). I'll show you in the screen, if you know how I can do it !!! also I was thinking that for both problems using an attribute that contains the name of the tool inside a hook (for example: in agent_fast_replay ) could be a solution. I should locate it in the source code, but where?

Screenshot 2024-11-13 095719

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants