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

use Python decorator to simplify the registration process #1167

Closed
sonichi opened this issue Aug 3, 2023 · 0 comments
Closed

use Python decorator to simplify the registration process #1167

sonichi opened this issue Aug 3, 2023 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@sonichi
Copy link
Contributor

sonichi commented Aug 3, 2023

          This design is great, which can help many applications and agents in multi-agent scenarios.
  1. Can we use Python decorator to simplify the registration process? (Not a big issue. Just thinking loud).
class ChildAgent(ResponsiveAgent):
     @register(MathAgent)
     def reponse_for_math_agent(...):
           ...
  1. Why use "class_type" as a decision variable. The agent's name can ne another thing to consider (e.g., in the OptiGuide example, where both Writer and Safeguard are ResponsiveAgent).

Originally posted by @BeibinLi in #1165 (comment)

@sonichi sonichi added enhancement New feature or request help wanted Extra attention is needed labels Aug 4, 2023
@sonichi sonichi linked a pull request Aug 5, 2023 that will close this issue
3 tasks
@sonichi sonichi closed this as completed Sep 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
1 participant