Agent Executor (AX) is Google's open agentic orchestration runtime
Go
exec: validate config in runExec to match runServe (#300)
JoyceLiuaa6df173a12a
diff --git a/cmd/ax/exec.go b/cmd/ax/exec.goindex 014dea6..b1ea03b 100644--- a/cmd/ax/exec.go+++ b/cmd/ax/exec.go@@ -94,6 +94,10 @@ func runExec(cmd *cobra.Command, args []string) error {if err != nil {return err}+ // Validate configuration (matches `ax serve`).+ if err := cfg.Validate(); err != nil {+ return fmt.Errorf("invalid configuration: %w", err)+ }c, err := cliutil.NewControllerFromConfig(ctx, cfg)if err != nil {return fmt.Errorf("error creating controller: %w", err)