Skip to content

armgit / ax

Public Imported from GitHub
0

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

Go

Reduce max steps to 5 (#34)

Jaana Dogan9f43869d62bf
diff --git a/README.md b/README.md
index c55c75c..97cf3cc 100644
--- a/README.md
+++ b/README.md
@@ -188,7 +188,7 @@ eventlog:
dir: "eventlog"
# Maximum steps per trigger
-max_steps: 50
+max_steps: 5
health_check:
# Health check interval for agents
diff --git a/gar.yaml b/gar.yaml
index b8a2ee7..c93446f 100644
--- a/gar.yaml
+++ b/gar.yaml
@@ -23,7 +23,7 @@ eventlog:
dir: "eventlog"
# Maximum number of steps per trigger
-max_steps: 50
+max_steps: 5
health_check:
# Whether to enable active health checking
diff --git a/internal/config/config.go b/internal/config/config.go
index d9c618b..aa25da0 100644
--- a/internal/config/config.go
+++ b/internal/config/config.go
@@ -120,7 +120,7 @@ func (c *Config) setDefaults() {
// Controller defaults
if c.MaxSteps == 0 {
- c.MaxSteps = 100
+ c.MaxSteps = 5
}
// HealthCheck defaults
if c.HealthCheck.Enabled && c.HealthCheck.Interval == 0 {
diff --git a/internal/controller/controller.go b/internal/controller/controller.go
index 46686fa..1ce132d 100644
--- a/internal/controller/controller.go
+++ b/internal/controller/controller.go
@@ -52,7 +52,7 @@ type Config struct {
// New creates a new controller instance.
func New(ctx context.Context, config Config) (*Controller, error) {
if config.MaxSteps == 0 {
- config.MaxSteps = 100
+ config.MaxSteps = 5
}
if config.EventLogBuilder == nil {