perplexity

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

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

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 NewPerplexityLLM deprecated

func NewPerplexityLLM(apiKey string, model string) *LLM

Deprecated: use NewLLM.

func (*LLM) BaseURL added in v0.4.2

func (l *LLM) BaseURL() string

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) TracesRequestAttempts added in v0.9.0

func (*LLM) TracesRequestAttempts() bool

TracesRequestAttempts delegates attempt tracing to the OpenAI-compatible implementation.

type PerplexityLLM deprecated

type PerplexityLLM = LLM

Deprecated: use LLM.

Jump to

Keyboard shortcuts

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