Skip to content

ADK Agent ​

The Memory ADK Agent is a chat agent built on Google ADK that remembers each user. You can extend it with skills, MCP tools and other agents by connecting datasets.

Workflow with ADK agents and RAG services exposed as MCP

Quick start ​

  1. Go to Workflows, create a workflow and open the Designer.
  2. Drag the memory-adk-agent service (category Agent) onto the canvas.
  3. Click the service and edit AGENT_INSTRUCTION to give the agent its role. The other defaults use the platform's LLM gateway.
  4. Save and Run the workflow. Wait for the status RUNNING.
  5. Open the service's exposed URL and add /dev-ui/, including the final slash.

Check it works: in the web UI, send "My name is Alice", then "What is my name?".

To use the agent from the platform, add it to the chat with the OpenAI protocol.

Memory is lost by default

The default SQLite database is lost when the workflow stops. To keep memory across runs, set DATABASE_URL to PostgreSQL: postgresql+psycopg://USER:PASSWORD@HOST:5432/DB.

Endpoints ​

All paths are relative to the service's exposed URL.

PathUse
/dev-ui/Web UI to chat with the agent and inspect tool calls.
/v1OpenAI-compatible API. The model name is the agent name.
/mcp/MCP server with one tool, call_NAME_agent.
/a2a/NAMEA2A endpoint for other ADK agents.
/healthHealth check.

Call the API ​

Set AGENT_URL to the exposed URL, without /v1, and use the name from AGENT_INSTRUCTION as model.

bash
curl -X POST "$AGENT_URL/v1/chat/completions" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "memory_agent",
    "messages": [{"role": "user", "content": "What is my name?"}],
    "user": "alice",
    "session_id": "session-001"
  }'

Send the same user and session_id to continue a conversation. Without them, each request gets a new generated identity and the agent does not remember it. Add "stream": true to receive the answer as Server-Sent Events.

Parameters ​

ParameterRequiredWhat to set
AGENT_INSTRUCTIONYesJSON with prompt, name and description. name must contain only letters, digits and underscores, and cannot start with a digit. Write {user:username?} in the prompt to insert the user's stored name.
MODELYesModel name. Default: qwen3:0.6b.
BASE_URLYesOpenAI-compatible LLM endpoint. The default is the platform's gateway.
API_KEYYesKey for BASE_URL.
TEMPERATUREYesFrom 0 (focused) to 1 (creative). Default: 0.7.
MAX_TOKENSNoMaximum answer length.
DATABASE_URLYesWhere conversations are stored.
ALIDA_ENABLED_CATEGORIESNoDefault: skills. An empty value disables skill imports. Do not set tools or data.
portsToExposeNoLeave the default, port 9000.

Connect datasets ​

The service has six optional inputs: input-dataset-1 to 3 for URLs, and input-dataset-4 to 6 for files. To create these datasets and choose their category, see Extend an agent with datasets.

DatasetInputWhat happens
Files, category Skill or Skills4–6Imports skills/NAME/.... Each skill must contain SKILL.md.
Files, category Prompt4–6Appends the root AGENTS.md to the agent's instruction and imports its skills/. Other files are ignored.
Files, category Tool, Data or none4–6Logged and skipped.
URL ending in /.well-known/agent-card.json1–3Adds a remote A2A agent the agent can delegate to.
Any other URL1–3Adds an MCP server whose tools the agent can call.

Unreachable datasets, MCP servers and agent cards are logged and skipped. Unknown categories and missing required files stop startup.

A skill is a folder containing a SKILL.md that says when to use it:

markdown
---
name: domain-workflow
description: Apply domain-specific steps to a task.
---

Follow the steps in references/guide.md for this task.

Use it from another agent ​

Connect the agent's output port to an input of another service in the same workflow, for example an MCP input of the OpenCode Agent. The other service sees this agent as the MCP tool call_NAME_agent.

Troubleshooting ​

Open the workflow logs with the show-logs button on the workflow page.

SymptomCheck
AGENT_INSTRUCTION.name must be a valid Python identifierThe name contains spaces or hyphens, or starts with a digit. Use, for example, my_agent.
The skills do not loadThe dataset category must be Skill: a dataset without category is treated as data and skipped. The dataset must be connected to inputs 4–6.
The agent cannot use a toolThe MCP or agent card warning in the logs, and that the URL is reachable from the cluster.
The agent forgets everything after a restartDATABASE_URL is still the default SQLite file.
The model returns errorsBASE_URL, API_KEY, and that MODEL exists on that endpoint.
The web UI does not load correctlyThe URL must end with /dev-ui/, including the final slash.