Documentation
¶
Overview ¶
Package prompt provides a easy way to format a prompt using the Go template engine. Prompts are defined using a template string and a list of inputs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func NewPromptFromAudioFile ¶ added in v0.0.3
func NewPromptFromAudioFile(ctx context.Context, filePath string, audioResponseFormat AudioResponseFormat) (*whisperPrompt, error)
func NewPromptTemplate ¶
func NewPromptTemplate(text string) *template
Types ¶
type AudioResponseFormat ¶ added in v0.0.4
type AudioResponseFormat string
const ( AudioResponseFormatText AudioResponseFormat = "" AudioResponseFormatJSON AudioResponseFormat = "json" AudioResponseFormatSRT AudioResponseFormat = "srt" AudioResponseFormatVTT AudioResponseFormat = "vtt" )
Click to show internal directories.
Click to hide internal directories.