Class: Langfuse::NullGeneration
- Inherits:
-
Object
- Object
- Langfuse::NullGeneration
- 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
- #agent ⇒ Object
- #chain ⇒ Object
- #embedding ⇒ Object
- #end ⇒ Object
- #evaluator ⇒ Object
- #event ⇒ Object
- #generation ⇒ Object
- #get_url ⇒ Object
- #guardrail ⇒ Object
- #id ⇒ Object
- #retriever ⇒ Object
- #score ⇒ Object
- #span ⇒ Object
- #to_dict ⇒ Object
- #tool ⇒ Object
- #trace_id ⇒ Object
- #update ⇒ Object
Instance Method Details
#agent ⇒ Object
12 |
# File 'lib/langfuse/null_objects.rb', line 12 def agent(**) = NullSpan.new |
#chain ⇒ Object
14 |
# File 'lib/langfuse/null_objects.rb', line 14 def chain(**) = NullSpan.new |
#embedding ⇒ Object
16 |
# File 'lib/langfuse/null_objects.rb', line 16 def (**) = NullSpan.new |
#end ⇒ Object
8 |
# File 'lib/langfuse/null_objects.rb', line 8 def end(**) = self |
#evaluator ⇒ Object
17 |
# File 'lib/langfuse/null_objects.rb', line 17 def evaluator(**) = NullSpan.new |
#event ⇒ Object
11 |
# File 'lib/langfuse/null_objects.rb', line 11 def event(**) = NullEvent.new |
#generation ⇒ Object
10 |
# File 'lib/langfuse/null_objects.rb', line 10 def generation(**) = NullGeneration.new |
#get_url ⇒ Object
20 |
# File 'lib/langfuse/null_objects.rb', line 20 def get_url = nil |
#guardrail ⇒ Object
18 |
# File 'lib/langfuse/null_objects.rb', line 18 def guardrail(**) = NullSpan.new |
#id ⇒ Object
22 |
# File 'lib/langfuse/null_objects.rb', line 22 def id = nil |
#retriever ⇒ Object
15 |
# File 'lib/langfuse/null_objects.rb', line 15 def retriever(**) = NullSpan.new |
#score ⇒ Object
19 |
# File 'lib/langfuse/null_objects.rb', line 19 def score(**) = nil |
#span ⇒ Object
9 |
# File 'lib/langfuse/null_objects.rb', line 9 def span(**) = NullSpan.new |
#to_dict ⇒ Object
21 |
# File 'lib/langfuse/null_objects.rb', line 21 def to_dict = {} |
#tool ⇒ Object
13 |
# File 'lib/langfuse/null_objects.rb', line 13 def tool(**) = NullSpan.new |
#trace_id ⇒ Object
23 |
# File 'lib/langfuse/null_objects.rb', line 23 def trace_id = nil |
#update ⇒ Object
7 |
# File 'lib/langfuse/null_objects.rb', line 7 def update(**) = self |