Skip to content
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

Object safe #94

Merged
merged 7 commits into from
Apr 26, 2024
Merged

Object safe #94

merged 7 commits into from
Apr 26, 2024

Conversation

taku-y
Copy link
Collaborator

@taku-y taku-y commented Apr 26, 2024

This PR makes Policy and Agent to be object safe. To do this, Policy trait is split into two traits, one for sampling (Policy) and the other for configuration (Configurable). With this change, Policy and Agent traits do not have any associated type, thus being object safe. This change may be useful when using trait objects for policy and agent.

@taku-y taku-y merged commit 04c6eb4 into laboroai:dev_0_0_7 Apr 26, 2024
3 checks passed
@taku-y taku-y deleted the object_safe branch April 26, 2024 00:48
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.

1 participant