Agent Executor (AX) is Google's open agentic orchestration runtime
Go
// 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 store
import (
"context"
"errors"
"io"
"github.com/google/ax/pkg/apis/v1alpha1"
)
var (
ErrNotFound = errors.New("resource not found")
)
// Store defines the storage interface for AX resources.
type Store interface {
SaveTask(ctx context.Context, task *v1alpha1.Task) error
GetTask(ctx context.Context, atespace, name string) (*v1alpha1.Task, error)
ListTasks(ctx context.Context, atespace string, limit, offset int64) ([]*v1alpha1.Task, error)
UpdateTaskStatus(ctx context.Context, atespace, name string, status *v1alpha1.TaskStatus) error
DeleteTask(ctx context.Context, atespace, name string) error
SaveWorkspace(ctx context.Context, ws *v1alpha1.Workspace) error
GetWorkspace(ctx context.Context, atespace, name string) (*v1alpha1.Workspace, error)
ListWorkspaces(ctx context.Context, atespace string) ([]*v1alpha1.Workspace, error)
DeleteWorkspace(ctx context.Context, atespace, name string) error
SaveModel(ctx context.Context, model *v1alpha1.Model) error
GetModel(ctx context.Context, atespace, name string) (*v1alpha1.Model, error)
ListModels(ctx context.Context, atespace string) ([]*v1alpha1.Model, error)
DeleteModel(ctx context.Context, atespace, name string) error
WatchTask(ctx context.Context, atespace, name string) (<-chan *v1alpha1.Task, io.Closer, error)
Close() error
}