Files
langchaingo/prompts/example_selector.go
Ayaka Neko 5e9b30fc11 prompts: introduce prompts concept and added relevant types
prompts: continue implementing
prompts: introduced PromptTemplate along with the relevant types
test: use testify for tests, fix lint issues
prompts: improve tests
prompts: improve tests
2023-04-24 14:27:29 +08:00

9 lines
299 B
Go

package prompts
// ExampleSelector is an interface for example selectors. It is equivalent to
// BaseExampleSelector in langchain and langchainjs.
type ExampleSelector interface {
AddExample(example map[string]string) string
SelectExamples(inputVariables map[string]string) []map[string]string
}