Skip to content

Feature/new handling message #302

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

Open
wants to merge 28 commits into
base: feature/websocket_node
Choose a base branch
from

Conversation

XuhuiZhou
Copy link
Member

Closes #

📑 Description

✅ Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed
  • Branch name follows type/descript (e.g. feature/add-llm-agents)
  • Ready for code review

ℹ Additional Information

status: Literal["Started", "Error", "Completed"]


class BaseEpisodeLog(BaseModel):
Copy link
Member Author

Choose a reason for hiding this comment

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

why this whole new class but not just inherit from the original BaseEpisodeLog?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I was under the assumption that the code in experimental would replace the code in the current logs.py. So I made changes to the BaseEpisodeLog class

len(self.rewards) == agent_number
), f"Number of agents in rewards {len(self.rewards)} and agents {agent_number} do not match"
return self

def render_for_humans(self) -> tuple[list[AgentProfile], list[str]]:
Copy link
Member Author

Choose a reason for hiding this comment

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

Are we using the function anywhere?

Copy link
Collaborator

Choose a reason for hiding this comment

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

This was present in the previous code so I kept it in the new code as well

"groups": self.groups,
}

def add_message(
Copy link
Member Author

Choose a reason for hiding this comment

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

Are we using this function anywhere?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I have removed the function.

@@ -2,7 +2,7 @@
from redis_om.model.model import Field
from pydantic import create_model, BaseModel, AfterValidator
from typing import Type, Callable, Tuple, Annotated, Union, cast, Any
from sotopia.envs import SotopiaDimensions
from sotopia.envs.evaluators import SotopiaDimensions
Copy link
Member Author

Choose a reason for hiding this comment

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

no need to do this?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I was getting errors in my tests where it was not able to import SotopiaDimensions

)

# Create a filtered copy of the epilog
filtered_epilog = self.filter_epilog_for_recipient(
Copy link
Member Author

Choose a reason for hiding this comment

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

remove this filter thing

Copy link
Collaborator

Choose a reason for hiding this comment

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

Removed

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.

3 participants