Skip to content

Conversation

@rainsonGain
Copy link
Collaborator

add Get StartBasic Usage, Agents, Environment, Context, Memory docs

@gemini-code-assist
Copy link

Summary of Changes

Hello @rainsonGain, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly expands and reorganizes the AWorld documentation to provide a more structured and comprehensive resource for users. The changes aim to clarify core concepts, offer detailed usage examples for various features, and introduce new advanced topics. By restructuring the content into logical sections and adding in-depth guides on agent customization, runtime mechanisms, and key components like Context and Memory, the documentation now offers a clearer path for understanding and leveraging the AWorld framework for building complex multi-agent systems.

Highlights

  • Documentation Restructuring: The entire documentation structure has been reorganized, moving content from a 'Quickstart' directory into more logical categories like 'Agents', 'Basic Usage', 'Environment', 'Get Start', 'Key Components', and 'Runtime'.
  • New Core Documentation: Comprehensive new documentation has been added for AWorld's core capabilities, including detailed guides on Human-in-the-Loop (HITL), parallel task execution, streaming responses, and an in-depth overview of the Environment, Context, and Memory components.
  • Agent Customization Guides: New and updated guides provide detailed instructions on customizing agents, including specific LLMAgent customization points (input, model logic, output, policy, event parsing) and general agent customization.
  • Runtime and Workflow Enhancements: New documentation covers the AWorld runtime architecture, its core components, and how to implement custom Runners, alongside updated explanations for building multi-agent systems and workflows.
  • Navigation Updates: The docs/outline.py file has been updated to reflect the new documentation structure, ensuring proper ordering and navigation for the expanded content.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request significantly refactors and expands the documentation, moving from markdown headers to HTML headers and reorganizing the file structure. The new content is largely a positive addition, providing more detailed explanations of core concepts. However, there are several critical issues that need to be addressed, including broken intranet image links and syntax errors in code examples. Additionally, some documentation sections have been simplified to the point of being unhelpful, and there are various consistency issues like typos, mixed languages in headings, and non-standard punctuation. Addressing these issues will greatly improve the quality and usability of the new documentation.

AWorld implements HITL based on tools and events, [example](https://github.com/inclusionAI/AWorld/blob/main/examples/aworld_quick_start/HITL/run.py).

<h3 id="G4ris">HITL process</h3>
![](https://intranetproxy.alipay.com/skylark/lark/0/2025/png/7350/1766116774337-771e79e3-8f40-4615-89be-10548368449e.png)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

The image URL points to an internal resource (intranetproxy.alipay.com), which will be inaccessible to external users. The image should be uploaded to the repository or a public image hosting service and referenced with a relative or public URL.


```python
from aworld.core.task import Task
from aworld core.common import StreamingMode

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

There is a typo in the import statement. from aworld core.common should be from aworld.core.common. This will cause a syntax error in the code example.

Suggested change
from aworld core.common import StreamingMode
from aworld.core.common import StreamingMode

+ **Experience**: Through interaction with the environment, the Agent collects trajectory data (**Trajectory**) that captures both successful and failed attempts.
+ **Learn**: These trajectories are logged and used for subsequent **optimization** via reinforcement learning (RL) or in-context learning, enabling the Agent to continuously self-improve and evolve.

![](https://intranetproxy.alipay.com/skylark/lark/0/2025/png/7350/1765161413646-524f0233-162b-450e-af3f-42e4a4a2a578.png)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

The image URL points to an internal resource (intranetproxy.alipay.com), which will be inaccessible to external users. The image should be uploaded to the repository or a public image hosting service and referenced with a relative or public URL.

llm_model_name="gpt-4",
llm_api_key="your-api-key",
llm_base_url='available url'
)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

This line is missing a comma at the end, which will cause a Python syntax error in the example code.

Suggested change
)
),

+ **Strong Extensibility</font>**: A modular, plugin-based architecture makes it easy to add support for new compute engines to meet evolving requirements.</font>

<h3 id="UuBBo">Tasks Execution Process</h3>
![](https://intranetproxy.alipay.com/skylark/lark/0/2025/png/7350/1766138528576-4a7c95f1-373e-46d4-9b35-8612c2e8d23d.png)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

The image URL points to an internal resource (intranetproxy.alipay.com), which will be inaccessible to external users. The image should be uploaded to the repository or a public image hosting service and referenced with a relative or public URL.

}
```

<h2 id="gKF0N">Trainning</h2>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

There is a typo in the heading. 'Trainning' should be 'Training'.

Suggested change
<h2 id="gKF0N">Trainning</h2>
<h2 id="gKF0N">Training</h2>

Example with Verl

<h4 id="g0QLt">1. Docker Image</h4>
Use a mirror of the specified training framework,example:**verl0.5-cu126-torch2.7.1-fa2.8.0,**URL:[https://github.com/volcengine/verl/tree/main/docker](https://github.com/volcengine/verl/tree/main/docker)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This line uses full-width punctuation (, ), which is inconsistent with the English used in the rest of the document. Please use standard half-width punctuation (,, :) for consistency.

Suggested change
Use a mirror of the specified training frameworkexample**verl0.5-cu126-torch2.7.1-fa2.8.0**URL[https://github.com/volcengine/verl/tree/main/docker](https://github.com/volcengine/verl/tree/main/docker)
Use a mirror of the specified training framework, example: **verl0.5-cu126-torch2.7.1-fa2.8.0,** URL: [https://github.com/volcengine/verl/tree/main/docker](https://github.com/volcengine/verl/tree/main/docker)

Comment on lines 134 to 146
<h4 id="nSTzo">4. 训练配置</h4>
Customize configuration items based on specific training frameworks.

Note: It is necessary to define a reward function for evaluating agent behavior based on specific task objectives, which can be set in the training configuration.

```python
# define train config
custom_train_config = "string or json"
# define reward
reward_func = "None or string or code reference"
```

<h4 id="DUYK7">5. 运行</h4>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The headings '训练配置' (line 134) and '运行' (line 146) are in Chinese, while the rest of the document is in English. For consistency, they should be translated to English.

  • '训练配置' should be 'Training Configuration'.
  • '运行' should be 'Run' or 'Start Training'.

Comment on lines +78 to 85
data = message.payload
if "clause1" in data:
# Handle clause1 logic
pass
elif "clause2" in data:
# Handle clause2 logic
pass
```

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The example code for 'Dynamic Routing' has been oversimplified and is no longer illustrative. The previous version demonstrated how to check the payload and yield ToolMessage or AgentMessage, which was a concrete and helpful example. The new version with if "clause1" in data: pass is too abstract to be useful. Please consider restoring the more detailed example or providing a new one that is equally informative.

        data = message.payload[0]
        content = data.policy_info

        if "use_tool1" in content:
            # not tool call, but want to use tools
            yield ToolMessage(
                payload=...,
                caller=...,
                sender=...,
                receiver="tool1",
                session_id=...,
                headers=...
            )
        elif "use_agent1" in data:
            # want to use agent as next step
            yield AgentMessage(
                payload=...,
                caller=...,
                sender=...,
                receiver="agent1",
                session_id=...,
                headers=...
            )
        else:
            ...

"""Clear processes and modules"""

async def do_run(self, context):
# 只处理主要流程

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This comment is in Chinese, while the rest of the code block and document is in English. For consistency, it should be translated. '只处理主要流程' could be translated to 'Only handle the main process'.

Suggested change
# 只处理主要流程
# Only handle the main process

@rainsonGain rainsonGain merged commit ca122ad into main Dec 24, 2025
1 check passed
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 this pull request may close these issues.

2 participants