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

Impose structure on agent generation #72

Open
svange opened this issue Oct 6, 2023 · 0 comments
Open

Impose structure on agent generation #72

svange opened this issue Oct 6, 2023 · 0 comments
Assignees

Comments

@svange
Copy link
Owner

svange commented Oct 6, 2023

Description

Agents come in 3 flavors: completion agents, chat agents, and function agents (that currently only use the openai chat-gpt 0613 model).

This seems like a candidate for some sort of class composition (or... maybe... inheritance).

Possible Solution

Python protocols can go a long way, but at first glance it seems like a compositional structure works here. A GptAgent can be a class with attributes such as agent_config, llm, and toolbox.

Inheritance is also an option, but I prefer to explore more idiomatic ways to do this.

Additional context

Currently, the GptAgent class has a bunch of if/else conditionals in its init method. Time for a refactor, as these options will likely only grow as we adopt other types of agents like gorilla, or self-hosted, etc.

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant