Documentation
¶
Index ¶
- Constants
- Variables
- func ConvertMCPServerToRemoteMCPServer(mcpServer *v1alpha1.MCPServer) (*v1alpha2.RemoteMCPServerSpec, error)
- func ConvertServiceToRemoteMCPServer(svc *corev1.Service) (*v1alpha2.RemoteMCPServerSpec, error)
- type AdkApiTranslator
- type AgentOutputs
- type ImageConfig
- type TranslatorPlugin
Constants ¶
View Source
const ( MCPServiceLabel = "kagent.dev/mcp-service" MCPServicePathAnnotation = "kagent.dev/mcp-service-path" MCPServicePortAnnotation = "kagent.dev/mcp-service-port" MCPServiceProtocolAnnotation = "kagent.dev/mcp-service-protocol" MCPServicePathDefault = "/mcp" MCPServiceProtocolDefault = v1alpha2.RemoteMCPServerProtocolStreamableHttp )
View Source
const MAX_DEPTH = 10
Variables ¶
View Source
var DefaultImageConfig = ImageConfig{ Registry: "cr.kagent.dev", Tag: version.Get().Version, PullPolicy: string(corev1.PullIfNotPresent), PullSecret: "", Repository: "kagent-dev/kagent/app", }
Functions ¶
func ConvertMCPServerToRemoteMCPServer ¶
func ConvertMCPServerToRemoteMCPServer(mcpServer *v1alpha1.MCPServer) (*v1alpha2.RemoteMCPServerSpec, error)
func ConvertServiceToRemoteMCPServer ¶
func ConvertServiceToRemoteMCPServer(svc *corev1.Service) (*v1alpha2.RemoteMCPServerSpec, error)
Types ¶
type AdkApiTranslator ¶
type AdkApiTranslator interface { TranslateAgent( ctx context.Context, agent *v1alpha2.Agent, ) (*AgentOutputs, error) GetOwnedResourceTypes() []client.Object }
func NewAdkApiTranslator ¶
func NewAdkApiTranslator(kube client.Client, defaultModelConfig types.NamespacedName, plugins []TranslatorPlugin) AdkApiTranslator
type AgentOutputs ¶
type AgentOutputs = translator.AgentOutputs
TODO(ilackarms): migrate this whole package to pkg/translator
type ImageConfig ¶
type TranslatorPlugin ¶
type TranslatorPlugin = translator.TranslatorPlugin
Click to show internal directories.
Click to hide internal directories.