Skip to content

armgit / ax

Public Imported from GitHub
0

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

Go

Remove misleading metadata example

JBD13e43e99d5be
diff --git a/README.md b/README.md
index 704a579..c3265d0 100644
--- a/README.md
+++ b/README.md
@@ -263,7 +263,6 @@ lifecycleFunc := func(ctx context.Context, handler agent.LifecycleHandler) error
return handler(&proto.LifecycleEvent{
EventType: "PROGRESS",
Timestamp: timestamppb.Now(),
- Metadata: map[string]string{"status": "processing"},
})
}
diff --git a/examples/local_agent/main.go b/examples/local_agent/main.go
index b853456..631f3ca 100644
--- a/examples/local_agent/main.go
+++ b/examples/local_agent/main.go
@@ -101,9 +101,6 @@ func createEchoAgent(id string) (*agent.LocalAgent, error) {
if err := handler(&proto.LifecycleEvent{
EventType: "PROGRESS",
Timestamp: timestamppb.Now(),
- Metadata: map[string]string{
- "status": "started",
- },
}); err != nil {
return err
}
@@ -118,9 +115,6 @@ func createEchoAgent(id string) (*agent.LocalAgent, error) {
if err := handler(&proto.LifecycleEvent{
EventType: "PROGRESS",
Timestamp: timestamppb.Now(),
- Metadata: map[string]string{
- "status": "processing",
- },
}); err != nil {
return err
}
diff --git a/examples/remote_agent/main.go b/examples/remote_agent/main.go
index 0e8c129..61ecb68 100644
--- a/examples/remote_agent/main.go
+++ b/examples/remote_agent/main.go
@@ -75,9 +75,6 @@ func (s *server) StreamLifecycle(stream proto.AgentService_StreamLifecycleServer
if err := stream.Send(&proto.LifecycleEvent{
EventType: "PROGRESS",
Timestamp: timestamppb.Now(),
- Metadata: map[string]string{
- "status": "started",
- },
}); err != nil {
return err
}
@@ -92,9 +89,6 @@ func (s *server) StreamLifecycle(stream proto.AgentService_StreamLifecycleServer
event := &proto.LifecycleEvent{
EventType: "PROGRESS",
Timestamp: timestamppb.Now(),
- Metadata: map[string]string{
- "status": "healthy",
- },
}
if err := stream.Send(event); err != nil {