Agent Executor (AX) is Google's open agentic orchestration runtime
Go
Add LICENSE headers
Jaana Dogan5ffbedb7f733
diff --git a/agent/agent.go b/agent/agent.goindex dd0a1c0..da689aa 100644--- a/agent/agent.go+++ b/agent/agent.go@@ -1,3 +1,17 @@+// 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.+// Package agent provides interfaces and implementations for local and remote agents.// Agents process content through callback handlers and can be registered with the dispatcher.package agentdiff --git a/agent/local.go b/agent/local.goindex 35c04da..bda4c88 100644--- a/agent/local.go+++ b/agent/local.go@@ -1,3 +1,17 @@+// 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.+package agentimport (diff --git a/agent/remote.go b/agent/remote.goindex 2c81f84..cee076b 100644--- a/agent/remote.go+++ b/agent/remote.go@@ -1,3 +1,17 @@+// 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.+package agentimport (diff --git a/cmd/gar/inspect.go b/cmd/gar/inspect.goindex 245fff8..4753ed5 100644--- a/cmd/gar/inspect.go+++ b/cmd/gar/inspect.go@@ -1,3 +1,17 @@+// 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.+package mainimport (diff --git a/cmd/gar/main.go b/cmd/gar/main.goindex 3aa99ab..90ad3d5 100644--- a/cmd/gar/main.go+++ b/cmd/gar/main.go@@ -1,3 +1,17 @@+// 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.+// Gar is a CLI tool for managing agent orchestrator sessions.// It provides commands to trigger sessions, resume from checkpoints,// inspect session state, register agents, and run the controller server.diff --git a/cmd/gar/register.go b/cmd/gar/register.goindex 9c4c7d8..600c70f 100644--- a/cmd/gar/register.go+++ b/cmd/gar/register.go@@ -1,3 +1,17 @@+// 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.+package mainimport (diff --git a/cmd/gar/serve.go b/cmd/gar/serve.goindex d4fba5d..3eb82ec 100644--- a/cmd/gar/serve.go+++ b/cmd/gar/serve.go@@ -1,3 +1,17 @@+// 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.+package mainimport (diff --git a/cmd/gar/trigger.go b/cmd/gar/trigger.goindex 24b54de..64244b9 100644--- a/cmd/gar/trigger.go+++ b/cmd/gar/trigger.go@@ -1,3 +1,17 @@+// 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.+package mainimport (diff --git a/examples/local_agent/main.go b/examples/local_agent/main.goindex 8d8cfb6..bcdf48a 100644--- a/examples/local_agent/main.go+++ b/examples/local_agent/main.go@@ -1,3 +1,17 @@+// 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.+package mainimport (diff --git a/examples/remote_agent/main.go b/examples/remote_agent/main.goindex c6edcb9..a92c2f4 100644--- a/examples/remote_agent/main.go+++ b/examples/remote_agent/main.go@@ -1,3 +1,17 @@+// 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.+package mainimport (diff --git a/gar.yaml b/gar.yamlindex 90e7104..d26a05f 100644--- a/gar.yaml+++ b/gar.yaml@@ -1,5 +1,16 @@-# GAR Server Configuration-# This file configures the GAR (Google Agent Runtime) server.+# 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 configurationserver:diff --git a/internal/config/config.go b/internal/config/config.goindex 18b2ab7..2af5927 100644--- a/internal/config/config.go+++ b/internal/config/config.go@@ -1,3 +1,17 @@+// 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.+// Package config provides configuration structures for GAR server.package configdiff --git a/internal/controller/controller.go b/internal/controller/controller.goindex 7922512..518802d 100644--- a/internal/controller/controller.go+++ b/internal/controller/controller.go@@ -1,3 +1,17 @@+// 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.+// Package controller implements the single-writer orchestrator that coordinates// agentic loops, manages sessions, and communicates with local and remote agents.package controllerdiff --git a/internal/controller/gemini.go b/internal/controller/gemini.goindex 1e9b7a3..b6a7c23 100644--- a/internal/controller/gemini.go+++ b/internal/controller/gemini.go@@ -1,3 +1,17 @@+// 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.+package controllerimport (diff --git a/internal/controller/loop.go b/internal/controller/loop.goindex 61ffd70..c264c3a 100644--- a/internal/controller/loop.go+++ b/internal/controller/loop.go@@ -1,3 +1,17 @@+// 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.+package controllerimport (diff --git a/internal/controller/registry.go b/internal/controller/registry.goindex d001b76..61e0a5a 100644--- a/internal/controller/registry.go+++ b/internal/controller/registry.go@@ -1,3 +1,17 @@+// 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.+package controllerimport (diff --git a/internal/controller/session.go b/internal/controller/session.goindex 37b151a..89a828c 100644--- a/internal/controller/session.go+++ b/internal/controller/session.go@@ -1,3 +1,17 @@+// 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.+package controllerimport (diff --git a/internal/eventlog/eventlog.go b/internal/eventlog/eventlog.goindex 7259a89..f7a6386 100644--- a/internal/eventlog/eventlog.go+++ b/internal/eventlog/eventlog.go@@ -1,3 +1,17 @@+// 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.+// Package eventlog implements event logging for session durability.// Event log entries use JSON Lines format with one log file per session.package eventlogdiff --git a/internal/eventlog/file.go b/internal/eventlog/file.goindex c387f38..c005992 100644--- a/internal/eventlog/file.go+++ b/internal/eventlog/file.go@@ -1,3 +1,17 @@+// 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.+package eventlogimport (diff --git a/internal/server/server.go b/internal/server/server.goindex 8ecda2d..e3bb15b 100644--- a/internal/server/server.go+++ b/internal/server/server.go@@ -1,3 +1,17 @@+// 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.+// Package server implements the gRPC server for GARService,// exposing session management and agent registration APIs.package serverdiff --git a/proto/gar.proto b/proto/gar.protoindex 8fc1a59..ec57a0f 100644--- a/proto/gar.proto+++ b/proto/gar.proto@@ -1,3 +1,17 @@+// 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.+syntax = "proto3";package proto;diff --git a/python/example_agent.py b/python/example_agent.pyindex abb9da7..9f0282b 100644--- a/python/example_agent.py+++ b/python/example_agent.py@@ -1,3 +1,17 @@+# 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.+#!/usr/bin/env python3"""Example Python agent using the GAR framework.diff --git a/python/gar.py b/python/gar.pyindex 51b29d3..5db6e3e 100644--- a/python/gar.py+++ b/python/gar.py@@ -1,3 +1,17 @@+# 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.+"""GAR Agent Framework for Python