Create Agents in SGP
Getting started with building, testing and monitoring agents in SGP
Using the SPG Agent Builder
To create an application in SGP based on Agent Service,
-
Navigate to the applications page
-
Create a new Application using the top right button and select AI Builder in the modal.
You are then prompted to give a name to the application namespace as well as to the initial variant you will be configuring. Next, you’ll see a YAML text editor:
This YAML configuration is what is used to build the agent on the fly using Agent Service. You can copy and paste or drag and drop an existing YAML file from your local device.
Alternatively, you can get started by selecting a template from the Use a template menu in the bottom. This is a library of preconfigured YAML files or snippets that we are constantly expanding. Selecting the template will immediately update the YAML in the editor, which you can modify.
For example, you could swap the llm_model
from gpt-4o-mini
to another one like llama-3-1-70b-instruct
for an open source alternative. Note that these models are directly interfacing with SGPs model API and can be called by name or by using the model_deployment_id
.
Often, it is useful to visualize this workflow. To do that, you can swap to the Graph view on the top left, which will show a node visualization of your workflow or state machine application. Clicking on any of the nodes shows its configuration.
You can easily test the current configuration (as long as it is a valid YAML). To do that click Test your configuration in the bottom menu.
By changing your YAML configuration and continuously testing its output, you can iteratively adjust your agent until it has reached the desired state. The Runs panel on the right supports multi-turn by default. If you want to reset context and start a new thread, select New Thread from the runs drop down in the top right.
The YAML configuration is auto-saved continuously to ensure progress is lost. Once you want to go ahead and publish the configuration for deployment, you can hit Publish Variant in the top right.
What’s next?
Using the templates captures only a tiny fraction of what is possible with Agent Service. To write you own custom configurations you need to learn the set of available nodes, connections and techniques.
Next up, we’ll dive into building YAML files from scratch and will learn the most important nodes and patterns.