-
Notifications
You must be signed in to change notification settings - Fork 0
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
35 modules in agent should be dict #36
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you want to keep the list option on the long run, ignore my comments. Else, I would already move to full dict and add a warning
"id": "myID", | ||
"modules": [ | ||
{ | ||
"module_id": "MyComID", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move to dict as well?
{"module_id": "Ag1Com", "type": "local", "subscriptions": ["SecondAgent"]}, | ||
{ | ||
"module_id": "Ping", | ||
"type": {"file": pingpong_module.__file__, "class_name": "PingPong"}, | ||
"start": True, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
again
agent_config1 = { | ||
"id": "FirstAgent", | ||
"modules": [ | ||
{"module_id": "Ag1Com", "type": "local_broadcast"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
again, check all
if isinstance(modules, dict): | ||
for module_id, module in modules.items(): | ||
if isinstance(module, (str, Path)): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So we just support both and don't do deprication warnings? If so, you can ignore my comments below.
No description provided.