AI Agent Example
This page lists example AI agent configurations, which can be viewed from GenAI Model screen in Data Science app
This training agent is a “chat + tools” example. It searches books by calling the /train_rest saga. It can also render results as a rich HTML card UI.
It is configured in the Data Science → GenAI Models screen. It depends on the training assets from the other examples.
Before you start
The training runners are installed and running.
The
/train_restsaga exists and isACTIVE. See API Flow Examples.A runner is allowed to serve GenAI models (
train_rpc). See Microservice Examples.You have an LLM provider key stored as a secret.
What you’ll build
A GenAI agent with sample system instructions and a book-search goal.
A tool saga entry that lets the agent call
/train_rest.An optional tool state entry (the training
dummymodel) for safe additional data access.An optional interface so the agent can respond with UI cards.
End-to-end flow (what happens at runtime)
The user asks for books (author/title/keywords).
The LLM decides to call the
/train_resttool saga./train_restcalls Open Library via an outbound REST step.The agent formats results.
It returns an HTML-based result card.
Configure the model (walkthrough)
Run it
After you Save, the agent appears in the agent list.

Open the agent and try a prompt like:
Find books by "Isaac Asimov".Show me the books with "The Hobbit" in title.
You should see tool-backed results. With interfaces enabled, you’ll get a rich HTML response.

Call it via API (optional)
Agents are also available as backend APIs. Use these endpoints from the runner channel that serves the agent:
Use the Call Path from the agent’s Definition tab. That value is the stable identifier for calling the agent remotely.
Troubleshooting
Model can’t be called: the agent is not in Allowed For for your runner.
LLM auth error: secret is missing or not resolved on the runner.
Agent never uses tools:
/train_restis not listed in Tool Sagas.Tool call fails: verify
/train_restworks directly first. Start from API Flow Examples.UI response is plain text: interfaces are disabled or no interface is assigned.
Broken HTML: Handlebars template has invalid syntax. Simplify and retry.
Next steps
Deep dive into model tabs and governance in GenAI Models.
Extend the tool saga patterns in API Flow Examples.
Build more admin screens like the training UI in UI Example.
Last updated





