Documentation
¶
Index ¶
Constants ¶
View Source
const ( PluginTitle = "rtp-agent.plugins.langchain" PluginVersion = "1.5.15" PluginPackage = "rtp-agent.plugins.langchain" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LangchainLLM ¶
type LangchainLLM struct {
// contains filtered or unexported fields
}
func NewLangchainLLM ¶
func NewLangchainLLM(apiKey string, model string) *LangchainLLM
func (*LangchainLLM) Chat ¶
func (l *LangchainLLM) Chat(ctx context.Context, chatCtx *llm.ChatContext, opts ...llm.ChatOption) (llm.LLMStream, error)
func (*LangchainLLM) Model ¶ added in v0.0.18
func (l *LangchainLLM) Model() string
func (*LangchainLLM) Provider ¶ added in v0.0.18
func (l *LangchainLLM) Provider() string
Click to show internal directories.
Click to hide internal directories.