Skip to main content
The Go SDK and docs are currently in beta. Report issues on GitHub.

Example Usage

import (
	"github.com/OpenRouterTeam/go-sdk/models/components"
)

value := components.ErrorCodeInvalidToolInput

// Open enum: custom values can be created with a direct type cast
custom := components.ErrorCode("custom_value")

Values

NameValue
ErrorCodeInvalidToolInputinvalid_tool_input
ErrorCodeUnavailableunavailable
ErrorCodeMaxUsesExceededmax_uses_exceeded
ErrorCodeTooManyRequeststoo_many_requests
ErrorCodeQueryTooLongquery_too_long