We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Mistake in Agent class' docs
Agent's class docs string states that user has to implement 2 methods: `reset` and `step`. However, If I understood correctly, there's no method named `step` and there is method `act` instead. This is quite tiny issue but still.
https://github.com/facebookresearch/habitat-api/blob/c7443c39c5186e517d8a4b7c87a1b42106e4e77a/habitat/core/agent.py#L10-L17

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `habitat/core/agent.py`
Content:
```
1 #!/usr/bin/env python3
2 
3 # Copyright (c) Facebook, Inc. and its affiliates.
4 # This source code is licensed under the MIT license found in the
5 # LICENSE file in the root directory of this source tree.
6 
7 from habitat.core.simulator import Observations
8 
9 
10 class Agent:
11     """Abstract class for defining agents which act inside Env. This abstract
12     class standardizes agents to allow seamless benchmarking. To implement an
13     agent the user has to implement two methods:
14 
15         reset
16         step
17     """
18 
19     def reset(self) -> None:
20         """Called before starting a new episode in environment.
21         """
22         raise NotImplementedError
23 
24     def act(self, observations: Observations) -> int:
25         """
26 
27         Args:
28             observations: observations coming in from environment to be used
29                 by agent to decide action.
30 
31         Returns:
32             action to be taken inside the environment
33         """
34         raise NotImplementedError
35
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/habitat/core/agent.py b/habitat/core/agent.py
--- a/habitat/core/agent.py
+++ b/habitat/core/agent.py
@@ -13,7 +13,7 @@
     agent the user has to implement two methods:
 
         reset
-        step
+        act
     """
 
     def reset(self) -> None:

{"golden_diff": "diff --git a/habitat/core/agent.py b/habitat/core/agent.py\n--- a/habitat/core/agent.py\n+++ b/habitat/core/agent.py\n@@ -13,7 +13,7 @@\n     agent the user has to implement two methods:\n \n         reset\n-        step\n+        act\n     \"\"\"\n \n     def reset(self) -> None:\n", "issue": "Mistake in Agent class' docs\nAgent's class docs string states that user has to implement 2 methods: `reset` and `step`. However, If I understood correctly, there's no method named `step` and there is method `act` instead. This is quite tiny issue but still.\r\nhttps://github.com/facebookresearch/habitat-api/blob/c7443c39c5186e517d8a4b7c87a1b42106e4e77a/habitat/core/agent.py#L10-L17\n", "before_files": [{"content": "#!/usr/bin/env python3\n\n# Copyright (c) Facebook, Inc. and its affiliates.\n# This source code is licensed under the MIT license found in the\n# LICENSE file in the root directory of this source tree.\n\nfrom habitat.core.simulator import Observations\n\n\nclass Agent:\n    \"\"\"Abstract class for defining agents which act inside Env. This abstract\n    class standardizes agents to allow seamless benchmarking. To implement an\n    agent the user has to implement two methods:\n\n        reset\n        step\n    \"\"\"\n\n    def reset(self) -> None:\n        \"\"\"Called before starting a new episode in environment.\n        \"\"\"\n        raise NotImplementedError\n\n    def act(self, observations: Observations) -> int:\n        \"\"\"\n\n        Args:\n            observations: observations coming in from environment to be used\n                by agent to decide action.\n\n        Returns:\n            action to be taken inside the environment\n        \"\"\"\n        raise NotImplementedError\n", "path": "habitat/core/agent.py"}], "after_files": [{"content": "#!/usr/bin/env python3\n\n# Copyright (c) Facebook, Inc. and its affiliates.\n# This source code is licensed under the MIT license found in the\n# LICENSE file in the root directory of this source tree.\n\nfrom habitat.core.simulator import Observations\n\n\nclass Agent:\n    \"\"\"Abstract class for defining agents which act inside Env. This abstract\n    class standardizes agents to allow seamless benchmarking. To implement an\n    agent the user has to implement two methods:\n\n        reset\n        act\n    \"\"\"\n\n    def reset(self) -> None:\n        \"\"\"Called before starting a new episode in environment.\n        \"\"\"\n        raise NotImplementedError\n\n    def act(self, observations: Observations) -> int:\n        \"\"\"\n\n        Args:\n            observations: observations coming in from environment to be used\n                by agent to decide action.\n\n        Returns:\n            action to be taken inside the environment\n        \"\"\"\n        raise NotImplementedError\n", "path": "habitat/core/agent.py"}]}