package
0.0.0-20250208023750-2ddeb7052770
Repository: https://github.com/envoyproxy/ai-gateway.git
Documentation: pkg.go.dev
# Packages
Package x is an experimental package that provides the customizability of the AI Gateway filter.
# Functions
UnmarshalConfigYaml reads the file at the given path and unmarshals it into a Config struct.
# Constants
No description provided by the author
No description provided by the author
DefaultConfig is the default configuration that can be used as a fallback when the configuration is not explicitly provided.
LLMRequestCostTypeCELExpression specifies that the request cost is calculated from the CEL expression.
LLMRequestCostTypeInputToken specifies that the request cost is calculated from the input token.
LLMRequestCostTypeOutputToken specifies that the request cost is calculated from the output token.
LLMRequestCostTypeTotalToken specifies that the request cost is calculated from the total token.
# Structs
APIKeyAuth defines the file that will be mounted to the external proc.
AWSAuth defines the credentials needed to access AWS.
Backend corresponds to AIGatewayRouteRuleBackendRef in api/v1alpha1/api.go besides that this abstracts the concept of a backend at Envoy Gateway level to a simple name.
BackendAuth corresponds partially to BackendSecurityPolicy in api/v1alpha1/api.go.
Config is the configuration schema for the filter.
LLMRequestCost specifies "where" the request cost is stored in the filter metadata as well as "how" the cost is calculated.
RouteRule corresponds to AIGatewayRoute in api/v1alpha1/api.go besides the `Backends` field is modified to abstract the concept of a backend at Envoy Gateway level to a simple name.
VersionedAPISchema corresponds to VersionedAPISchema in api/v1alpha1/api.go.
# Type aliases
APISchemaName corresponds to APISchemaName in api/v1alpha1/api.go.
HeaderMatch is an alias for HTTPHeaderMatch of the Gateway API.
LLMRequestCostType specifies the kind of the request cost calculation.