Agent Executor (AX) is Google's open agentic orchestration runtime
Go
Use any instead of interface{}
JBD79d050472d20
diff --git a/internal/controller/session.go b/internal/controller/session.goindex 16bc7ed..6721aa1 100644--- a/internal/controller/session.go+++ b/internal/controller/session.go@@ -274,8 +274,8 @@ func (s *Session) AdvanceStep() {s.UpdatedAt = time.Now()}-// Helper function to extract string from map[string]interface{}-func getStringFromData(data map[string]interface{}, key string) string {+// Helper function to extract string from map[string]any+func getStringFromData(data map[string]any, key string) string {if val, ok := data[key]; ok {if str, ok := val.(string); ok {return strdiff --git a/internal/eventlog/eventlog.go b/internal/eventlog/eventlog.goindex cb82147..3360a79 100644--- a/internal/eventlog/eventlog.go+++ b/internal/eventlog/eventlog.go@@ -20,12 +20,12 @@ const (// Entry represents a single entry in the event log.type Entry struct {- SessionID string `json:"session_id"`- Timestamp time.Time `json:"timestamp"`- Sequence int64 `json:"seq"` // Monotonic sequence number- Type EventType `json:"type"`- CheckpointID string `json:"checkpoint_id,omitempty"` // UUID for checkpoint tracking- Data map[string]interface{} `json:"data"`+ SessionID string `json:"session_id"`+ Timestamp time.Time `json:"timestamp"`+ Sequence int64 `json:"seq"` // Monotonic sequence number+ Type EventType `json:"type"`+ CheckpointID string `json:"checkpoint_id,omitempty"` // UUID for checkpoint tracking+ Data map[string]any `json:"data"`}// EventLog is the interface that all event log implementations must satisfy.diff --git a/internal/eventlog/file.go b/internal/eventlog/file.goindex 1228aa8..c387f38 100644--- a/internal/eventlog/file.go+++ b/internal/eventlog/file.go@@ -91,7 +91,7 @@ func NewFileConfig(config FileConfig) (EventLog, error) {// Append writes an entry to the event log.// Entries are written in JSON Lines format with atomic appends.-func (e *FileEventLog) Append(entryType EventType, checkpointID string, data map[string]interface{}) error {+func (e *FileEventLog) Append(entryType EventType, checkpointID string, data map[string]any) error {e.mu.Lock()defer e.mu.Unlock()@@ -130,7 +130,7 @@ func (e *FileEventLog) Append(entryType EventType, checkpointID string, data map// AppendContent writes a content message to the event log with a checkpoint UUID.func (e *FileEventLog) AppendContent(ctx context.Context, direction EventType, checkpointID string, content *proto.Content) error {- data := map[string]interface{}{+ data := map[string]any{"role": content.Role,"type": content.Type,"mimetype": content.Mimetype,