Skip to content

Conversation

EserSteffen
Copy link
Collaborator

No description provided.

@EserSteffen EserSteffen linked an issue Sep 20, 2024 that may be closed by this pull request
Copy link
Contributor

@FWuellhorst FWuellhorst left a 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",
Copy link
Contributor

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?

Comment on lines +13 to +17
{"module_id": "Ag1Com", "type": "local", "subscriptions": ["SecondAgent"]},
{
"module_id": "Ping",
"type": {"file": pingpong_module.__file__, "class_name": "PingPong"},
"start": True,
Copy link
Contributor

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"},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

again, check all

Comment on lines +69 to +71
if isinstance(modules, dict):
for module_id, module in modules.items():
if isinstance(module, (str, Path)):
Copy link
Contributor

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.

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

Successfully merging this pull request may close these issues.

Modules in agent should be dict
3 participants