Package-level declarations

Types

Link copied to clipboard
fun interface PromptAugmenter

Interface for augmenting prompts with relevant context retrieved from memory.

Link copied to clipboard

Intermediate builder that lets callers select a PromptAugmenter implementation.

Link copied to clipboard
class SystemPromptAugmenter(template: String = DEFAULT_SYSTEM_PROMPT_TEMPLATE, contextPrefix: String = PromptAugmenter.DEFAULT_CONTEXT_PREFIX) : PromptAugmenter

A PromptAugmenter that injects retrieved context into the first Message.System of the prompt.

Link copied to clipboard
class UserPromptAugmenter(template: String = DEFAULT_USER_PROMPT_TEMPLATE, contextPrefix: String = PromptAugmenter.DEFAULT_CONTEXT_PREFIX) : PromptAugmenter

A PromptAugmenter that injects retrieved context into the last Message.User of the prompt.