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 ¶
const ( Group = "prompt.arcadia.kubeagi.k8s.com.cn" Version = "v1alpha1" )
const (
DefaultUserPrompt = `{{.question}}`
)
Variables ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Prompt.
func (*Prompt) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Prompt) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
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.