langchain

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PluginTitle   = "rtp-agent.plugins.langchain"
	PluginVersion = "v0.4.2"
	PluginPackage = "rtp-agent.plugins.langchain"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LLM added in v0.4.2

type LLM struct {
	// contains filtered or unexported fields
}

func NewLLM added in v0.4.2

func NewLLM(apiKey string, model string) *LLM

func NewLangchainLLM deprecated

func NewLangchainLLM(apiKey string, model string) *LLM

Deprecated: use NewLLM.

func (*LLM) Chat added in v0.4.2

func (l *LLM) Chat(ctx context.Context, chatCtx *llm.ChatContext, opts ...llm.ChatOption) (llm.LLMStream, error)

func (*LLM) Model added in v0.4.2

func (l *LLM) Model() string

func (*LLM) Provider added in v0.4.2

func (l *LLM) Provider() string

type LangchainLLM deprecated

type LangchainLLM = LLM

Deprecated: use LLM.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL