Public declaration syntax from forge-go/agent/loopcontrol.go Original source SHA-256: 1b368e1cd041be872b1dabd9c975479b046c8701180a3f683e52acc0ed8230af Function bodies and constant values are omitted. This is not the complete implementation. Source line 10 type StopCondition func(result *core.GenerateResult, step int) bool // MaxStepsCondition creates a StopCondition that stops after n steps. func MaxStepsCondition(n int) StopCondition Source line 13 func MaxStepsCondition(n int) StopCondition Source line 21 func MaxTokensCondition(maxTokens int64) StopCondition Source line 30 func NoToolCallsCondition() StopCondition Source line 38 func TextContainsCondition(substr string) StopCondition Source line 46 func AnyStopCondition(conditions ...StopCondition) StopCondition Source line 58 func AllStopConditions(conditions ...StopCondition) StopCondition