Agent Executor (AX) is Google's open agentic orchestration runtime
Go
Use timestamp_pb2.Timestamp in the Python framework
JBDdc87f7ef9b2b
diff --git a/python/gar.py b/python/gar.pyindex 0ba6675..4c90fa6 100644--- a/python/gar.py+++ b/python/gar.py@@ -8,6 +8,7 @@ import grpcfrom concurrent import futuresimport timefrom typing import Callable, Iterator, Optional, Dict+from google.protobuf import timestamp_pb2class Agent:@@ -66,11 +67,12 @@ class Agent:else:# Default: send periodic heartbeatswhile context.is_active():+ timestamp = timestamp_pb2.Timestamp()+ timestamp.GetCurrentTime()event = pb2.LifecycleEvent(event_type="HEARTBEAT",agent_id=agent.agent_id,- timestamp=int(time.time() * 1000),- metadata={"status": "active"}+ timestamp=timestamp)yield eventtime.sleep(30)