v1alpha1

package
v0.0.0-...-b4d5991 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the agent v1alpha1 API group. +kubebuilder:object:generate=true +groupName=kagent.dev

Index

Constants

View Source
const (
	AgentConditionTypeAccepted = "Accepted"
)
View Source
const (
	MemoryConditionTypeAccepted = "Accepted"
)
View Source
const (
	ModelConfigConditionTypeAccepted = "Accepted"
)
View Source
const (
	TeamConditionTypeAccepted = "Accepted"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects.
	GroupVersion = schema.GroupVersion{Group: "kagent.dev", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme.
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type A2AConfig

type A2AConfig struct {
	// +kubebuilder:validation:MinItems=1
	Skills []AgentSkill `json:"skills,omitempty"`
}

func (*A2AConfig) DeepCopy

func (in *A2AConfig) DeepCopy() *A2AConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new A2AConfig.

func (*A2AConfig) DeepCopyInto

func (in *A2AConfig) DeepCopyInto(out *A2AConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Agent

type Agent struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   AgentSpec   `json:"spec,omitempty"`
	Status AgentStatus `json:"status,omitempty"`
}

Agent is the Schema for the agents API.

func (*Agent) DeepCopy

func (in *Agent) DeepCopy() *Agent

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Agent.

func (*Agent) DeepCopyInto

func (in *Agent) DeepCopyInto(out *Agent)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Agent) DeepCopyObject

func (in *Agent) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Agent) GetModelConfigName

func (a *Agent) GetModelConfigName() string

type AgentList

type AgentList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Agent `json:"items"`
}

AgentList contains a list of Agent.

func (*AgentList) DeepCopy

func (in *AgentList) DeepCopy() *AgentList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentList.

func (*AgentList) DeepCopyInto

func (in *AgentList) DeepCopyInto(out *AgentList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AgentList) DeepCopyObject

