Langfuse
langfuseOpen source LLM engineering platform. Traces, evals, prompt management and metrics to debug and improve your LLM application.
Acciones disponibles (13)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Create ScoreLANGFUSE_CREATE_SCOREAcciónAttach an evaluation score to exactly one Langfuse trace, session, or dataset run, optionally narrowing a trace score to an observation.
LANGFUSE_CREATE_SCOREAcciónAttach an evaluation score to exactly one Langfuse trace, session, or dataset run, optionally narrowing a trace score to an observation.
Parámetros de entrada
namestringObligatorioScore name.
valueanyObligatorioNumeric value for NUMERIC or BOOLEAN scores (BOOLEAN uses 1 or 0), or a string for CATEGORICAL, TEXT, or CORRECTION scores.
sourcestringenumScore source. ANNOTATION requires config_id unless data_type is CORRECTION.
APIANNOTATIONcommentstringHuman-readable explanation of the score.
metadataobjectArbitrary JSON metadata to associate with the score.
queue_idstringAnnotation queue associated with this score.
score_idstringOptional caller-supplied score ID.
trace_idstringTrace target. May be combined with observation_id.
config_idstringScore configuration ID used to validate and infer compatible score fields.
data_typestringenumScore data type. Langfuse infers it when config_id is set; otherwise it defaults to NUMERIC.
NUMERICBOOLEANCATEGORICALTEXTCORRECTIONsession_idstringSession target.
environmentstringLowercase alphanumeric environment with hyphens or underscores; must not start with 'langfuse'.
dataset_run_idstringDataset run or experiment target.
observation_idstringObservation target within trace_id. Cannot be used alone.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Annotation QueueLANGFUSE_GET_ANNOTATION_QUEUEAcciónRetrieve one Langfuse annotation queue by its ID.
LANGFUSE_GET_ANNOTATION_QUEUEAcciónRetrieve one Langfuse annotation queue by its ID.
Parámetros de entrada
queue_idstringObligatorioUnique identifier of the annotation queue to retrieve.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get PromptLANGFUSE_GET_PROMPTAcciónRetrieve a Langfuse text or chat prompt by name, deployment label, or exact version, with optional dependency resolution.
LANGFUSE_GET_PROMPTAcciónRetrieve a Langfuse text or chat prompt by name, deployment label, or exact version, with optional dependency resolution.
Parámetros de entrada
labelstringDeployment label. Cannot be combined with version; defaults upstream to production when neither selector is set.
resolvebooleanResolve prompt dependencies. Set false only to inspect the raw stored prompt.
versionintegerExact prompt version. Cannot be combined with label.
prompt_namestringObligatorioPrompt name, including any folder path. Folder separators are URL-encoded as part of the path value.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Annotation QueuesLANGFUSE_LIST_ANNOTATION_QUEUESAcciónList annotation queues configured for human evaluation in the connected Langfuse project.
LANGFUSE_LIST_ANNOTATION_QUEUESAcciónList annotation queues configured for human evaluation in the connected Langfuse project.
Parámetros de entrada
limitintegerMaximum queues in this page.
next_cursorstringContinuation token returned by the previous call; do not construct it manually.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Dataset ItemsLANGFUSE_LIST_DATASET_ITEMSAcciónList dataset items, optionally scoped to a dataset, source trace or observation, or historical dataset version.
LANGFUSE_LIST_DATASET_ITEMSAcciónList dataset items, optionally scoped to a dataset, source trace or observation, or historical dataset version.
Parámetros de entrada
limitintegerMaximum dataset items in this page.
versionstringReturn the dataset state at this UTC RFC 3339 timestamp. Requires dataset_name.
next_cursorstringContinuation token returned by the previous call. Omit for the first page and do not construct it manually.
dataset_namestringDataset name to list items from.
source_trace_idstringFilter by source trace ID.
source_observation_idstringFilter by source observation ID.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Dataset Run ItemsLANGFUSE_LIST_DATASET_RUN_ITEMSAcciónList run items for a specific Langfuse dataset and run name.
LANGFUSE_LIST_DATASET_RUN_ITEMSAcciónList run items for a specific Langfuse dataset and run name.
Parámetros de entrada
pageintegerProvider page number, starting at 1.
limitintegerMaximum run items to return on this page.
runNamestringObligatorioDataset run name to filter by.
datasetIdstringObligatorioUnique identifier of the dataset to filter by.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List DatasetsLANGFUSE_LIST_DATASETSAcciónList datasets available to the connected Langfuse project.
LANGFUSE_LIST_DATASETSAcciónList datasets available to the connected Langfuse project.
Parámetros de entrada
limitintegerMaximum datasets in this page.
next_cursorstringContinuation token returned by the previous call; do not construct it manually.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List ExperimentsLANGFUSE_LIST_EXPERIMENTSAcciónList Langfuse experiments active in a required time range, optionally including metadata and directly attached scores.
LANGFUSE_LIST_EXPERIMENTSAcciónList Langfuse experiments active in a required time range, optionally including metadata and directly attached scores.
Parámetros de entrada
limitintegerMaximum experiments in this page (1-100).
namesstringComma-separated experiment names.
fieldsstringComma-separated field groups to return: core, metadata, scores.
dataset_idsstringComma-separated dataset IDs.
filter_jsonstringJSON-encoded structured filters over id, name, and datasetId.
next_cursorstringContinuation cursor returned by the previous call. Omit for the first page.
score_limitintegerMaximum attached scores per experiment when fields includes scores (1-50).
to_start_timestringInclude experiments starting before this ISO 8601 timestamp.
experiment_idsstringComma-separated experiment IDs.
from_start_timestringObligatorioInclude experiments active on or after this ISO 8601 timestamp.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List ModelsLANGFUSE_LIST_MODELSAcciónList Langfuse-managed and project-custom model pricing definitions used for usage and cost calculation.
LANGFUSE_LIST_MODELSAcciónList Langfuse-managed and project-custom model pricing definitions used for usage and cost calculation.
Parámetros de entrada
limitintegerMaximum model definitions in this page.
next_cursorstringContinuation token returned by the previous call. Omit for the first page and do not construct this token manually.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List ObservationsLANGFUSE_LIST_OBSERVATIONSAcciónSearch Langfuse observations such as generations, spans, events, agents, and tool calls, selecting only the field groups needed.
LANGFUSE_LIST_OBSERVATIONSAcciónSearch Langfuse observations such as generations, spans, events, agents, and tool calls, selecting only the field groups needed.
Parámetros de entrada
namestringFilter by observation name.
levelstringenumFilter by observation level.
DEBUGDEFAULTWARNINGERRORlimitintegerMaximum observations in this page (1-1000).
fieldsstringComma-separated field groups to return: core, basic, time, io, metadata, model, usage, prompt, metrics, trace_context.
user_idstringFilter by associated user ID.
versionstringFilter by observation version.
trace_idstringFilter by trace ID.
session_idstringFilter by session ID.
filter_jsonstringJSON-encoded structured filter array. When set, it takes precedence over individual filters.
next_cursorstringContinuation cursor returned by the previous call. Omit for the first page.
environmentsstring[]Return observations from any of these environments.
to_start_timestringInclude observations starting before this ISO 8601 timestamp.
expand_metadatastringComma-separated metadata keys whose values should not be truncated.
from_start_timestringInclude observations starting at or after this ISO 8601 timestamp.
observation_typestringenumFilter by observation type.
GENERATIONSPANEVENTAGENTTOOLCHAINRETRIEVEREVALUATOREMBEDDINGGUARDRAILis_root_observationbooleanFilter by logical root status.
parent_observation_idstringFilter by physical parent observation ID.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List ScoresLANGFUSE_LIST_SCORESAcciónSearch numeric, boolean, categorical, text, and correction scores with subject and annotation context.
LANGFUSE_LIST_SCORESAcciónSearch numeric, boolean, categorical, text, and correction scores with subject and annotation context.
Parámetros de entrada
limitintegerMaximum scores in this page (1-100); larger values are rejected.
namesstring[]Score names to return.
fieldsstring[]Optional score field groups to include.
valuesstring[]Exact score values to match; requires one compatible data type.
sourcesstring[]Score sources to return.
queue_idsstring[]Annotation queue IDs to return.
score_idsstring[]Score IDs to return.
trace_idsstring[]Trace IDs to return; mutually exclusive with session and experiment IDs.
value_maxnumberInclusive numeric upper bound; requires data_types=NUMERIC.
value_minnumberInclusive numeric lower bound; requires data_types=NUMERIC.
config_idsstring[]Score configuration IDs to return.
data_typesstring[]Score data types to return.
next_cursorstringContinuation cursor returned by the previous call.
session_idsstring[]Session IDs to return; mutually exclusive with trace, observation, and experiment IDs.
environmentsstring[]Environments to return.
to_timestampstringExclusive score timestamp upper bound.
experiment_idsstring[]Dataset run or experiment IDs to return; mutually exclusive with other subject filters.
from_timestampstringInclusive score timestamp lower bound.
author_user_idsstring[]Annotation author user IDs to return.
observation_idsstring[]Observation IDs to return; requires trace_ids.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Query MetricsLANGFUSE_QUERY_METRICSAcciónRun an aggregate Langfuse metrics query over observations or numeric, boolean, or categorical scores.
LANGFUSE_QUERY_METRICSAcciónRun an aggregate Langfuse metrics query over observations or numeric, boolean, or categorical scores.
Parámetros de entrada
viewstringObligatorioenumLangfuse data view to aggregate.
observationsscores-numericscores-booleanscores-categoricalfiltersobject[]Optional typed conditions used to restrict source rows.
metricsobject[]ObligatorioOne or more measures and aggregations to calculate.
order_byobject[]Optional ordered list of result sort rules.
row_limitintegerMaximum aggregate rows to return (1-1000).
dimensionsobject[]Optional low-cardinality fields by which to group results.
to_timestampstringObligatorioExclusive ISO 8601 end of the metrics time range; must be after from_timestamp.
from_timestampstringObligatorioInclusive ISO 8601 start of the metrics time range.
histogram_binsintegerNumber of histogram bins when using histogram aggregation (1-100).
time_granularitystringenumOptional time bucket granularity for grouping results.
autominutehourdayweekmonth
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Upsert LLM ConnectionLANGFUSE_UPSERT_LLM_CONNECTIONAcciónCreate or update a Langfuse LLM provider connection by provider name.
LANGFUSE_UPSERT_LLM_CONNECTIONAcciónCreate or update a Langfuse LLM provider connection by provider name.
Parámetros de entrada
configobjectAdapter-specific configuration, such as a Bedrock region or Vertex AI location.
adapterstringObligatorioenumAdapter used to call the LLM provider.
anthropicopenaiazurebedrockgoogle-vertex-aigoogle-ai-studiobaseURLstringOptional custom LLM provider or gateway base URL.
providerstringObligatorioUnique provider name used to create or update the connection.
secretKeystringObligatorioSecret credential Langfuse stores for the LLM provider.
customModelsstring[]Custom model names exposed through this connection.
extraHeadersobjectAdditional headers sent to the LLM provider.
withDefaultModelsbooleanWhether to include the adapter's default models.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not