v1alpha1

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the arcadia v1alpha1 API group +kubebuilder:object:generate=true +groupName=prompt.arcadia.kubeagi.k8s.com.cn

Index

Constants

View Source
const (
	Group   = "prompt.arcadia.kubeagi.k8s.com.cn"
	Version = "v1alpha1"
)
View Source
const (
	DefaultUserPrompt = `{{.question}}`
)

Variables

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

	// 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 CommonPromptConfig

type CommonPromptConfig struct {
	// system prompts, support template
	SystemMessage string `json:"systemMessage,omitempty"`
	// user prompts,support template
	// +kubebuilder:default="{{.question}}"
	UserMessage string `json:"userMessage,omitempty"`
}

func (*CommonPromptConfig) DeepCopy

func (in *CommonPromptConfig) DeepCopy() *CommonPromptConfig

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

func (*CommonPromptConfig) DeepCopyInto

func (in *CommonPromptConfig) DeepCopyInto(out *CommonPromptConfig)

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

type Prompt

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

	Spec   PromptSpec   `json:"spec,omitempty"`
	Status PromptStatus `json:"status,omitempty"`
}

Prompt is the Schema for the Prompt API

func (*Prompt) DeepCopy

func (in *Prompt) DeepCopy() *Prompt

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

func (*Prompt) DeepCopyInto

func (in *Prompt) DeepCopyInto(out *Prompt)

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

func (*Prompt) DeepCopyObject

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

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

func (*Prompt) SetRef

func (c *Prompt) SetRef()

type PromptList

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

PromptList contains a list of Prompt

func (*PromptList) DeepCopy

func (in *PromptList) DeepCopy() *PromptList

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

func (*PromptList) DeepCopyInto

func (in *PromptList) DeepCopyInto(out *PromptList)

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

func (*PromptList) DeepCopyObject

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

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

type PromptSpec

type PromptSpec struct {
	v1alpha1.CommonSpec `json:",inline"`

	CommonPromptConfig `json:",inline"`
}

PromptSpec defines the desired state of Prompt

func (*PromptSpec) DeepCopy

func (in *PromptSpec) DeepCopy() *PromptSpec

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

func (*PromptSpec) DeepCopyInto

func (in *PromptSpec) DeepCopyInto(out *PromptSpec)

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

type PromptStatus

type PromptStatus struct {
	// ObservedGeneration is the last observed generation.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`

	// ConditionedStatus is the current status
	v1alpha1.ConditionedStatus `json:",inline"`
}

PromptStatus defines the observed state of Prompt

func (*PromptStatus) DeepCopy

func (in *PromptStatus) DeepCopy() *PromptStatus

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

func (*PromptStatus) DeepCopyInto

func (in *PromptStatus) DeepCopyInto(out *PromptStatus)

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

Jump to

Keyboard shortcuts

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