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

Python: Agent.act() #14

Open
mensch72 opened this issue Aug 12, 2024 · 0 comments · May be fixed by #15
Open

Python: Agent.act() #14

mensch72 opened this issue Aug 12, 2024 · 0 comments · May be fixed by #15
Assignees

Comments

@mensch72
Copy link
Contributor

mensch72 commented Aug 12, 2024

provide act() and observe() methods in Agent that can be called by the simulator in this fashion, so that the simulator does not need to care about aspirations at all:

state, _ = env.reset()
agent.observe(state)
while not terminated:
    action = agent.act() 
    state, delta, terminated, _, _ = env.step(action)
    agent.observe(state, delta, terminated)

Note: act() can later also contain code for consulting with the principal before returning an action. observe() might later also contain code for updating a learned world model.

@mensch72 mensch72 self-assigned this Aug 12, 2024
@mensch72 mensch72 linked a pull request Aug 12, 2024 that will close this issue
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 a pull request may close this issue.

1 participant