Skip to content

Commit

Permalink
fix according to xuchen's comments [hyperlinks]
Browse files Browse the repository at this point in the history
  • Loading branch information
yxdyc committed Jan 19, 2024
1 parent 87f6518 commit 3e1ee85
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 31 deletions.
5 changes: 5 additions & 0 deletions docs/sphinx_doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,13 @@
"sphinx.ext.napoleon",
"sphinxcontrib.mermaid",
"myst_parser",
"sphinx.ext.autosectionlabel",
]

# Prefix document path to section labels, otherwise autogenerated labels would
# look like 'heading' rather than 'path/to/file:heading'
autosectionlabel_prefix_document = True

# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]

Expand Down
3 changes: 1 addition & 2 deletions docs/sphinx_doc/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ AgentScope Documentation


.. toctree::
:maxdepth: 2
:maxdepth: 1
:glob:
:hidden:
:caption: AgentScope API Reference

agentscope.agents
Expand Down
6 changes: 3 additions & 3 deletions docs/sphinx_doc/source/tutorial/103-example.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ model_config = {
}
```

For open-source models, we support integration with various model interfaces such as HuggingFace, ModelScope, FastChat, and vllm. You can find scripts on deploying these services in the `scripts` directory, and we defer the detailed instructions to [[Using Different Model Sources with Model API]](https://github.com/alibaba/AgentScope/tree/main/docs/tutorial/203-model.md).
For open-source models, we support integration with various model interfaces such as HuggingFace, ModelScope, FastChat, and vllm. You can find scripts on deploying these services in the `scripts` directory, and we defer the detailed instructions to [[Using Different Model Sources with Model API]](https://alibaba.github.io/AgentScope/tutorial/203-model.md).

You can register your configuration by calling AgentScope's initilization method as follow. Besides, you can also load more than one config by calling init mutliple times.
```python
Expand Down Expand Up @@ -55,7 +55,7 @@ dialogAgent = DialogAgent(name="assistant", model="gpt-4")
userAgent = UserAgent()
```

**NOTE**: Please refer to [[Customizing Your Custom Agent with Agent Pool]](https://github.com/alibaba/AgentScope/tree/main/docs/tutorial/201-agent.md) for all available agents.
**NOTE**: Please refer to [[Customizing Your Custom Agent with Agent Pool]](https://alibaba.github.io/AgentScope/tutorial/201-agent.md) for all available agents.

## Step3: Agent Conversation

Expand Down Expand Up @@ -96,7 +96,7 @@ while x is None or x.content != "exit":
x = sequentialpipeline([dialog_agent, user_agent])
```

