langfuse

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAsyncTaskContextBuilder added in v0.2.4

func NewAsyncTaskContextBuilder(traceNamer AsyncTaskTraceNamer) func(taskType, userID, sessionID string) context.Context

Types

type AsyncTaskTraceNamer added in v0.2.4

type AsyncTaskTraceNamer func(taskType string) string

type GetPromptResponse

type GetPromptResponse struct {
	Id        string    `json:"id"`
	CreatedAt time.Time `json:"createdAt"`
	UpdatedAt time.Time `json:"updatedAt"`
	ProjectId string    `json:"projectId"`
	CreatedBy string    `json:"createdBy"`
	Prompt    string    `json:"prompt"`
	Name      string    `json:"name"`
	Version   int       `json:"version"`
	Type      string    `json:"type"`
	IsActive  any       `json:"isActive"`
	Config    struct {
	} `json:"config"`
	Tags            []any    `json:"tags"`
	Labels          []string `json:"labels"`
	CommitMessage   any      `json:"commitMessage"`
	ResolutionGraph any      `json:"resolutionGraph"`
}

type Langfuse

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

func New

func New(pk string, sk string, host string) *Langfuse

func (*Langfuse) GetPrompt

func (l *Langfuse) GetPrompt(promptName string) string

Jump to

Keyboard shortcuts

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