Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/en/guide/tutorials/agent_101.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ In MetaGPT, class `Role` is the logical abstraction for an agent. A `Role` can p
In the example, we create a `SimpleCoder` who can write code based on a human's natural language description. The steps are:

1. We give it a name and profile
2. We equip it with the expected action `SimpleWriteCode` with the `self._init_action` function
2. We equip it with the expected action `SimpleWriteCode` with the `self.set_actions` function
3. We overwrite the `_act` function, which is where the agent's specific acting logic goes in. We write that our agent will retrieve human instruction from latest memory, run equipped action, which MetaGPT makes it as the todo (`self.rc.todo`) under the hood, and finally return a complete message

```python
Expand Down