Huawei Cloud CodeArts Agent
Huawei Cloud CodeArts Agent allows you to integrate third-party large language models and tailor them to your business scenarios. With support for private deployment, it helps you meet data security and compliance requirements while aligning AI capabilities with your business needs.
The professional edition of Huawei Cloud CodeArts Agent allows you to configure models on both the console and client. The basic edition or free edition allows you to configure models only on the client.
- On the console: Only enterprise administrators can configure models and manage the permissions of enterprise members to configure models on the client.
- On the client: All enterprise members can configure models.
Prerequisites
- You have registered a HUAWEI ID. For details, see Signing Up for a HUAWEI ID and Enabling Huawei Cloud Services.
- You have subscribed to the MaaS built-in service. For details, see Subscribing to Built-in Services.
- You have purchased the basic or professional edition, or are using the free edition of CodeArts Agent.
- The professional edition allows you to configure models on both the console and client.
- The basic edition and free edition allow you to configure models only on the client.
- The IAM user or federated user has been granted the Tenant Administrator permissions.
For details about how to grant permissions to an IAM user, see Creating a User Group and Assigning Permissions or Creating a User Group and Assigning Permissions (New IAM Console). For details about how to grant permissions to a federated user, see Creating a User Group and Assigning Permissions. When the permissions of a user group associated with a federated user are modified, the enterprise IdP must be restarted to apply the changes.
- Huawei Cloud CodeArts team members have been added. For details, see Adding Team Members.
- The CodeArts client has been installed. For details, see Getting Started with CodeArts.
Billing
When using the MaaS service, you are charged based on the number of tokens used. For details, see Billing Items for MaaS Built-in Model Services.
Constraints
- Only the third-party models that use OpenAI-compliant Chat Completions APIs and Anthropic-compliant Messages APIs can be integrated into CodeArts Agent.
- CodeArts models cannot be invoked by the Ask agent. They can only be invoked by system built-in agents, AgentTeam, and custom agents.
Connecting a MaaS Model to the CodeArts Agent on the Console
- Log in to the CodeArts Agent console using an account with the Tenant Administrator permissions.
- In the navigation tree, choose Enterprise Settings > Models. The Models page is displayed.
- In Custom Models, click Create Model. The Create Model dialog box is displayed.
- Create the MaaS model by referring to Table 1. Figure 1 Creating a MaaS model
Table 1 Parameters for creating a MaaS model Parameter
Description
Model Provider
Select Huawei Cloud MaaS.
Model ID
- Select a model name from the drop-down list, for example, GLM5.2.
- If the required model name is not in the drop-down list, select Custom and enter the model name in the Custom Model ID text box, for example, GLM5.2. For details about the supported models, see Model List.
Model Display Name
The model display name can be the same as the name of a built-in model, but cannot be the same as the name of any other custom model.
Enter the model name to be displayed in CodeArts Agent, for example, GLM5.2. The name can contain a maximum of 64 characters.
API Key
Model URL
Retain the default value that is displayed after you select the model provider.
Context Window
Optional. Retain the default value.
Description
Optional. Retain the default value.
- Click OK.
The MaaS model is displayed in the built-in models area, indicating that the MaaS model has been connected to the CodeArts Agent.
- Log in to the CodeArts Agent console as an enterprise administrator. In the navigation tree, choose Agent Settings > Agents. Figure 2 Agents
- Locate the system built-in agent and click Edit in the Operation column. The Edit Agent page is displayed.
- Select the MaaS model from the Base Model drop-down list box and click Confirm in the upper right corner. The model is added to the model list of the agent. Figure 3 Edit Agent
- Log in to the CodeArts Agent client as an enterprise member.
- In the chat window, choose Built-in > Agent under the text box, and select the MaaS model from the model list on the right.
- Enter What Is a Binary Tree in the chat box and press Enter. The correct answer is returned, indicating that the MaaS model can be used normally. Figure 4 Using the MaaS model
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot