Module: Langfuse
- Extended by:
- T::Sig
- Defined in:
- lib/langfuse/client.rb,
lib/langfuse.rb,
lib/langfuse/version.rb,
lib/langfuse/api_client.rb,
lib/langfuse/models/span.rb,
lib/langfuse/batch_worker.rb,
lib/langfuse/models/event.rb,
lib/langfuse/models/score.rb,
lib/langfuse/models/trace.rb,
lib/langfuse/models/usage.rb,
lib/langfuse/configuration.rb,
lib/langfuse/models/generation.rb,
lib/langfuse/models/ingestion_event.rb
Overview
Defined Under Namespace
Modules: Models
Classes: ApiClient, BatchWorker, Client, Configuration
Constant Summary
collapse
- VERSION =
'0.1.1'
Class Attribute Summary collapse
Class Method Summary
collapse
Class Method Details
46
47
48
49
|
# File 'lib/langfuse.rb', line 46
def configure(&_block)
yield(configuration)
end
|
.event(attributes = {}) ⇒ Object
88
89
90
|
# File 'lib/langfuse.rb', line 88
def event(attributes = {})
T.unsafe(Client.instance).event(attributes)
end
|
.flush ⇒ Object
100
101
102
|
# File 'lib/langfuse.rb', line 100
def flush
Client.instance.flush
end
|
.generation(attributes = {}) ⇒ Object
75
76
77
|
# File 'lib/langfuse.rb', line 75
def generation(attributes = {})
T.unsafe(Client.instance).generation(attributes)
end
|
.score(attributes = {}) ⇒ Object
94
95
96
|
# File 'lib/langfuse.rb', line 94
def score(attributes = {})
T.unsafe(Client.instance).score(attributes)
end
|
.shutdown ⇒ Object
106
107
108
|
# File 'lib/langfuse.rb', line 106
def shutdown
Client.instance.shutdown
end
|
.span(attributes = {}) ⇒ Object
62
63
64
|
# File 'lib/langfuse.rb', line 62
def span(attributes = {})
T.unsafe(Client.instance).span(attributes)
end
|
.trace(attributes = {}) ⇒ Object
55
56
57
58
|
# File 'lib/langfuse.rb', line 55
def trace(attributes = {})
T.unsafe(Client.instance).trace(attributes)
end
|
.update_generation(generation) ⇒ Object
81
82
83
84
|
# File 'lib/langfuse.rb', line 81
def update_generation(generation)
T.unsafe(Client.instance).update_generation(generation)
end
|
.update_span(span) ⇒ Object
68
69
70
71
|
# File 'lib/langfuse.rb', line 68
def update_span(span)
T.unsafe(Client.instance).update_span(span)
end
|