Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultPrompt = Prompt{ ID: "DefaultPrompt", Name: "Native Default Prompt", Description: "Facilitates asking questions to the assistant.", Preferences: Preferences{ Fast: false, Reasoning: false, }, Settings: Settings{ SystemPrompt: `Provide responses that are clear and concise. Offer brief explanations if asked for, but avoid providing too much additional context or introductions unless explicitly requested. # Output Format - Short, direct answers. - Brief explanations if necessary. - No additional context or rephrasing unless requested. # Notes - Ensure all responses align with the user's demands for clarity and directness. - Meet user requirements promptly without unnecessary elaboration.`, }, Metadata: Metadata{ CreatedAt: time.Date(2024, 10, 2, 0, 0, 0, 0, time.UTC), UpdatedAt: time.Date(2024, 10, 2, 0, 0, 0, 0, time.UTC), Version: "0.1.0", }, }
View Source
var ErrPromptNotFound = errors.New("prompt not found")
Functions ¶
This section is empty.
Types ¶
type Preferences ¶
type Prompt ¶
type Prompt struct { ID string `yaml:"id"` Name string `yaml:"name"` Description string `yaml:"description"` Settings Settings `yaml:"settings"` Metadata Metadata `yaml:"metadata"` Preferences Preferences `yaml:"preferences"` }
func AddPromptFromURL ¶
func ListPrompts ¶
func LoadPrompt ¶
Click to show internal directories.
Click to hide internal directories.