Skip to content

Commit

Permalink
fix minor example bugs and typos (#32)
Browse files Browse the repository at this point in the history
Co-authored-by: wenhao <[email protected]>
  • Loading branch information
garyzhang99 and wenhao authored Feb 23, 2024
1 parent f6693e6 commit 91cedf7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/sphinx_doc/source/tutorial/103-example.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ from agentscope.agents import DialogAgent, UserAgent
agentscope.init(model_configs="./openai_model_configs.json")

# Create a dialog agent and a user agent
dialogAgent = DialogAgent(name="assistant", model_config_name="gpt-4")
dialogAgent = DialogAgent(name="assistant", model_config_name="gpt-4", sys_prompt="You are a helpful ai assistant")
userAgent = UserAgent()
```

Expand Down
3 changes: 1 addition & 2 deletions docs/sphinx_doc/source/tutorial/105-logging.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ agentscope.web.init(
)
```

By this way, you can see all the running instances and projects in `http://127.
0.0.1:5000` as follows:
By this way, you can see all the running instances and projects in `http://127.0.0.1:5000` as follows:

![webui](https://img.alicdn.com/imgextra/i3/O1CN01kpHFkn1HpeYEkn60I_!!6000000000807-0-tps-3104-1849.jpg)

Expand Down
2 changes: 1 addition & 1 deletion docs/sphinx_doc/source/tutorial/201-agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Customizing Your Own Agent

This tutorial helps you to understand the `Agent` in mode depth and navigate through the process of crafting your own custom agent with AgentScope. We start by introducing the fundamental abstraction called `AgentBase`, which serves as the base class to maintain the general behaviors of all agents. Then, we will go through the *AgentPool*, an ensemble of pre-built, specialized agents, each designed with a specific purpose in mind. Finally, we will demonstrate how to customize your own agent, ensuring it fits the needs of your project.
This tutorial helps you to understand the `Agent` in more depth and navigate through the process of crafting your own custom agent with AgentScope. We start by introducing the fundamental abstraction called `AgentBase`, which serves as the base class to maintain the general behaviors of all agents. Then, we will go through the *AgentPool*, an ensemble of pre-built, specialized agents, each designed with a specific purpose in mind. Finally, we will demonstrate how to customize your own agent, ensuring it fits the needs of your project.

## Understanding `AgentBase`

Expand Down

0 comments on commit 91cedf7

Please sign in to comment.