For more details about how to utilize pipelines for complex agent interactions, please refer to [[Agent Interactions: Dive deeper into Pipelines and Message Hub]](https://github.com/alibaba/AgentScope/tree/main/docs/tutorial/202-pipeline.md).
For more details about how to utilize pipelines for complex agent interactions, please refer to [[Agent Interactions: Dive deeper into Pipelines and Message Hub]](https://alibaba.github.io/AgentScope/tutorial/202-pipeline.md).



Expand Down
4 changes: 2 additions & 2 deletions docs/sphinx_doc/source/tutorial/104-usecase.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Let the adventure begin to unlock the potential of multi-agent applications with

## Getting Started

Firstly, ensure that you have installed and configured AgentScope properly. Besides, we will involve the basic concepts of `Model API`, `Agent`, `Msg`, and `Pipeline,` as described in [Tutorial-Concept](https://github.com/alibaba/AgentScope/tree/main/docs/tutorial/102-concepts.md). The overview of this tutorial is shown below:
Firstly, ensure that you have installed and configured AgentScope properly. Besides, we will involve the basic concepts of `Model API`, `Agent`, `Msg`, and `Pipeline,` as described in [Tutorial-Concept](https://alibaba.github.io/AgentScope/tutorial/102-concepts.md). The overview of this tutorial is shown below:

* [Step 1: Prepare **Model API** and Set Model Configs](#step-1-prepare-model-api-and-set-model-configs)
* [Step 2: Define the Roles of Each **Agent**](#step-2-define-the-roles-of-each-agent)
Expand All @@ -22,7 +22,7 @@ Firstly, ensure that you have installed and configured AgentScope properly. Besi

### Step 1: Prepare Model API and Set Model Configs

As we discussed in the last tutorial, you need to prepare your model configurations into a JSON file for standard OpenAI chat API, FastChat, and vllm. More details and advanced usages such as configuring local models with POST API are presented in [Tutorial-Model-API](https://github.com/alibaba/AgentScope/tree/main/docs/tutorial/203-model.md).
As we discussed in the last tutorial, you need to prepare your model configurations into a JSON file for standard OpenAI chat API, FastChat, and vllm. More details and advanced usages such as configuring local models with POST API are presented in [Tutorial-Model-API](https://alibaba.github.io/AgentScope/tutorial/203-model.md).

```json
[
Expand Down
6 changes: 3 additions & 3 deletions docs/sphinx_doc/source/tutorial/201-agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ The `AgentBase` class is the architectural cornerstone for all agent constructs

Each AgentBase derivative is composed of several key characteristics:

* `memory`: This attribute enables agents to retain and recall past interactions, allowing them to maintain context in ongoing conversations. For more details about `memory`, we defer to [Memory and Message Management](https://github.com/alibaba/AgentScope/tree/main/docs/tutorial/205-memory.md).
* `memory`: This attribute enables agents to retain and recall past interactions, allowing them to maintain context in ongoing conversations. For more details about `memory`, we defer to [Memory and Message Management](https://alibaba.github.io/AgentScope/tutorial/205-memory.md).

* `model`: The model is the computational engine of the agent, responsible for making a response given existing memory and input. For more details about `model`, we defer to [Using Different Model Sources with Model API](https://github.com/alibaba/AgentScope/tree/main/docs/tutorial/203-model.md).
* `model`: The model is the computational engine of the agent, responsible for making a response given existing memory and input. For more details about `model`, we defer to [Using Different Model Sources with Model API]https://alibaba.github.io/AgentScope/tutorial/203-model.md).

* `sys_prompt` & `engine`: The system prompt acts as predefined instructions that guide the agent in its interactions; and the `engine` is used to dynamically generate a suitable prompt. For more details about them, we defer to [Prompt Engine](https://github.com/alibaba/AgentScope/tree/main/docs/tutorial/206-prompt.md).
* `sys_prompt` & `engine`: The system prompt acts as predefined instructions that guide the agent in its interactions; and the `engine` is used to dynamically generate a suitable prompt. For more details about them, we defer to [Prompt Engine](https://alibaba.github.io/AgentScope/tutorial/206-prompt.md).

In addition to these attributes, `AgentBase` endows agents with pivotal methods such as `observe` and `reply`:

Expand Down
4 changes: 2 additions & 2 deletions docs/sphinx_doc/source/tutorial/208-distribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ AgentScope is designed to be fully distributed, agent instances in one applicati

[The actor model](https://en.wikipedia.org/wiki/Actor_model) is a popular concept in concurrent programming and adopted by AgentScope. Every agent is an actor and interacts with other agents through messages. The flow of messages implies the execution order of the agent. Each agent has a `reply` method that consumes a message and generates another message, and the generated message can be sent to other agents. For example, the figure below shows the workflow of multiple agents. `A` to `F` are all agents, and the arrows represent messages.

```mermaid
```{mermaid}
graph LR;
A-->B
A-->C
Expand All @@ -33,7 +33,7 @@ z = C(x)

Although this code appears to be executed completely sequentially, AgentScope will **automatically detect potential parallelism** in your code as shown in the flow graph below, which means `C` will not wait for `B` to complete before starting execution.

```mermaid
```{mermaid}
graph LR;
A-->B
A-->C
Expand Down
34 changes: 15 additions & 19 deletions docs/sphinx_doc/source/tutorial/main.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,24 @@ AgentScope is an innovative multi-agent platform designed to empower developers

### Getting Started

- [Installation Guide](https://github.com/alibaba/AgentScope/tree/main/docs/tutorial/101-installation.md)
- [Fundamental Concepts](https://github.com/alibaba/AgentScope/tree/main/docs/tutorial/102-concepts.md)
- [Getting Started with a Simple Example](https://github.com/alibaba/AgentScope/tree/main/docs/tutorial/103-example.md)
- [Crafting Your First Application](https://github.com/alibaba/AgentScope/tree/main/docs/tutorial/104-usecase.md)
- [Logging and WebUI](https://github.com/alibaba/AgentScope/tree/main/docs/tutorial/105-logging.md)
- [Installation Guide](tutorial/101-installation.md)
- [Fundamental Concepts](tutorial/102-concepts.md)
- [Getting Started with a Simple Example](tutorial/103-example.md)
- [Crafting Your First Application](tutorial/104-usecase.md)
- [Logging and WebUI](tutorial/105-logging.md)

### Advanced Exploration

- [Customizing Your Own Agent](https://github.com/alibaba/AgentScope/tree/main/docs/tutorial/201-agent.md)
- [Agent Interactions: Dive deeper into Pipelines and Message Hub](https://github.com/alibaba/AgentScope/tree/main/docs/tutorial/202-pipeline.md)
- [Using Different Model Sources with Model API](https://github.com/alibaba/AgentScope/tree/main/docs/tutorial/203-model.md)
- [Enhancing Agent Capabilities with Service Functions](https://github.com/alibaba/AgentScope/tree/main/docs/tutorial/204-service.md)
- [Memory and Message Management](https://github.com/alibaba/AgentScope/tree/main/docs/tutorial/205-memory.md)
- [Prompt Engine](https://github.com/alibaba/AgentScope/tree/main/docs/tutorial/206-prompt.md)
- [Monitoring](https://github.com/alibaba/AgentScope/tree/main/docs/tutorial/207-monitor.md)
- [Distributed Deployment](https://github.com/alibaba/AgentScope/tree/main/docs/tutorial/208-distribute.md)
- [Customizing Your Own Agent](tutorial/201-agent.md)
- [Agent Interactions: Dive deeper into Pipelines and Message Hub](tutorial/202-pipeline.md)
- [Using Different Model Sources with Model API](tutorial/203-model.md)
- [Enhancing Agent Capabilities with Service Functions](tutorial/204-service.md)
- [Memory and Message Management](tutorial/205-memory.md)
- [Prompt Engine](tutorial/206-prompt.md)
- [Monitoring](tutorial/207-monitor.md)
- [Distributed Deployment](tutorial/208-distribute.md)

### Getting Involved

* [Joining The AgentScope Community](https://github.com/alibaba/AgentScope/tree/main/docs/tutorial/301-community.md)
* [Contributing to AgentScope](https://github.com/alibaba/AgentScope/tree/main/docs/tutorial/302-contribute.md)

### API References

Please refer to [[API References]](https://alibaba.github.io/agentscope/) for details.
* [Joining The AgentScope Community](tutorial/301-community.md)
* [Contributing to AgentScope](tutorial/302-contribute.md)

0 comments on commit 3e1ee85

Please sign in to comment.