Skip to content

armgit / ax

Public Imported from GitHub
0

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

Go

Avoid duplicates of inputs in resumption (#108)

Jaana Dogan863ae4abf29d
diff --git a/Makefile b/Makefile
index 0b0407f..09be02c 100644
--- a/Makefile
+++ b/Makefile
@@ -21,6 +21,13 @@ proto:
proto/ax.proto
@echo "Protobuf generation complete!"
+ @echo "Generating testagent protobuf code..."
+ @export PATH=$$PATH:$$(go env GOPATH)/bin && \
+ protoc --go_out=. --go_opt=paths=source_relative \
+ --go-grpc_out=. --go-grpc_opt=paths=source_relative \
+ internal/testagent/proto/testagent.proto
+ @echo "Protobuf generation complete!"
+
# Run tests
test:
@echo "Running tests..."
diff --git a/agent/agent.go b/agent/agent.go
index 60d363e..c7ea89d 100644
--- a/agent/agent.go
+++ b/agent/agent.go
@@ -28,11 +28,10 @@ import (
type OutputHandler func(outgoing *proto.ProcessResponse) error
type Task struct {
- ID string
- AgentID string
- Inputs []*proto.Content
- Rehydrate bool
- Config *anypb.Any // agent implementation specific configuration
+ ID string
+ AgentID string
+ Inputs []*proto.Content
+ Config *anypb.Any // agent implementation specific configuration
}
type TaskExecutor interface {
diff --git a/internal/controller/controller.go b/internal/controller/controller.go
index 5d1d88b..6e17862 100644
--- a/internal/controller/controller.go
+++ b/internal/controller/controller.go
@@ -111,11 +111,7 @@ func (d *Controller) Exec(ctx context.Context, id string, agentID string, agentC
return err
}
o := func(resp *proto.ProcessResponse) error {
- // Always filter out from_cache results.
- if !resp.FromCache {
- return handler(resp)
- }
- return nil
+ return handler(resp)
}
// For testing only! Remove this once the project is stable.
diff --git a/internal/controller/task/task.go b/internal/controller/task/task.go
index 0057876..4dd6783 100644
--- a/internal/controller/task/task.go
+++ b/internal/controller/task/task.go
@@ -59,12 +59,6 @@ func (tm *taskExecutor) Exec(ctx context.Context, t *agent.Task, o agent.OutputH
}
if state == proto.State_STATE_COMPLETED {
- if t.Rehydrate {
- return o(&proto.ProcessResponse{
- Contents: allInputs,
- FromCache: true,
- })
- }
return nil
}
return tm.exec(ctx, t, tm.eventLog, a, allInputs, o)
@@ -105,6 +99,7 @@ func (tm *taskExecutor) exec(
ID: t.ID,
AgentID: t.AgentID,
Inputs: allInputs,
+ Config: t.Config,
}, child, outputBuffer); err != nil {
_ = logFailed(ctx, el, t) // Attempt to log failure, but prioritize returning the original error.
return err
diff --git a/internal/testagent/agent.go b/internal/testagent/agent.go
index 032652d..3a2c0a6 100644
--- a/internal/testagent/agent.go
+++ b/internal/testagent/agent.go
@@ -10,8 +10,10 @@ import (
"github.com/google/ax/agent"
"github.com/google/ax/internal/historyutil"
+ testagentpb "github.com/google/ax/internal/testagent/proto"
"github.com/google/ax/proto"
"github.com/google/uuid"
+ "google.golang.org/protobuf/types/known/anypb"
)
func Agents() map[string]agent.Agent {
@@ -28,85 +30,86 @@ type CodingAgent struct{}
// Process handles processing of input content with callback handler.
func (a *CodingAgent) Process(ctx context.Context, t *agent.Task, e agent.TaskExecutor, o agent.OutputHandler) error {
exec := NewExecutor(e, o)
+
+ var history []*proto.Content
{
- exec.Append(&proto.Content{
- Role: "user",
- Content: &proto.Content_Text{
- Text: &proto.TextContent{
- Text: "Generate Cloud Run Python server code. Only show Python code, the output should be deployable as a server. We will deploy it to Kubernetes.",
+ inputs := []*proto.Content{
+ {
+ Role: "user",
+ Content: &proto.Content_Text{
+ Text: &proto.TextContent{
+ Text: "Generate Cloud Run Python server code. Only show Python code, the output should be deployable as a server. We will deploy it to Kubernetes.",
+ },
},
},
- })
- exec.Append(t.Inputs...)
- outputs, err := exec.Exec(ctx, &Execution{
- TaskID: "code",
+ }
+ inputs = append(inputs, t.Inputs...)
+ outputs, err := exec.Exec(ctx, &agent.Task{
+ ID: "code",
AgentID: "gemini",
- Inputs: exec.History(),
+ Inputs: inputs,
})
if err != nil {
return err
}
- exec.Append(outputs...)
+ history = append(inputs, outputs...)
}
{
- outputs, err := exec.Exec(ctx, &Execution{
- TaskID: "docker",
+ outputs, err := exec.Exec(ctx, &agent.Task{
+ ID: "docker",
AgentID: "docker-build",
- Inputs: exec.History(),
+ Inputs: history,
})
if err != nil {
return err
}
- exec.Append(outputs...)
+ history = append(history, outputs...)
}
{
- exec.Append(&proto.Content{
- Role: "user",
- Content: &proto.Content_Text{
- Text: &proto.TextContent{
- Text: "Deploy to us-central1.",
- },
- },
+ config, err := anypb.New(&testagentpb.KubernetesDeployAgentConfig{
+ Regions: []string{"us-central1"},
})
- exec.Append(t.Inputs...)
- outputs, err := exec.Exec(ctx, &Execution{
- TaskID: "deploy",
+ if err != nil {
+ return err
+ }
+ outputs, err := exec.Exec(ctx, &agent.Task{
+ ID: "deploy",
AgentID: "kubernetes-deploy",
- Inputs: exec.History(),
+ Inputs: history,
+ Config: config,
})
if err != nil {
return err
}
- exec.Append(outputs...)
+ history = append(history, outputs...)
// User may need to take control back to confirm
// or after decline.
- if historyutil.WaitsForUser(exec.History()) {
+ if historyutil.WaitsForUser(history) {
return nil
}
}
{
- exec.Append(&proto.Content{
- Role: "user",
- Content: &proto.Content_Text{
- Text: &proto.TextContent{
- Text: "Can you deploy it other regions, avoiding the us-central1?",
- },
- },
+ config, err := anypb.New(&testagentpb.KubernetesDeployAgentConfig{
+ Regions: []string{"europe-north1", "asia-east1", "us-west2"},
})
- exec.Append(t.Inputs...)
- outputs, err := exec.Exec(ctx, &Execution{
- TaskID: "deploy-more",
+ if err != nil {
+ return err
+ }
+ outputs, err := exec.Exec(ctx, &agent.Task{
+ ID: "deploy-more",
AgentID: "kubernetes-deploy",
- Inputs: exec.History(),
+ Inputs: history,
+ Config: config,
})
if err != nil {
return err
}
- exec.Append(outputs...)
- if historyutil.WaitsForUser(exec.History()) {
+
+ history = append(history, outputs...)
+ if historyutil.WaitsForUser(history) {
return nil
}
}
@@ -125,7 +128,7 @@ func (a *CodingAgent) Process(ctx context.Context, t *agent.Task, e agent.TaskEx
}
{
- exec.Append(&proto.Content{
+ history = append(history, &proto.Content{
Role: "user",
Content: &proto.Content_Text{
Text: &proto.TextContent{
@@ -133,16 +136,15 @@ func (a *CodingAgent) Process(ctx context.Context, t *agent.Task, e agent.TaskEx
},
},
})
- _, err := exec.Exec(ctx, &Execution{
- TaskID: "summarize",
+ _, err := exec.Exec(ctx, &agent.Task{
+ ID: "summarize",
AgentID: "gemini",
- Inputs: exec.History(),
+ Inputs: history,
})
if err != nil {
return err
}
}
-
return nil
}
@@ -185,8 +187,8 @@ func (a *KubernetesDeployAgent) Process(ctx context.Context, t *agent.Task, e ag
for _, region := range regions {
if region != "us-central1" {
- _, err := exec.Exec(ctx, &Execution{
- TaskID: "mirror-" + region,
+ _, err := exec.Exec(ctx, &agent.Task{
+ ID: "mirror-" + region,
AgentID: "docker-mirror",
Inputs: []*proto.Content{
{
@@ -246,43 +248,26 @@ func (a *KubernetesDeployAgent) Process(ctx context.Context, t *agent.Task, e ag
return nil
}
- var regions []string = []string{"europe-north1", "asia-east1", "us-west2"}
- {
- inputs := t.Inputs
- inputs = append(inputs, &proto.Content{
- Role: "user",
- Content: &proto.Content_Text{
- Text: &proto.TextContent{
- Text: "Return comma separated regions, no other text. If instructed to use a region already, just return it. Otherwise, return europe-north1,asia-east1,us-west2",
- },
- },
- })
- var outputs []*proto.Content
- if err := e.Exec(ctx, &agent.Task{
- ID: "region-picker",
- AgentID: "gemini",
- Inputs: inputs,
- }, func(resp *proto.ProcessResponse) error {
- outputs = append(outputs, resp.Contents...)
- return nil
- }); err != nil {
- return err
- }
-
- last := outputs[len(outputs)-1]
- text := last.GetContent().(*proto.Content_Text).Text.GetText()
- regions = strings.Split(text, ",")
+ if t.Config == nil {
+ return fmt.Errorf("no config for id=%v", t.ID)
+ }
+ var config testagentpb.KubernetesDeployAgentConfig
+ if err := t.Config.UnmarshalTo(&config); err != nil {
+ return err
+ }
+ if len(config.Regions) == 0 {
+ return fmt.Errorf("no regions specified")
}
confID := uuid.NewString()
- pendingRegions[confID] = regions
+ pendingRegions[confID] = config.Regions
return o(&proto.ProcessResponse{
Contents: []*proto.Content{{
Role: "assistant",
Content: &proto.Content_Confirmation{
Confirmation: &proto.ConfirmationContent{
Id: confID,
- Question: fmt.Sprintf("Picked %v region(s) to deploy, continue?", strings.Join(regions, ",")),
+ Question: fmt.Sprintf("Picked %v region(s) to deploy, continue?", strings.Join(config.Regions, ",")),
},
},
}},
@@ -301,7 +286,6 @@ func (a *KubernetesDeployAgent) Close() error {
type Executor struct {
exec agent.TaskExecutor
handler agent.OutputHandler
- history []*proto.Content
}
func NewExecutor(e agent.TaskExecutor, o agent.OutputHandler) *Executor {
@@ -311,27 +295,16 @@ func NewExecutor(e agent.TaskExecutor, o agent.OutputHandler) *Executor {
}
}
-type Execution struct {
- TaskID string
- AgentID string
- Inputs []*proto.Content
-}
-
-func (e *Executor) Exec(ctx context.Context, execution *Execution) ([]*proto.Content, error) {
+func (e *Executor) Exec(ctx context.Context, t *agent.Task) ([]*proto.Content, error) {
var outputs []*proto.Content
- if execution.TaskID == "" {
+ if t.ID == "" {
var err error
- execution.TaskID, err = randomHex(8)
+ t.ID, err = randomHex(8)
if err != nil {
return nil, err
}
}
-
- if err := e.exec.Exec(ctx, &agent.Task{
- ID: execution.TaskID,
- AgentID: execution.AgentID,
- Inputs: execution.Inputs,
- }, func(resp *proto.ProcessResponse) error {
+ if err := e.exec.Exec(ctx, t, func(resp *proto.ProcessResponse) error {
outputs = append(outputs, resp.Contents...)
return e.handler(resp)
}); err != nil {
@@ -340,14 +313,6 @@ func (e *Executor) Exec(ctx context.Context, execution *Execution) ([]*proto.Con
return outputs, nil
}
-func (e *Executor) Append(c ...*proto.Content) {
- e.history = append(e.history, c...)
-}
-
-func (e *Executor) History() []*proto.Content {
- return e.history
-}
-
func randomHex(n int) (string, error) {
bytes := make([]byte, n/2)
if _, err := rand.Read(bytes); err != nil {
diff --git a/internal/testagent/proto/testagent.pb.go b/internal/testagent/proto/testagent.pb.go
new file mode 100644
index 0000000..e3711ff
--- /dev/null
+++ b/internal/testagent/proto/testagent.pb.go
@@ -0,0 +1,145 @@
+// 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.
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.35.1
+// protoc v5.28.2
+// source: internal/testagent/proto/testagent.proto
+
+package proto
+
+import (
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ reflect "reflect"
+ sync "sync"
+)
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+type KubernetesDeployAgentConfig struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Regions []string `protobuf:"bytes,1,rep,name=regions,proto3" json:"regions,omitempty"`
+}
+
+func (x *KubernetesDeployAgentConfig) Reset() {
+ *x = KubernetesDeployAgentConfig{}
+ mi := &file_internal_testagent_proto_testagent_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+}
+
+func (x *KubernetesDeployAgentConfig) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*KubernetesDeployAgentConfig) ProtoMessage() {}
+
+func (x *KubernetesDeployAgentConfig) ProtoReflect() protoreflect.Message {
+ mi := &file_internal_testagent_proto_testagent_proto_msgTypes[0]
+ if x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use KubernetesDeployAgentConfig.ProtoReflect.Descriptor instead.
+func (*KubernetesDeployAgentConfig) Descriptor() ([]byte, []int) {
+ return file_internal_testagent_proto_testagent_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *KubernetesDeployAgentConfig) GetRegions() []string {
+ if x != nil {
+ return x.Regions
+ }
+ return nil
+}
+
+var File_internal_testagent_proto_testagent_proto protoreflect.FileDescriptor
+
+var file_internal_testagent_proto_testagent_proto_rawDesc = []byte{
+ 0x0a, 0x28, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x61,
+ 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x61,
+ 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x70, 0x72, 0x6f, 0x74,
+ 0x6f, 0x22, 0x37, 0x0a, 0x1b, 0x4b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x44,
+ 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
+ 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,
+ 0x09, 0x52, 0x07, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x2f, 0x5a, 0x2d, 0x67, 0x69,
+ 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
+ 0x61, 0x78, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74,
+ 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f,
+ 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_internal_testagent_proto_testagent_proto_rawDescOnce sync.Once
+ file_internal_testagent_proto_testagent_proto_rawDescData = file_internal_testagent_proto_testagent_proto_rawDesc
+)
+
+func file_internal_testagent_proto_testagent_proto_rawDescGZIP() []byte {
+ file_internal_testagent_proto_testagent_proto_rawDescOnce.Do(func() {
+ file_internal_testagent_proto_testagent_proto_rawDescData = protoimpl.X.CompressGZIP(file_internal_testagent_proto_testagent_proto_rawDescData)
+ })
+ return file_internal_testagent_proto_testagent_proto_rawDescData
+}
+
+var file_internal_testagent_proto_testagent_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
+var file_internal_testagent_proto_testagent_proto_goTypes = []any{
+ (*KubernetesDeployAgentConfig)(nil), // 0: proto.KubernetesDeployAgentConfig
+}
+var file_internal_testagent_proto_testagent_proto_depIdxs = []int32{
+ 0, // [0:0] is the sub-list for method output_type
+ 0, // [0:0] is the sub-list for method input_type
+ 0, // [0:0] is the sub-list for extension type_name
+ 0, // [0:0] is the sub-list for extension extendee
+ 0, // [0:0] is the sub-list for field type_name
+}
+
+func init() { file_internal_testagent_proto_testagent_proto_init() }
+func file_internal_testagent_proto_testagent_proto_init() {
+ if File_internal_testagent_proto_testagent_proto != nil {
+ return
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_internal_testagent_proto_testagent_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 1,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_internal_testagent_proto_testagent_proto_goTypes,
+ DependencyIndexes: file_internal_testagent_proto_testagent_proto_depIdxs,
+ MessageInfos: file_internal_testagent_proto_testagent_proto_msgTypes,
+ }.Build()
+ File_internal_testagent_proto_testagent_proto = out.File
+ file_internal_testagent_proto_testagent_proto_rawDesc = nil
+ file_internal_testagent_proto_testagent_proto_goTypes = nil
+ file_internal_testagent_proto_testagent_proto_depIdxs = nil
+}
diff --git a/internal/testagent/proto/testagent.proto b/internal/testagent/proto/testagent.proto
new file mode 100644
index 0000000..3266e8b
--- /dev/null
+++ b/internal/testagent/proto/testagent.proto
@@ -0,0 +1,23 @@
+// 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;
+
+option go_package = "github.com/google/ax/internal/testagent/proto";
+
+message KubernetesDeployAgentConfig {
+ repeated string regions = 1;
+}
\ No newline at end of file
diff --git a/proto/ax.pb.go b/proto/ax.pb.go
index e34f117..3847291 100644
--- a/proto/ax.pb.go
+++ b/proto/ax.pb.go
@@ -145,7 +145,6 @@ type ProcessResponse struct {
CheckpointId string `protobuf:"bytes,1,opt,name=checkpoint_id,json=checkpointId,proto3" json:"checkpoint_id,omitempty"`
Contents []*Content `protobuf:"bytes,2,rep,name=contents,proto3" json:"contents,omitempty"`
- FromCache bool `protobuf:"varint,3,opt,name=from_cache,json=fromCache,proto3" json:"from_cache,omitempty"`
}
func (x *ProcessResponse) Reset() {
@@ -192,13 +191,6 @@ func (x *ProcessResponse) GetContents() []*Content {
return nil
}
-func (x *ProcessResponse) GetFromCache() bool {
- if x != nil {
- return x.FromCache
- }
- return false
-}
-
// TextContent represents a text content.
type TextContent struct {
state protoimpl.MessageState
@@ -1279,15 +1271,13 @@ var file_proto_ax_proto_rawDesc = []byte{
0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x18,
0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6f,
0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x22,
- 0x81, 0x01, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
- 0x6e, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e,
- 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x68, 0x65, 0x63,
- 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74,
- 0x65, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x72, 0x6f,
- 0x74, 0x6f, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74,
- 0x65, 0x6e, 0x74, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x63, 0x61, 0x63,
- 0x68, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x66, 0x72, 0x6f, 0x6d, 0x43, 0x61,
- 0x63, 0x68, 0x65, 0x22, 0x33, 0x0a, 0x0b, 0x54, 0x65, 0x78, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x65,
+ 0x62, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
+ 0x73, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74,
+ 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x68, 0x65, 0x63, 0x6b,
+ 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65,
+ 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x72, 0x6f, 0x74,
+ 0x6f, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65,
+ 0x6e, 0x74, 0x73, 0x22, 0x33, 0x0a, 0x0b, 0x54, 0x65, 0x78, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x65,
0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x4a, 0x04, 0x08, 0x02,
0x10, 0x03, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x2e, 0x0a, 0x10, 0x41, 0x70, 0x70, 0x72,
diff --git a/proto/ax.proto b/proto/ax.proto
index 080b0ce..2be0fe3 100644
--- a/proto/ax.proto
+++ b/proto/ax.proto
@@ -32,7 +32,6 @@ message ProcessRequest {
message ProcessResponse {
string checkpoint_id = 1;
repeated Content contents = 2;
- bool from_cache = 3;
}
// TextContent represents a text content.