Skip to content

Conversation

chriselion
Copy link
Contributor

@chriselion chriselion commented Apr 5, 2021

Proposed change(s)

Add DecisionRequester.ShouldRequestDecision() and ShouldRequestAction()methods. These are used to determine whether Agent.RequestDecision() and Agent.RequestAction() are called (respectively).

Useful links (Github issues, JIRA tickets, ML-Agents forum threads etc.)

#4180

Types of change(s)

  • New feature

Checklist

  • Added tests that prove my fix is effective or that my feature works
  • Updated the changelog (if applicable)

Other comments

/// </summary>
/// <param name="context"></param>
/// <returns></returns>
protected virtual bool ShouldRequestDecision(DecisionRequestContext context)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The DecisionRequestContext is maybe a little over-engineered, but it'll let us extend in the future if needed without changing the signature.

@chriselion chriselion merged commit 8278515 into main Apr 6, 2021
@delete-merged-branch delete-merged-branch bot deleted the MLA-1159-DecisionRequester-virtual branch April 6, 2021 18:34
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants