multica-ai/multica · error

must be between %d and %d

Error message

must be between %d and %d

What it means

Error "must be between %d and %d" thrown in multica-ai/multica.

Source

Thrown at server/internal/agentconfig/concurrency.go:17

package agentconfig

import "fmt"

const (
	DefaultMaxConcurrentTasks int32 = 6
	MinMaxConcurrentTasks     int32 = 1
	MaxMaxConcurrentTasks     int32 = 50
)

func IsValidMaxConcurrentTasks(value int32) bool {
	return value >= MinMaxConcurrentTasks && value <= MaxMaxConcurrentTasks
}

func ValidateMaxConcurrentTasks(value int32) error {
	if !IsValidMaxConcurrentTasks(value) {
		return fmt.Errorf(
			"must be between %d and %d",
			MinMaxConcurrentTasks,
			MaxMaxConcurrentTasks,
		)
	}
	return nil
}

View on GitHub (pinned to 2c0912b6ec)

Solutions

  1. Set the concurrency value within the allowed range shown in the message.

When it happens

Trigger: Thrown at server/internal/agentconfig/concurrency.go:17 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of multica-ai/multica@2c0912b6ec (2026-08-15). Data as JSON: /api/errors/6287c7615ce78927. Report an issue: GitHub.