Skip to content

armgit / ax

Public Imported from GitHub
0

Agent Executor (AX) is Google's open agentic orchestration runtime

Go

Remove ax register from run_e2e.sh and use ax.yaml for registration (#313)

anj-sc6510c6cae76
diff --git a/examples/docker_agent/ax.yaml b/examples/docker_agent/ax.yaml
new file mode 100644
index 0000000..1b5b918
--- /dev/null
+++ b/examples/docker_agent/ax.yaml
@@ -0,0 +1,33 @@
+# Copyright 2026 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+server:
+ address: ":8494"
+
+eventlog:
+ sqlite:
+ filename: "examples/docker_agent/eventlog/log.sqlite"
+
+planner:
+ type: "gemini"
+ gemini:
+ model: "gemini-3-flash-preview"
+ timeout: "60s"
+
+registry:
+ remote_agents:
+ - id: "DockerAgent"
+ name: "Docker Agent"
+ description: "Agent specialized in generating Dockerfiles. Call this agent whenever the user request involves creating, writing, or generating a Dockerfile."
+ address: "localhost:50052"
diff --git a/examples/docker_agent/run_e2e.sh b/examples/docker_agent/run_e2e.sh
index 60439fa..4cb4222 100755
--- a/examples/docker_agent/run_e2e.sh
+++ b/examples/docker_agent/run_e2e.sh
@@ -31,7 +31,7 @@ go run examples/docker_agent/main.go &
AGENT_PID=$!
echo "Starting AX Server in background..."
-ax serve &
+ax serve --config examples/docker_agent/ax.yaml &
SERVER_PID=$!
# Give servers a few seconds to start up
@@ -45,13 +45,6 @@ for i in {1..30}; do
sleep 1
done
-echo "Registering DockerAgent..."
-ax register \
- --agent-id DockerAgent \
- --agent-addr localhost:50052 \
- --agent-name "Docker Agent" \
- --agent-description "Agent specialized in generating Dockerfiles. Call this agent whenever the user request involves creating, writing, or generating a Dockerfile."
-
echo "Executing task..."
ax exec --server localhost:8494 --input "Write a Dockerfile for a Python flask app that says hello world."