Skip to content

Conversation

@sidnarayanan
Copy link
Collaborator

Adds two additional "hooks" to Callback. Both are async context managers that respectively wrap get_asv() and step(). Combined with #355 , this can be used for more granular cost tracking.

"""Invoked by runners after agent.get_asv()."""

@asynccontextmanager
async def during_env_step(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice work.

Do you mind extending test_rollouts.DummyCallback for these in the unit tests?

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