specialized

package
v1.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
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

type AIGatewayReconciler struct {
	client.Client

	Scheme          *runtime.Scheme
	DevelopmentMode bool
}

AIGatewayReconciler reconciles a AIGateway object

func (*AIGatewayReconciler) Reconcile

func (r *AIGatewayReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile reconciles the AIGateway resource.

func (*AIGatewayReconciler) SetupWithManager

func (r *AIGatewayReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL