You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: