Skip to content

armgit / ax

Public Imported from GitHub
0

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

Go

Add TODO about session lifetime

JBDd4a8d244256b
diff --git a/internal/controller/controller.go b/internal/controller/controller.go
index 9a2629c..7922512 100644
--- a/internal/controller/controller.go
+++ b/internal/controller/controller.go
@@ -75,6 +75,10 @@ func (d *Controller) TriggerSession(ctx context.Context, sessionID string, input
return fmt.Errorf("session_id is required")
}
+ // TODO(jbd): Don't allow a running session to accept
+ // new triggers. Also mark, a session as COMPLETED
+ // if it's no longer running.
+
// Check if session already exists
sess, err := d.sessionManager.GetSession(sessionID)
if err == nil && sess == nil {