func (in *AgentList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type AgentSkill

type AgentSkill server.AgentSkill

func (*AgentSkill) DeepCopy

func (in *AgentSkill) DeepCopy() *AgentSkill

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentSkill.

func (*AgentSkill) DeepCopyInto

func (in *AgentSkill) DeepCopyInto(out *AgentSkill)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AgentSpec

type AgentSpec struct {
	Description string `json:"description,omitempty"`
	// +kubebuilder:validation:MinLength=1
	SystemMessage string `json:"systemMessage,omitempty"`
	// Can either be a reference to the name of a ModelConfig in the same namespace as the referencing Agent, or a reference to the name of a ModelConfig in a different namespace in the form <namespace>/<name>
	// +optional
	ModelConfig string `json:"modelConfig,omitempty"`
	// Whether to stream the response from the model.
	// If not specified, the default value is true.
	// +optional
	Stream *bool `json:"stream,omitempty"`
	// +kubebuilder:validation:MaxItems=20
	Tools []*Tool `json:"tools,omitempty"`
	// Can either be a reference to the name of a Memory in the same namespace as the referencing Agent, or a reference to the name of a Memory in a different namespace in the form <namespace>/<name>
	// +optional
	Memory []string `json:"memory,omitempty"`
	// A2AConfig instantiates an A2A server for this agent,
	// served on the HTTP port of the kagent kubernetes
	// controller (default 8083).
	// The A2A server URL will be served at
	// <kagent-controller-ip>:8083/api/a2a/<agent-namespace>/<agent-name>
	// Read more about the A2A protocol here: https://github.com/google/A2A
	// +optional
	A2AConfig *A2AConfig `json:"a2aConfig,omitempty"`
}

AgentSpec defines the desired state of Agent.

func (*AgentSpec) DeepCopy

func (in *AgentSpec) DeepCopy() *AgentSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentSpec.

func (*AgentSpec) DeepCopyInto

func (in *AgentSpec) DeepCopyInto(out *AgentSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AgentStatus

type AgentStatus struct {
	ObservedGeneration int64              `json:"observedGeneration,omitempty"`
	Conditions         []metav1.Condition `json:"conditions,omitempty"`
}

AgentStatus defines the observed state of Agent.

func (*AgentStatus) DeepCopy

func (in *AgentStatus) DeepCopy() *AgentStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentStatus.

func (*AgentStatus) DeepCopyInto

func (in *AgentStatus) DeepCopyInto(out *AgentStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AgentTool

type AgentTool struct {
	// Reference to the Agent resource to use as a tool.
	// Can either be a reference to the name of an Agent in the same namespace as the referencing Agent, or a reference to the name of an Agent in a different namespace in the form <namespace>/<name>
	// +kubebuilder:validation:MinLength=1
	Ref string `json:"ref,omitempty"`
}

func (*AgentTool) DeepCopy

func (in *AgentTool) DeepCopy() *AgentTool

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentTool.

func (*AgentTool) DeepCopyInto

func (in *AgentTool) DeepCopyInto(out *AgentTool)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AnthropicConfig

type AnthropicConfig struct {
	// Base URL for the Anthropic API (overrides default)
	// +optional
	BaseURL string `json:"baseUrl,omitempty"`

	// Maximum tokens to generate
	// +optional
	MaxTokens int `json:"maxTokens,omitempty"`

	// Temperature for sampling
	// +optional
	Temperature string `json:"temperature,omitempty"`

	// Top-p sampling parameter
	// +optional
	TopP string `json:"topP,omitempty"`

	// Top-k sampling parameter
	// +optional
	TopK int `json:"topK,omitempty"`
}

AnthropicConfig contains Anthropic-specific configuration options

func (*AnthropicConfig) DeepCopy

func (in *AnthropicConfig) DeepCopy() *AnthropicConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AnthropicConfig.

func (*AnthropicConfig) DeepCopyInto

func (in *AnthropicConfig) DeepCopyInto(out *AnthropicConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AnthropicVertexAIConfig

type AnthropicVertexAIConfig struct {
	BaseVertexAIConfig `json:",inline"`

	// Maximum tokens to generate
	// +optional
	MaxTokens int `json:"maxTokens,omitempty"`
}

func (*AnthropicVertexAIConfig) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AnthropicVertexAIConfig.

func (*AnthropicVertexAIConfig) DeepCopyInto

func (in *AnthropicVertexAIConfig) DeepCopyInto(out *AnthropicVertexAIConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AnyType

type AnyType struct {
	json.RawMessage `json:",inline"`
}

func (*AnyType) DeepCopy

func (in *AnyType) DeepCopy() *AnyType

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AnyType.

func (*AnyType) DeepCopyInto

func (in *AnyType) DeepCopyInto(out *AnyType)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AzureOpenAIConfig

type AzureOpenAIConfig struct {
	// Endpoint for the Azure OpenAI API
	// +required
	Endpoint string `json:"azureEndpoint,omitempty"`

	// API version for the Azure OpenAI API
	// +required
	APIVersion string `json:"apiVersion,omitempty"`

	// Deployment name for the Azure OpenAI API
	// +optional
	DeploymentName string `json:"azureDeployment,omitempty"`

	// Azure AD token for authentication
	// +optional
	AzureADToken string `json:"azureAdToken,omitempty"`

	// Temperature for sampling
	// +optional
	Temperature string `json:"temperature,omitempty"`

	// Maximum tokens to generate
	// +optional
	MaxTokens *int `json:"maxTokens,omitempty"`

	// Top-p sampling parameter
	// +optional
	TopP string `json:"topP,omitempty"`
}

AzureOpenAIConfig contains Azure OpenAI-specific configuration options

func (*AzureOpenAIConfig) DeepCopy

func (in *AzureOpenAIConfig) DeepCopy() *AzureOpenAIConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureOpenAIConfig.

func (*AzureOpenAIConfig) DeepCopyInto

func (in *AzureOpenAIConfig) DeepCopyInto(out *AzureOpenAIConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BaseVertexAIConfig

type BaseVertexAIConfig struct {
	// The project ID
	// +required
	ProjectID string `json:"projectID"`

	// The project location
	// +required
	Location string `json:"location,omitempty"`

	// Temperature
	// +optional
	Temperature string `json:"temperature,omitempty"`

	// Top-p sampling parameter
	// +optional
	TopP string `json:"topP,omitempty"`

	// Top-k sampling parameter
	// +optional
	TopK string `json:"topK,omitempty"`

	// Stop sequences
	// +optional
	StopSequences []string `json:"stopSequences,omitempty"`
}

func (*BaseVertexAIConfig) DeepCopy

func (in *BaseVertexAIConfig) DeepCopy() *BaseVertexAIConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BaseVertexAIConfig.

func (*BaseVertexAIConfig) DeepCopyInto

func (in *BaseVertexAIConfig) DeepCopyInto(out *BaseVertexAIConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Component

type Component struct {
	Provider         string `json:"provider"`
	ComponentType    string `json:"component_type"`
	Version          int    `json:"version"`
	ComponentVersion int    `json:"component_version"`
	Description      string `json:"description"`
	Label            string `json:"label"`
	// note: this implementation is due to the kubebuilder limitation https://github.com/kubernetes-sigs/controller-tools/issues/636
	// +kubebuilder:pruning:PreserveUnknownFields
	// +kubebuilder:validation:Schemaless
	Config map[string]AnyType `json:"config,omitempty"`
}

func (*Component) DeepCopy

func (in *Component) DeepCopy() *Component

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Component.

func (*Component) DeepCopyInto

func (in *Component) DeepCopyInto(out *Component)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type FinalTextMessageTermination

type FinalTextMessageTermination struct {
	Source string `json:"source"`
}

func (*FinalTextMessageTermination) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FinalTextMessageTermination.

func (*FinalTextMessageTermination) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GeminiVertexAIConfig

type GeminiVertexAIConfig struct {
	BaseVertexAIConfig `json:",inline"`

	// Maximum output tokens
	// +optional
	MaxOutputTokens int `json:"maxOutputTokens,omitempty"`

	// Candidate count
	// +optional
	CandidateCount int `json:"candidateCount,omitempty"`

	// Response mime type
	// +optional
	ResponseMimeType string `json:"responseMimeType,omitempty"`
}

GeminiVertexAIConfig contains Gemini Vertex AI-specific configuration options

func (*GeminiVertexAIConfig) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GeminiVertexAIConfig.

func (*GeminiVertexAIConfig) DeepCopyInto

func (in *GeminiVertexAIConfig) DeepCopyInto(out *GeminiVertexAIConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type HttpToolServerConfig

type HttpToolServerConfig struct {
	URL string `json:"url"`
	// +kubebuilder:pruning:PreserveUnknownFields
	// +kubebuilder:validation:Schemaless
	Headers     map[string]AnyType `json:"headers,omitempty"`
	HeadersFrom []ValueRef         `json:"headersFrom,omitempty"`
	// +optional
	Timeout *metav1.Duration `json:"timeout,omitempty"`
	// +optional
	SseReadTimeout *metav1.Duration `json:"sseReadTimeout,omitempty"`
}

func (*HttpToolServerConfig) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HttpToolServerConfig.

func (*HttpToolServerConfig) DeepCopyInto

func (in *HttpToolServerConfig) DeepCopyInto(out *HttpToolServerConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MCPTool

type MCPTool struct {
	Name      string    `json:"name"`
	Component Component `json:"component"`
}

func (*MCPTool) DeepCopy

func (in *MCPTool) DeepCopy() *MCPTool

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MCPTool.

func (*MCPTool) DeepCopyInto

func (in *MCPTool) DeepCopyInto(out *MCPTool)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MaxMessageTermination

type MaxMessageTermination struct {
	MaxMessages int `json:"maxMessages"`
}

func (*MaxMessageTermination) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MaxMessageTermination.

func (*MaxMessageTermination) DeepCopyInto

func (in *MaxMessageTermination) DeepCopyInto(out *MaxMessageTermination)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type McpServerTool

type McpServerTool struct {
	// the name of the ToolServer that provides the tool. can either be a reference to the name of a ToolServer in the same namespace as the referencing Agent, or a reference to the name of an ToolServer in a different namespace in the form <namespace>/<name>
	ToolServer string `json:"toolServer,omitempty"`
	// The names of the tools to be provided by the ToolServer
	// For a list of all the tools provided by the server,
	// the client can query the status of the ToolServer object after it has been created
	ToolNames []string `json:"toolNames,omitempty"`
}

func (*McpServerTool) DeepCopy

func (in *McpServerTool) DeepCopy() *McpServerTool

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new McpServerTool.

func (*McpServerTool) DeepCopyInto

func (in *McpServerTool) DeepCopyInto(out *McpServerTool)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Memory

type Memory struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   MemorySpec   `json:"spec,omitempty"`
	Status MemoryStatus `json:"status,omitempty"`
}

Memory is the Schema for the memories API.

func (*Memory) DeepCopy

func (in *Memory) DeepCopy() *Memory

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Memory.

func (*Memory) DeepCopyInto

func (in *Memory) DeepCopyInto(out *Memory)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Memory) DeepCopyObject

func (in *Memory) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type MemoryList

type MemoryList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Memory `json:"items"`
}

MemoryList contains a list of Memory resources.

func (*MemoryList) DeepCopy

func (in *MemoryList) DeepCopy() *MemoryList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MemoryList.

func (*MemoryList) DeepCopyInto

func (in *MemoryList) DeepCopyInto(out *MemoryList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MemoryList) DeepCopyObject

func (in *MemoryList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type MemoryProvider

type MemoryProvider string

MemoryProvider represents the memory provider type +kubebuilder:validation:Enum=Pinecone

const (
	Pinecone MemoryProvider = "Pinecone"
)

type MemorySpec

type MemorySpec struct {
	// The provider of the memory
	// +kubebuilder:default=Pinecone
	Provider MemoryProvider `json:"provider"`

	// The reference to the secret that contains the API key. Can either be a reference to the name of a secret in the same namespace as the referencing Memory,
	// or a reference to the name of a secret in a different namespace in the form <namespace>/<name>
	// +optional
	APIKeySecretRef string `json:"apiKeySecretRef"`

	// The key in the secret that contains the API key
	// +optional
	APIKeySecretKey string `json:"apiKeySecretKey"`

	// The configuration for the Pinecone memory provider
	// +optional
	Pinecone *PineconeConfig `json:"pinecone,omitempty"`
}

MemorySpec defines the desired state of Memory.

func (*MemorySpec) DeepCopy

func (in *MemorySpec) DeepCopy() *MemorySpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MemorySpec.

func (*MemorySpec) DeepCopyInto

func (in *MemorySpec) DeepCopyInto(out *MemorySpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MemoryStatus

type MemoryStatus struct {
	Conditions         []metav1.Condition `json:"conditions"`
	ObservedGeneration int64              `json:"observedGeneration"`
}

MemoryStatus defines the observed state of Memory.

func (*MemoryStatus) DeepCopy

func (in *MemoryStatus) DeepCopy() *MemoryStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MemoryStatus.

func (*MemoryStatus) DeepCopyInto

func (in *MemoryStatus) DeepCopyInto(out *MemoryStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ModelConfig

type ModelConfig struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ModelConfigSpec   `json:"spec,omitempty"`
	Status ModelConfigStatus `json:"status,omitempty"`
}

ModelConfig is the Schema for the modelconfigs API.

func (*ModelConfig) DeepCopy

func (in *ModelConfig) DeepCopy() *ModelConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModelConfig.

func (*ModelConfig) DeepCopyInto

func (in *ModelConfig) DeepCopyInto(out *ModelConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ModelConfig) DeepCopyObject

func (in *ModelConfig) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ModelConfigList

type ModelConfigList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ModelConfig `json:"items"`
}

ModelConfigList contains a list of ModelConfig.

func (*ModelConfigList) DeepCopy

func (in *ModelConfigList) DeepCopy() *ModelConfigList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModelConfigList.

func (*ModelConfigList) DeepCopyInto

func (in *ModelConfigList) DeepCopyInto(out *ModelConfigList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ModelConfigList) DeepCopyObject

func (in *ModelConfigList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ModelConfigSpec

type ModelConfigSpec struct {
	Model string `json:"model"`

	// The provider of the model
	// +kubebuilder:default=OpenAI
	Provider ModelProvider `json:"provider"`

	// The reference to the secret that contains the API key. Can either be a reference to the name of a secret in the same namespace as the referencing ModelConfig, or a reference to the name of a Secret in a different namespace in the form <namespace>/<name>
	// +optional
	APIKeySecretRef string `json:"apiKeySecretRef"`

	// The key in the secret that contains the API key
	// +optional
	APIKeySecretKey string `json:"apiKeySecretKey"`

	// +optional
	DefaultHeaders map[string]string `json:"defaultHeaders,omitempty"`

	// ModelInfo contains information about the model.
	// This field is required if the model is not one of the
	// pre-defined autogen models. That list can be found here:
	// +optional
	ModelInfo *ModelInfo `json:"modelInfo,omitempty"`

	// OpenAI-specific configuration
	// +optional
	OpenAI *OpenAIConfig `json:"openAI,omitempty"`

	// Anthropic-specific configuration
	// +optional
	Anthropic *AnthropicConfig `json:"anthropic,omitempty"`

	// Azure OpenAI-specific configuration
	// +optional
	AzureOpenAI *AzureOpenAIConfig `json:"azureOpenAI,omitempty"`

	// Ollama-specific configuration
	// +optional
	Ollama *OllamaConfig `json:"ollama,omitempty"`

	// Gemini-specific configuration
	// +optional
	GeminiVertexAI *GeminiVertexAIConfig `json:"geminiVertexAI,omitempty"`

	// Anthropic-specific configuration
	// +optional
	AnthropicVertexAI *AnthropicVertexAIConfig `json:"anthropicVertexAI,omitempty"`
}

func (*ModelConfigSpec) DeepCopy

func (in *ModelConfigSpec) DeepCopy() *ModelConfigSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModelConfigSpec.

func (*ModelConfigSpec) DeepCopyInto

func (in *ModelConfigSpec) DeepCopyInto(out *ModelConfigSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ModelConfigStatus

type ModelConfigStatus struct {
	Conditions         []metav1.Condition `json:"conditions"`
	ObservedGeneration int64              `json:"observedGeneration"`
}

ModelConfigStatus defines the observed state of ModelConfig.

func (*ModelConfigStatus) DeepCopy

func (in *ModelConfigStatus) DeepCopy() *ModelConfigStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModelConfigStatus.

func (*ModelConfigStatus) DeepCopyInto

func (in *ModelConfigStatus) DeepCopyInto(out *ModelConfigStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ModelInfo

type ModelInfo struct {
	// +optional
	Vision bool `json:"vision"`
	// +optional
	FunctionCalling bool `json:"functionCalling"`
	// +optional
	JSONOutput bool `json:"jsonOutput"`
	// +optional
	Family string `json:"family"`
	// +optional
	StructuredOutput bool `json:"structuredOutput"`
	// +optional
	MultipleSystemMessages bool `json:"multipleSystemMessages"`
}

Model Configurations This had to be created because the autogen_api.ModelInfo JSON tags are not compatible with the kubernetes api.

func (*ModelInfo) DeepCopy

func (in *ModelInfo) DeepCopy() *ModelInfo

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModelInfo.

func (*ModelInfo) DeepCopyInto

func (in *ModelInfo) DeepCopyInto(out *ModelInfo)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ModelProvider

type ModelProvider string

ModelProvider represents the model provider type +kubebuilder:validation:Enum=Anthropic;OpenAI;AzureOpenAI;Ollama;GeminiVertexAI;AnthropicVertexAI

const (
	Anthropic         ModelProvider = "Anthropic"
	AzureOpenAI       ModelProvider = "AzureOpenAI"
	OpenAI            ModelProvider = "OpenAI"
	Ollama            ModelProvider = "Ollama"
	GeminiVertexAI    ModelProvider = "GeminiVertexAI"
	AnthropicVertexAI ModelProvider = "AnthropicVertexAI"
)

type OllamaConfig

type OllamaConfig struct {
	// Host for the Ollama API
	// +optional
	Host string `json:"host,omitempty"`

	// Options for the Ollama API
	// +optional
	Options map[string]string `json:"options,omitempty"`
}

OllamaConfig contains Ollama-specific configuration options

func (*OllamaConfig) DeepCopy

func (in *OllamaConfig) DeepCopy() *OllamaConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OllamaConfig.

func (*OllamaConfig) DeepCopyInto

func (in *OllamaConfig) DeepCopyInto(out *OllamaConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type OpenAIConfig

type OpenAIConfig struct {
	// Base URL for the OpenAI API (overrides default)
	// +optional
	BaseURL string `json:"baseUrl,omitempty"`

	// Organization ID for the OpenAI API
	// +optional
	Organization string `json:"organization,omitempty"`

	// Temperature for sampling
	// +optional
	Temperature string `json:"temperature,omitempty"`

	// Maximum tokens to generate
	// +optional
	MaxTokens int `json:"maxTokens,omitempty"`

	// Top-p sampling parameter
	// +optional
	TopP string `json:"topP,omitempty"`

	// Frequency penalty
	// +optional
	FrequencyPenalty string `json:"frequencyPenalty,omitempty"`

	// Presence penalty
	// +optional
	PresencePenalty string `json:"presencePenalty,omitempty"`

	// Seed value
	// +optional
	Seed *int `json:"seed,omitempty"`

	// N value
	N *int `json:"n,omitempty"`

	// Timeout
	Timeout *int `json:"timeout,omitempty"`
}

OpenAIConfig contains OpenAI-specific configuration options

func (*OpenAIConfig) DeepCopy

func (in *OpenAIConfig) DeepCopy() *OpenAIConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenAIConfig.

func (*OpenAIConfig) DeepCopyInto

func (in *OpenAIConfig) DeepCopyInto(out *OpenAIConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type OrTermination

type OrTermination struct {
	Conditions []OrTerminationCondition `json:"conditions"`
}

func (*OrTermination) DeepCopy

func (in *OrTermination) DeepCopy() *OrTermination

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OrTermination.

func (*OrTermination) DeepCopyInto

func (in *OrTermination) DeepCopyInto(out *OrTermination)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type OrTerminationCondition

type OrTerminationCondition struct {
	MaxMessageTermination  *MaxMessageTermination  `json:"maxMessageTermination,omitempty"`
	TextMentionTermination *TextMentionTermination `json:"textMentionTermination,omitempty"`
}

func (*OrTerminationCondition) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OrTerminationCondition.

func (*OrTerminationCondition) DeepCopyInto

func (in *OrTerminationCondition) DeepCopyInto(out *OrTerminationCondition)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PineconeConfig

type PineconeConfig struct {
	// The index host to connect to
	// +required
	IndexHost string `json:"indexHost,omitempty"`
	// The number of results to return from the Pinecone index
	// +optional
	TopK int `json:"topK,omitempty"`
	// The namespace to use for the Pinecone index. If not provided, the default namespace will be used.
	// +optional
	Namespace string `json:"namespace,omitempty"`
	// The fields to retrieve from the Pinecone index. If not provided, all fields will be retrieved.
	// +optional
	RecordFields []string `json:"recordFields,omitempty"`
	// The score threshold of results to include in the context. Results with a score below this threshold will be ignored.
	// +optional
	ScoreThreshold string `json:"scoreThreshold,omitempty"`
}

PineconeConfig contains Pinecone-specific configuration options

func (*PineconeConfig) DeepCopy

func (in *PineconeConfig) DeepCopy() *PineconeConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PineconeConfig.

func (*PineconeConfig) DeepCopyInto

func (in *PineconeConfig) DeepCopyInto(out *PineconeConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type RoundRobinTeamConfig

type RoundRobinTeamConfig struct{}

func (*RoundRobinTeamConfig) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoundRobinTeamConfig.

func (*RoundRobinTeamConfig) DeepCopyInto

func (in *RoundRobinTeamConfig) DeepCopyInto(out *RoundRobinTeamConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SseMcpServerConfig

type SseMcpServerConfig struct {
	HttpToolServerConfig `json:",inline"`
}

func (*SseMcpServerConfig) DeepCopy

func (in *SseMcpServerConfig) DeepCopy() *SseMcpServerConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SseMcpServerConfig.

func (*SseMcpServerConfig) DeepCopyInto

func (in *SseMcpServerConfig) DeepCopyInto(out *SseMcpServerConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type StdioMcpServerConfig

type StdioMcpServerConfig struct {
	Command string            `json:"command"`
	Args    []string          `json:"args,omitempty"`
	Env     map[string]string `json:"env,omitempty"`
	EnvFrom []ValueRef        `json:"envFrom,omitempty"`
	// Default value is 10 seconds
	// +kubebuilder:default:=10
	ReadTimeoutSeconds uint8 `json:"readTimeoutSeconds,omitempty"`
}

func (*StdioMcpServerConfig) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StdioMcpServerConfig.

func (*StdioMcpServerConfig) DeepCopyInto

func (in *StdioMcpServerConfig) DeepCopyInto(out *StdioMcpServerConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type StopMessageTermination

type StopMessageTermination struct{}

func (*StopMessageTermination) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StopMessageTermination.

func (*StopMessageTermination) DeepCopyInto

func (in *StopMessageTermination) DeepCopyInto(out *StopMessageTermination)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type StreamableHttpServerConfig

type StreamableHttpServerConfig struct {
	HttpToolServerConfig `json:",inline"`
	TerminateOnClose     bool `json:"terminateOnClose,omitempty"`
}

func (*StreamableHttpServerConfig) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StreamableHttpServerConfig.

func (*StreamableHttpServerConfig) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Team

type Team struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   TeamSpec   `json:"spec,omitempty"`
	Status TeamStatus `json:"status,omitempty"`
}

Team is the Schema for the teams API.

func (*Team) DeepCopy

func (in *Team) DeepCopy() *Team

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Team.

func (*Team) DeepCopyInto

func (in *Team) DeepCopyInto(out *Team)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Team) DeepCopyObject

func (in *Team) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Team) GetModelConfigName

func (t *Team) GetModelConfigName() string

type TeamList

type TeamList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Team `json:"items"`
}

TeamList contains a list of Team.

func (*TeamList) DeepCopy

func (in *TeamList) DeepCopy() *TeamList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamList.

func (*TeamList) DeepCopyInto

func (in *TeamList) DeepCopyInto(out *TeamList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*TeamList) DeepCopyObject

func (in *TeamList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type TeamSpec

type TeamSpec struct {
	// Each Participant can either be a reference to the name of an Agent in the same namespace as the referencing Team, or a reference to the name of an Agent in a different namespace in the form <namespace>/<name>
	Participants []string `json:"participants"`
	Description  string   `json:"description"`
	// Can either be a reference to the name of a ModelConfig in the same namespace as the referencing Team, or a reference to the name of a ModelConfig in a different namespace in the form <namespace>/<name>
	ModelConfig string `json:"modelConfig"`
	// +kubebuilder:validation:Optional
	RoundRobinTeamConfig *RoundRobinTeamConfig `json:"roundRobinTeamConfig"`
	// +kubebuilder:validation:Optional
	TerminationCondition TerminationCondition `json:"terminationCondition"`
	MaxTurns             int64                `json:"maxTurns"`
}

TeamSpec defines the desired state of Team.

func (*TeamSpec) DeepCopy

func (in *TeamSpec) DeepCopy() *TeamSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamSpec.

func (*TeamSpec) DeepCopyInto

func (in *TeamSpec) DeepCopyInto(out *TeamSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TeamStatus

type TeamStatus struct {
	Conditions         []metav1.Condition `json:"conditions"`
	ObservedGeneration int64              `json:"observedGeneration"`
}

TeamStatus defines the observed state of Team.

func (*TeamStatus) DeepCopy

func (in *TeamStatus) DeepCopy() *TeamStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamStatus.

func (*TeamStatus) DeepCopyInto

func (in *TeamStatus) DeepCopyInto(out *TeamStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TerminationCondition

type TerminationCondition struct {
	// ONEOF: maxMessageTermination, textMentionTermination, orTermination
	MaxMessageTermination       *MaxMessageTermination       `json:"maxMessageTermination,omitempty"`
	TextMentionTermination      *TextMentionTermination      `json:"textMentionTermination,omitempty"`
	TextMessageTermination      *TextMessageTermination      `json:"textMessageTermination,omitempty"`
	FinalTextMessageTermination *FinalTextMessageTermination `json:"finalTextMessageTermination,omitempty"`
	StopMessageTermination      *StopMessageTermination      `json:"stopMessageTermination,omitempty"`
	OrTermination               *OrTermination               `json:"orTermination,omitempty"`
}

func (*TerminationCondition) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TerminationCondition.

func (*TerminationCondition) DeepCopyInto

func (in *TerminationCondition) DeepCopyInto(out *TerminationCondition)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TextMentionTermination

type TextMentionTermination struct {
	Text string `json:"text"`
}

func (*TextMentionTermination) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TextMentionTermination.

func (*TextMentionTermination) DeepCopyInto

func (in *TextMentionTermination) DeepCopyInto(out *TextMentionTermination)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TextMessageTermination

type TextMessageTermination struct {
	Source string `json:"source"`
}

func (*TextMessageTermination) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TextMessageTermination.

func (*TextMessageTermination) DeepCopyInto

func (in *TextMessageTermination) DeepCopyInto(out *TextMessageTermination)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Tool

type Tool struct {
	// +kubebuilder:validation:Enum=McpServer;Agent
	Type ToolProviderType `json:"type,omitempty"`
	// +optional
	McpServer *McpServerTool `json:"mcpServer,omitempty"`
	// +optional
	Agent *AgentTool `json:"agent,omitempty"`
}

+kubebuilder:validation:XValidation:message="type.mcpServer must be nil if the type is not McpServer",rule="!(has(self.mcpServer) && self.type != 'McpServer')" +kubebuilder:validation:XValidation:message="type.mcpServer must be specified for McpServer filter.type",rule="!(!has(self.mcpServer) && self.type == 'McpServer')" +kubebuilder:validation:XValidation:message="type.agent must be nil if the type is not Agent",rule="!(has(self.agent) && self.type != 'Agent')" +kubebuilder:validation:XValidation:message="type.agent must be specified for Agent filter.type",rule="!(!has(self.agent) && self.type == 'Agent')"

func (*Tool) DeepCopy

func (in *Tool) DeepCopy() *Tool

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Tool.

func (*Tool) DeepCopyInto

func (in *Tool) DeepCopyInto(out *Tool)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ToolProviderType

type ToolProviderType string

ToolProviderType represents the tool provider type +kubebuilder:validation:Enum=McpServer;Agent

const (
	ToolProviderType_McpServer ToolProviderType = "McpServer"
	ToolProviderType_Agent     ToolProviderType = "Agent"
)

type ToolServer

type ToolServer struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ToolServerSpec   `json:"spec,omitempty"`
	Status ToolServerStatus `json:"status,omitempty"`
}

ToolServer is the Schema for the toolservers API.

func (*ToolServer) DeepCopy

func (in *ToolServer) DeepCopy() *ToolServer

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ToolServer.

func (*ToolServer) DeepCopyInto

func (in *ToolServer) DeepCopyInto(out *ToolServer)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ToolServer) DeepCopyObject

func (in *ToolServer) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ToolServerConfig

type ToolServerConfig struct {
	Stdio          *StdioMcpServerConfig       `json:"stdio,omitempty"`
	Sse            *SseMcpServerConfig         `json:"sse,omitempty"`
	StreamableHttp *StreamableHttpServerConfig `json:"streamableHttp,omitempty"`
}

func (*ToolServerConfig) DeepCopy

func (in *ToolServerConfig) DeepCopy() *ToolServerConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ToolServerConfig.

func (*ToolServerConfig) DeepCopyInto

func (in *ToolServerConfig) DeepCopyInto(out *ToolServerConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ToolServerList

type ToolServerList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ToolServer `json:"items"`
}

ToolServerList contains a list of ToolServer.

func (*ToolServerList) DeepCopy

func (in *ToolServerList) DeepCopy() *ToolServerList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ToolServerList.

func (*ToolServerList) DeepCopyInto

func (in *ToolServerList) DeepCopyInto(out *ToolServerList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ToolServerList) DeepCopyObject

func (in *ToolServerList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ToolServerSpec

type ToolServerSpec struct {
	Description string           `json:"description"`
	Config      ToolServerConfig `json:"config"`
}

ToolServerSpec defines the desired state of ToolServer.

func (*ToolServerSpec) DeepCopy

func (in *ToolServerSpec) DeepCopy() *ToolServerSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ToolServerSpec.

func (*ToolServerSpec) DeepCopyInto

func (in *ToolServerSpec) DeepCopyInto(out *ToolServerSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ToolServerStatus

type ToolServerStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	ObservedGeneration int64              `json:"observedGeneration"`
	Conditions         []metav1.Condition `json:"conditions"`
	// +kubebuilder:validation:Optional
	DiscoveredTools []*MCPTool `json:"discoveredTools"`
}

ToolServerStatus defines the observed state of ToolServer.

func (*ToolServerStatus) DeepCopy

func (in *ToolServerStatus) DeepCopy() *ToolServerStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ToolServerStatus.

func (*ToolServerStatus) DeepCopyInto

func (in *ToolServerStatus) DeepCopyInto(out *ToolServerStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ValueRef

type ValueRef struct {
	Name string `json:"name"`
	// +optional
	Value string `json:"value,omitempty"`
	// +optional
	ValueFrom *ValueSource `json:"valueFrom,omitempty"`
}

ValueRef represents a configuration value +kubebuilder:validation:XValidation:rule="(has(self.value) && !has(self.valueFrom)) || (!has(self.value) && has(self.valueFrom))",message="Exactly one of value or valueFrom must be specified"

func (*ValueRef) DeepCopy

func (in *ValueRef) DeepCopy() *ValueRef

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValueRef.

func (*ValueRef) DeepCopyInto

func (in *ValueRef) DeepCopyInto(out *ValueRef)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ValueSource

type ValueSource struct {
	// +kubebuilder:validation:Enum=ConfigMap;Secret
	Type ValueSourceType `json:"type"`
	// The reference to the ConfigMap or Secret. Can either be a reference to a resource in the same namespace,
	// or a reference to a resource in a different namespace in the form "namespace/name".
	// If namespace is not provided, the default namespace is used.
	// +optional
	ValueRef string `json:"valueRef"`
	Key      string `json:"key"`
}

ValueSource defines a source for configuration values from a Secret or ConfigMap

func (*ValueSource) DeepCopy

func (in *ValueSource) DeepCopy() *ValueSource

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValueSource.

func (*ValueSource) DeepCopyInto

func (in *ValueSource) DeepCopyInto(out *ValueSource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ValueSourceType

type ValueSourceType string
const (
	ConfigMapValueSource ValueSourceType = "ConfigMap"
	SecretValueSource    ValueSourceType = "Secret"
)

Jump to

Keyboard shortcuts

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