prompts

package
v0.0.0-...-93ac733 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const TranslationPromptName = "Translation"

Variables

This section is empty.

Functions

func RenderTranslationPrompt

func RenderTranslationPrompt(ctx context.Context, g *genkit.Genkit, text, sourceLang, targetLang, domain string) ([]*ai.Message, error)

func TranslationPrompt

func TranslationPrompt(g *genkit.Genkit) ai.Prompt

Types

type TranslationInput

type TranslationInput struct {
	Text   string `json:"text"`
	Source string `json:"source"`
	Target string `json:"target"`
	Domain string `json:"domain"`
}