translator

package
v0.0.0-...-78ab524 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentOutputs

type AgentOutputs struct {
	Manifest []client.Object `json:"manifest,omitempty"`

	Config    *adk.AgentConfig `json:"config,omitempty"`
	AgentCard a2a.AgentCard    `json:"agentCard"`
}

type MCPTranslatorPlugin

type MCPTranslatorPlugin func(
	ctx context.Context,
	server *v1alpha1.MCPServer,
	objects []client.Object,
) ([]client.Object, error)

type TranslatorPlugin

type TranslatorPlugin interface {
	ProcessAgent(ctx context.Context, agent v1alpha2.AgentObject, outputs *AgentOutputs) error
	GetOwnedResourceTypes() []client.Object
}

TranslatorPlugin is the manifest-phase plugin: it runs after the workload objects are built (the config Secret has already been serialized and its hash baked into the pod template), so it may mutate or append to outputs.Manifest but must not expect config edits to affect the config-hash.

Jump to

Keyboard shortcuts

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