-
Notifications
You must be signed in to change notification settings - Fork 32
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
base: feature/websocket_node
Are you sure you want to change the base?
Conversation
status: Literal["Started", "Error", "Completed"] | ||
|
||
|
||
class BaseEpisodeLog(BaseModel): |
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.
why this whole new class but not just inherit from the original BaseEpisodeLog?
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.
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]]: |
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.
Are we using the function anywhere?
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.
This was present in the previous code so I kept it in the new code as well
sotopia/experimental/agents/logs.py
Outdated
"groups": self.groups, | ||
} | ||
|
||
def add_message( |
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.
Are we using this function anywhere?
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.
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 |
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.
no need to do this?
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.
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( |
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.
remove this filter thing
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.
Removed
…opia-lab/sotopia into feature/new_handling_message
…opia-lab/sotopia into feature/new_handling_message
Closes #
📑 Description
✅ Checks
type/descript
(e.g.feature/add-llm-agents
)ℹ Additional Information