Class: Langfuse::NullGeneration

Inherits:
Object
  • Object
show all
Defined in:
lib/langfuse/null_objects.rb

Overview

NullGeneration provides a no-op generation object for graceful degradation. Used when Langfuse is unavailable or trace creation fails.

Instance Method Summary collapse

Instance Method Details

#agentObject



12
# File 'lib/langfuse/null_objects.rb', line 12

def agent(**) = NullSpan.new

#chainObject



14
# File 'lib/langfuse/null_objects.rb', line 14

def chain(**) = NullSpan.new

#embeddingObject



16
# File 'lib/langfuse/null_objects.rb', line 16

def embedding(**) = NullSpan.new

#endObject



8
# File 'lib/langfuse/null_objects.rb', line 8

def end(**) = self

#evaluatorObject



17
# File 'lib/langfuse/null_objects.rb', line 17

def evaluator(**) = NullSpan.new

#eventObject



11
# File 'lib/langfuse/null_objects.rb', line 11

def event(**) = NullEvent.new

#generationObject



10
# File 'lib/langfuse/null_objects.rb', line 10

def generation(**) = NullGeneration.new

#get_urlObject



20
# File 'lib/langfuse/null_objects.rb', line 20

def get_url = nil

#guardrailObject



18
# File 'lib/langfuse/null_objects.rb', line 18

def guardrail(**) = NullSpan.new

#idObject



22
# File 'lib/langfuse/null_objects.rb', line 22

def id = nil

#retrieverObject



15
# File 'lib/langfuse/null_objects.rb', line 15

def retriever(**) = NullSpan.new

#scoreObject



19
# File 'lib/langfuse/null_objects.rb', line 19

def score(**) = nil

#spanObject



9
# File 'lib/langfuse/null_objects.rb', line 9

def span(**) = NullSpan.new

#to_dictObject



21
# File 'lib/langfuse/null_objects.rb', line 21

def to_dict = {}

#toolObject



13
# File 'lib/langfuse/null_objects.rb', line 13

def tool(**) = NullSpan.new

#trace_idObject



23
# File 'lib/langfuse/null_objects.rb', line 23

def trace_id = nil

#updateObject



7
# File 'lib/langfuse/null_objects.rb', line 7

def update(**) = self