mirror of
https://github.com/vxcontrol/langchaingo.git
synced 2026-07-21 00:45:22 -04:00
5e9b30fc11
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
9 lines
299 B
Go
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
|
|
}
|