General Agents

2025-12-28 01:54:35
Sanplex Content
28
Last edited by WANG JING on 2025-12-28 02:47:00
Share links
Summary : This section describes creating General Agents by configuring basic settings, form fields, prompts, and debugging before use.

This section explains how to create and design General Agents.

1. Create a General Agent

Click Manage General Agents to open the General Agent management page. Then click Create General Agent to enter the Agent Designer.

图1

图2

2. Configure Basic Information

Creating a General Agent includes two steps: configuring the basic information, and configuring the form and prompt settings.

In Step 1, configure the General Agent’s basic information, including:

  • Category
  • the application’s LLM (Language Model)
  • Name
  • Description
  • Icon

图3

3. Configure Form Fields

In Step 2, configure the General Agent’s form and prompt settings, including field configuration, prompt template, debug content, prompt preview, and output preview. After you save, the General Agent design is complete.

Start by configuring fields. The system provides three built-in fields by default to help you quickly understand the configuration workflow. Click + to open the field configuration dialog:

  1. Field Name: required.
  2. Control Type: supports Single-line Text, Multi-line Text, Multiple Choice, and Single Choice. (For choice controls, you can configure option values.)
  3. Input Hint: shown as the prompt text for users when filling in the form.
  4. Required: validates input when the form is submitted.

图4

图5

4. Configure the Agent Prompt

After fields are configured, the administrator can compose the prompt by inserting field values into a prompt text. Sanplex provides a rule-based syntax and supports fuzzy search to help you reference fields efficiently.

图6

5. Debug the Agent

After configuring fields and the prompt, you can debug the agent content. Enter values in the debug input area; the system will concatenate them with the prompt fields and show the final prompt in the preview panel on the right. The preview content is what will be sent to the language model.

图7

图8

图9

图10

Write a Comment
Comment will be posted after it is reviewed.