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

Support direct class setting #50

Open
masanorihirano opened this issue Jan 11, 2023 · 0 comments
Open

Support direct class setting #50

masanorihirano opened this issue Jan 11, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@masanorihirano
Copy link
Owner

Currently, classes are set by a string in config JSON/python dict.

When python dict is used for setting, we should support Type direction in the setting.

For example,

class UserDefinedAgent(Agent):
    pass

setting = {
    ....
    "Agents": {
        "class": UserDefinedAgent,
        ....
    }
}

runner = SequentialRunner(
    settings=config,
    ...
)

...

if it is possible, class_registration to the runner is not necessary.

@masanorihirano masanorihirano added the enhancement New feature or request label Jan 11, 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
Projects
None yet
Development

No branches or pull requests

1 participant