Skip to content

armgit / ax

Public Imported from GitHub
0

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

Go

Don't generate new session_id in the controller

JBD29f29f3b8126
diff --git a/internal/controller/controller.go b/internal/controller/controller.go
index 7f22e80..c9e3344 100644
--- a/internal/controller/controller.go
+++ b/internal/controller/controller.go
@@ -8,7 +8,6 @@ import (
"time"
"github.com/google/gar/proto"
- "github.com/google/uuid"
)
// Controller is the main controller that coordinates all components.
@@ -70,7 +69,7 @@ func New(ctx context.Context, config Config) (*Controller, error) {
func (d *Controller) TriggerSession(ctx context.Context, sessionID string, inputs []*proto.Content, checkpointID string) error {
// Generate UUID if no session ID provided
if sessionID == "" {
- sessionID = uuid.New().String()
+ return fmt.Errorf("session_id is required")
}
// Check if session already exists