Documentation ¶
Index ¶
Constants ¶
const ( // AIGatewayCleanupFinalizer is a finalizer which indicates that cleanup // needs to be processed for an AIGateway resource prior to garbage // collection. AIGatewayCleanupFinalizer AIGatewayFinalizer = "gateway-operator.konghq.com/aigateway-cleanup" // AIGatewayEgressServicePort defines a static Kubernetes endpoint port // that can be attached to all Services, HTTPRoutes, and other managed // resources in an AIGateway. AIGatewayEgressServicePort int = 80 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AICloudPromptDecoratorConfig ¶
type AICloudPromptDecoratorConfig struct {
Prompts *AICloudPromptDecoratorPrompts `json:"prompts,omitempty"`
}
AICloudPromptDecoratorConfig is a Golang-conversion of the 'AI Prompt Decorator' plugin configuration, from the AI family of Kong plugins.
type AICloudPromptDecoratorPrompts ¶
type AICloudPromptDecoratorPrompts struct { Prepend []v1alpha1.LLMPrompt `json:"prepend,omitempty"` Append []v1alpha1.LLMPrompt `json:"append,omitempty"` }
AICloudPromptDecoratorPrompts is a Golang-conversion of the 'Prompts' configuration for the AI family of Kong plugins.
type AICloudProviderAuthConfig ¶
type AICloudProviderAuthConfig struct { HeaderName *string `json:"header_name,omitempty"` HeaderValue *string `json:"header_value,omitempty"` }
AICloudProviderAuthConfig is a Golang-conversion of the 'Auth' configuration for the AI family of Kong plugins.
type AICloudProviderLLMConfig ¶
type AICloudProviderLLMConfig struct { RouteType *string `json:"route_type,omitempty"` Auth *AICloudProviderAuthConfig `json:"auth,omitempty"` Logging *AICloudProviderLoggingConfig `json:"logging,omitempty"` Model *AICloudProviderModelConfig `json:"model,omitempty"` }
AICloudProviderLLMConfig is a Golang-conversion of the 'LLM' configuration for the AI family of Kong plugins.
type AICloudProviderLoggingConfig ¶
type AICloudProviderLoggingConfig struct { LogStatistics bool `json:"log_statistics"` LogPayloads bool `json:"log_payloads"` }
AICloudProviderLoggingConfig is a Golang-conversion of the 'Logging' configuration for the AI family of Kong plugins.
type AICloudProviderModelConfig ¶
type AICloudProviderModelConfig struct { Provider *string `json:"provider,omitempty"` Name *string `json:"name,omitempty"` Options *AICloudProviderOptionsConfig `json:"options,omitempty"` }
AICloudProviderModelConfig is a Golang-conversion of the 'Model' configuration for the AI family of Kong plugins.
type AICloudProviderOptionsConfig ¶
type AICloudProviderOptionsConfig struct { MaxTokens *int `json:"max_tokens,omitempty"` Temperature *string `json:"temperature,omitempty"` }
AICloudProviderOptionsConfig is a Golang-conversion of the 'Options' configuration for the AI family of Kong plugins.
type AIGatewayFinalizer ¶
type AIGatewayFinalizer string
AIGatewayFinalizer defines finalizers added by gateway controller for AIGateway resources to ensure proper cleanup of owned resources.
type AIGatewayReconciler ¶
AIGatewayReconciler reconciles a AIGateway object
func (*AIGatewayReconciler) SetupWithManager ¶
SetupWithManager sets up the controller with the Manager.