camel icon indicating copy to clipboard operation
camel copied to clipboard

[Feature Request] Add AgentConfig class

Open dandansamax opened this issue 1 year ago • 0 comments

Required prerequisites

  • [X] I have searched the Issue Tracker and Discussions that this hasn't already been reported. (+1 or comment there if it has.)
  • [ ] Consider asking first in a Discussion.

Motivation

Current ChatAgent includes too much parameters in the init function, which is hard to understand and be properly configured.

A config class for agent will highly optimize the code structure as well as improve user exeprience. The target is to reproduce any single agent implementation by only modifying the AgentConfig class. Therefore, the config should at least include:

  • Model type
  • Backend model config
  • All prompts to be used
  • Output language
  • OpenAI function call list
  • Memory config
  • An customizable step function that can reuse most of existing member functions in ChatAgent

Solution

A good solution may be the factory method pattern.

Alternatives

No response

Additional context

No response

dandansamax avatar Oct 25 '23 13:10 dandansamax