Import and export agent packages and configure system agents¶
Export or load agent packages, and query, validate, and update system-agent configuration. This page does not cover normal-agent creation, versions, or runtime configuration.
Prerequisites¶
Prepare credentials that can access the target workspace and the target information to import, export, or configure. For service endpoints, authentication, and general request formats, see Make your first AI Studio API call.
The package information required by export and load actions is defined by their action pages. Query the current configuration before updating a system agent.
Call sequence¶
To migrate or back up an agent, export its package. To load an existing package, use the load action and confirm its returned result.
Before configuring a system agent, get the system-agent configuration.
To select a GitHub project, list available projects based on the current configuration or the new configuration to submit.
After updating the configuration, get the system-agent configuration again to confirm the current result.
API operations¶
Import and export agent packages¶
Task |
Use it when |
|---|---|
Obtain an agent package. |
|
You prepared an agent package and need to load it. |
Query and update system-agent configuration¶
Task |
Use it when |
|---|---|
Confirm the current configuration before or after an update. |
|
Select a GitHub project based on the current configuration. |
|
Query projects from the content to submit before creating a new configuration. |
|
You confirmed the target configuration. |
Confirm the result¶
After loading a package, confirm the result on its load action page. After updating a system-agent configuration, use Get system-agent configuration to confirm the current configuration.