Documentation
¶
Overview ¶
Package internal provides adk internal utils.
Index ¶
Constants ¶
const EinoMsgIDKey = "_eino_msg_id"
EinoMsgIDKey is the Extra key used to store the eino-internal message ID.
Variables ¶
This section is empty.
Functions ¶
func EnsureMessageID ¶ added in v0.9.0
EnsureMessageID assigns a UUID v4 if no message ID is present. Idempotent: if ID already set, no-op. Returns the (possibly newly created) Extra map.
func GetMessageID ¶ added in v0.9.0
GetMessageID returns the message ID from Extra, or "" if not set. Works with any map[string]any (Message.Extra or AgenticMessage.Extra).
func SelectPrompt ¶
func SelectPrompt(prompts I18nPrompts) string
SelectPrompt returns the appropriate prompt string based on the current language setting. Returns an error if the current language is not supported.
func SetLanguage ¶
SetLanguage sets the language for the ADK built-in prompts. The default language is English if not explicitly set.
Types ¶
type I18nPrompts ¶
I18nPrompts holds prompt strings for different languages.