langfuse_client
Umbrella module that re-exports the public API. The implementation lives
in langfuse_client/client and langfuse_client/score; importing those directly is
equivalent.
let c = langfuse_client.new( base_url: “https://us.cloud.langfuse.com”, public_key: “pk-lf-…”, secret_key: “sk-lf-…”, )
langfuse_client.list_scores(c, langfuse_client.score_query() |> langfuse_client.with_limit(10))
Types
Alias for client.Client.
pub type Client =
client.Client
Alias for client.Error.
pub type Error =
client.Error
Alias for score.Page.
pub type Page =
score.Page
Alias for score.Score.
pub type Score =
score.Score
Alias for score.Query.
pub type ScoreQuery =
score.Query
Alias for score.Scores.
pub type Scores =
score.Scores
Values
pub fn decode_scores(
body: String,
) -> Result(score.Scores, json.DecodeError)
See score.decode.
pub fn list_scores(
c: client.Client,
q: score.Query,
) -> Result(score.Scores, client.Error)
See score.list. Erlang-only.
pub fn new(
base_url base_url: String,
public_key public_key: String,
secret_key secret_key: String,
) -> client.Client
See client.new.
pub fn with_data_type(
q: score.Query,
data_type: String,
) -> score.Query
See score.with_data_type.
pub fn with_dataset_run_id(
q: score.Query,
dataset_run_id: String,
) -> score.Query
pub fn with_from_timestamp(
q: score.Query,
from: String,
) -> score.Query
pub fn with_session_id(
q: score.Query,
session_id: String,
) -> score.Query
pub fn with_to_timestamp(
q: score.Query,
to: String,
) -> score.Query
pub fn with_trace_id(
q: score.Query,
trace_id: String,
) -> score.Query
See score.with_trace_id.
pub fn with_user_id(
q: score.Query,
user_id: String,
) -> score.Query
See score.with_user_id.