core icon indicating copy to clipboard operation
core copied to clipboard

Custom and pluggable Agent

Open pieroit opened this issue 2 years ago • 4 comments
trafficstars

The Cat features a langchain ConversationalAgent which covers most easy use cases:

  • chat with a memory context
  • chat with tools use

At the moment this solution presents several limits:

  • confusion between memory context and tools
  • difficulty executing tools in sequence
  • prompt is too long (small models have no chance)

Here is a roadmap to improve the Agent: 1 - have a more agile and resilient default agent (choosing among [these])(https://python.langchain.com/docs/modules/agents.html) 2 - have a pluggable agent - inserting a few hooks into CustomAgent, making it multiprompt and working on dictionaries 3 - having a hook to totally override the cat Agent in case a dev is brave enough (same as we do with LLM and embedders)

@nicola-corbellini @sirius-0 let's tackle this

pieroit avatar Apr 06 '23 07:04 pieroit

@sirius-0 please comment so I can assign the issue

pieroit avatar Jun 20 '23 14:06 pieroit

@sirius-0 please comment so I can assign the issue

Here

Pingdred avatar Jun 20 '23 15:06 Pingdred

@pieroit With the new agent structure, should we discuss a solution?

valentimarco avatar Jul 08 '24 21:07 valentimarco

@pieroit With the new agent structure, should we discuss a solution?

Agree, time to brainstorm this

pieroit avatar Jul 10 '24 09:07 pieroit