Skip to content

Commit feadaac

Browse files
authored
Merge pull request #14 from test-IO/feature/extend_langfuse_api_client
Add get_prompts endpoint to client
2 parents 8c6d527 + 64bfe02 commit feadaac

File tree

4 files changed

+17
-2
lines changed

4 files changed

+17
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,7 @@
2727
## [0.2.7] - 2025-03-07
2828

2929
- Fixed generation update and model field in traces.
30+
31+
## [0.2.8] - 2025-23-07
32+
33+
- Prompt management

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
llm_eval_ruby (0.2.7)
4+
llm_eval_ruby (0.2.8)
55
httparty (~> 0.22.0)
66
liquid (~> 5.5.0)
77

lib/llm_eval_ruby/api_clients/langfuse.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,17 @@ def fetch_prompt(name:, version:)
2323
response["prompt"]
2424
end
2525

26+
# query:
27+
# name
28+
# label
29+
# tag
30+
# page
31+
# limit
32+
def get_prompts(query={})
33+
response = self.class.get("/v2/prompts", { query: query })
34+
response["data"]
35+
end
36+
2637
# We are using the same method for updating trace
2738
# Langfuse does an upsert if id is given
2839
def create_trace(params = {})

lib/llm_eval_ruby/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module LlmEvalRuby
4-
VERSION = "0.2.7"
4+
VERSION = "0.2.8"
55
end

0 commit comments

Comments
 (0)