langfuse

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Langfuse

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

func New

func New(ctx context.Context) *Langfuse

func (*Langfuse) Embedding

func (l *Langfuse) Embedding(e *observer.Embedding) (*observer.Embedding, error)

func (*Langfuse) EmbeddingEnd

func (l *Langfuse) EmbeddingEnd(e *observer.Embedding) (*observer.Embedding, error)

func (*Langfuse) Event

func (l *Langfuse) Event(e *observer.Event) (*observer.Event, error)

func (*Langfuse) Flush

func (l *Langfuse) Flush(ctx context.Context)

func (*Langfuse) Generation

func (l *Langfuse) Generation(g *observer.Generation) (*observer.Generation, error)

func (*Langfuse) GenerationEnd

func (l *Langfuse) GenerationEnd(g *observer.Generation) (*observer.Generation, error)

func (*Langfuse) Score

func (l *Langfuse) Score(s *observer.Score) (*observer.Score, error)

func (*Langfuse) Span

func (l *Langfuse) Span(s *observer.Span) (*observer.Span, error)

func (*Langfuse) SpanEnd

func (l *Langfuse) SpanEnd(s *observer.Span) (*observer.Span, error)

func (*Langfuse) Trace

func (l *Langfuse) Trace(t *observer.Trace) (*observer.Trace, error)

func (*Langfuse) WithFlushInterval

func (l *Langfuse) WithFlushInterval(d time.Duration) *Langfuse

Jump to

Keyboard shortcuts

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