Volver al catálogo

Langfuse

langfuse

Open source LLM engineering platform. Traces, evals, prompt management and metrics to debug and improve your LLM application.

Acciones
13
Triggers
0
Autenticación
—
OAuth gestionado
No
Información técnica: el detalle de parámetros, schemas y triggers de esta página está pensado para equipos de integración. Si solo necesitas saber si tu herramienta favorita está disponible, basta con ver la lista de acciones.

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ón

Attach an evaluation score to exactly one Langfuse trace, session, or dataset run, optionally narrowing a trace score to an observation.

Parámetros de entrada

  • namestringObligatorio

    Score name.

  • valueanyObligatorio

    Numeric value for NUMERIC or BOOLEAN scores (BOOLEAN uses 1 or 0), or a string for CATEGORICAL, TEXT, or CORRECTION scores.

  • sourcestringenum

    Score source. ANNOTATION requires config_id unless data_type is CORRECTION.

    APIANNOTATION
  • commentstring

    Human-readable explanation of the score.

  • metadataobject

    Arbitrary JSON metadata to associate with the score.

  • queue_idstring

    Annotation queue associated with this score.

  • score_idstring

    Optional caller-supplied score ID.

  • trace_idstring

    Trace target. May be combined with observation_id.

  • config_idstring

    Score configuration ID used to validate and infer compatible score fields.

  • data_typestringenum

    Score data type. Langfuse infers it when config_id is set; otherwise it defaults to NUMERIC.

    NUMERICBOOLEANCATEGORICALTEXTCORRECTION
  • session_idstring

    Session target.

  • environmentstring

    Lowercase alphanumeric environment with hyphens or underscores; must not start with 'langfuse'.

  • dataset_run_idstring

    Dataset run or experiment target.

  • observation_idstring

    Observation target within trace_id. Cannot be used alone.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Annotation QueueLANGFUSE_GET_ANNOTATION_QUEUEAcción

Retrieve one Langfuse annotation queue by its ID.

Parámetros de entrada

  • queue_idstringObligatorio

    Unique identifier of the annotation queue to retrieve.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get PromptLANGFUSE_GET_PROMPTAcción

Retrieve a Langfuse text or chat prompt by name, deployment label, or exact version, with optional dependency resolution.

Parámetros de entrada

  • labelstring

    Deployment label. Cannot be combined with version; defaults upstream to production when neither selector is set.

  • resolveboolean

    Resolve prompt dependencies. Set false only to inspect the raw stored prompt.

  • versioninteger

    Exact prompt version. Cannot be combined with label.

  • prompt_namestringObligatorio

    Prompt name, including any folder path. Folder separators are URL-encoded as part of the path value.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Annotation QueuesLANGFUSE_LIST_ANNOTATION_QUEUESAcción

List annotation queues configured for human evaluation in the connected Langfuse project.

Parámetros de entrada

  • limitinteger

    Maximum queues in this page.

  • next_cursorstring

    Continuation token returned by the previous call; do not construct it manually.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Dataset ItemsLANGFUSE_LIST_DATASET_ITEMSAcción

List dataset items, optionally scoped to a dataset, source trace or observation, or historical dataset version.

Parámetros de entrada

  • limitinteger

    Maximum dataset items in this page.

  • versionstring

    Return the dataset state at this UTC RFC 3339 timestamp. Requires dataset_name.

  • next_cursorstring

    Continuation token returned by the previous call. Omit for the first page and do not construct it manually.

  • dataset_namestring

    Dataset name to list items from.

  • source_trace_idstring

    Filter by source trace ID.

  • source_observation_idstring

    Filter by source observation ID.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Dataset Run ItemsLANGFUSE_LIST_DATASET_RUN_ITEMSAcción

List run items for a specific Langfuse dataset and run name.

Parámetros de entrada

  • pageinteger

    Provider page number, starting at 1.

  • limitinteger

    Maximum run items to return on this page.

  • runNamestringObligatorio

    Dataset run name to filter by.

  • datasetIdstringObligatorio

    Unique identifier of the dataset to filter by.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List DatasetsLANGFUSE_LIST_DATASETSAcción

List datasets available to the connected Langfuse project.

Parámetros de entrada

  • limitinteger

    Maximum datasets in this page.

  • next_cursorstring

    Continuation token returned by the previous call; do not construct it manually.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List ExperimentsLANGFUSE_LIST_EXPERIMENTSAcción

List Langfuse experiments active in a required time range, optionally including metadata and directly attached scores.

Parámetros de entrada

  • limitinteger

    Maximum experiments in this page (1-100).

  • namesstring

    Comma-separated experiment names.

  • fieldsstring

    Comma-separated field groups to return: core, metadata, scores.

  • dataset_idsstring

    Comma-separated dataset IDs.

  • filter_jsonstring

    JSON-encoded structured filters over id, name, and datasetId.

  • next_cursorstring

    Continuation cursor returned by the previous call. Omit for the first page.

  • score_limitinteger

    Maximum attached scores per experiment when fields includes scores (1-50).

  • to_start_timestring

    Include experiments starting before this ISO 8601 timestamp.

  • experiment_idsstring

    Comma-separated experiment IDs.

  • from_start_timestringObligatorio

    Include experiments active on or after this ISO 8601 timestamp.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List ModelsLANGFUSE_LIST_MODELSAcción

List Langfuse-managed and project-custom model pricing definitions used for usage and cost calculation.

Parámetros de entrada

  • limitinteger

    Maximum model definitions in this page.

  • next_cursorstring

    Continuation token returned by the previous call. Omit for the first page and do not construct this token manually.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List ObservationsLANGFUSE_LIST_OBSERVATIONSAcción

Search Langfuse observations such as generations, spans, events, agents, and tool calls, selecting only the field groups needed.

Parámetros de entrada

  • namestring

    Filter by observation name.

  • levelstringenum

    Filter by observation level.

    DEBUGDEFAULTWARNINGERROR
  • limitinteger

    Maximum observations in this page (1-1000).

  • fieldsstring

    Comma-separated field groups to return: core, basic, time, io, metadata, model, usage, prompt, metrics, trace_context.

  • user_idstring

    Filter by associated user ID.

  • versionstring

    Filter by observation version.

  • trace_idstring

    Filter by trace ID.

  • session_idstring

    Filter by session ID.

  • filter_jsonstring

    JSON-encoded structured filter array. When set, it takes precedence over individual filters.

  • next_cursorstring

    Continuation cursor returned by the previous call. Omit for the first page.

  • environmentsstring[]

    Return observations from any of these environments.

  • to_start_timestring

    Include observations starting before this ISO 8601 timestamp.

  • expand_metadatastring

    Comma-separated metadata keys whose values should not be truncated.

  • from_start_timestring

    Include observations starting at or after this ISO 8601 timestamp.

  • observation_typestringenum

    Filter by observation type.

    GENERATIONSPANEVENTAGENTTOOLCHAINRETRIEVEREVALUATOREMBEDDINGGUARDRAIL
  • is_root_observationboolean

    Filter by logical root status.

  • parent_observation_idstring

    Filter by physical parent observation ID.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List ScoresLANGFUSE_LIST_SCORESAcción

Search numeric, boolean, categorical, text, and correction scores with subject and annotation context.

Parámetros de entrada

  • limitinteger

    Maximum 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_maxnumber

    Inclusive numeric upper bound; requires data_types=NUMERIC.

  • value_minnumber

    Inclusive numeric lower bound; requires data_types=NUMERIC.

  • config_idsstring[]

    Score configuration IDs to return.

  • data_typesstring[]

    Score data types to return.

  • next_cursorstring

    Continuation 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_timestampstring

    Exclusive score timestamp upper bound.

  • experiment_idsstring[]

    Dataset run or experiment IDs to return; mutually exclusive with other subject filters.

  • from_timestampstring

    Inclusive 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

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Query MetricsLANGFUSE_QUERY_METRICSAcción

Run an aggregate Langfuse metrics query over observations or numeric, boolean, or categorical scores.

Parámetros de entrada

  • viewstringObligatorioenum

    Langfuse data view to aggregate.

    observationsscores-numericscores-booleanscores-categorical
  • filtersobject[]

    Optional typed conditions used to restrict source rows.

  • metricsobject[]Obligatorio

    One or more measures and aggregations to calculate.

  • order_byobject[]

    Optional ordered list of result sort rules.

  • row_limitinteger

    Maximum aggregate rows to return (1-1000).

  • dimensionsobject[]

    Optional low-cardinality fields by which to group results.

  • to_timestampstringObligatorio

    Exclusive ISO 8601 end of the metrics time range; must be after from_timestamp.

  • from_timestampstringObligatorio

    Inclusive ISO 8601 start of the metrics time range.

  • histogram_binsinteger

    Number of histogram bins when using histogram aggregation (1-100).

  • time_granularitystringenum

    Optional time bucket granularity for grouping results.

    autominutehourdayweekmonth

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Upsert LLM ConnectionLANGFUSE_UPSERT_LLM_CONNECTIONAcción

Create or update a Langfuse LLM provider connection by provider name.

Parámetros de entrada

  • configobject

    Adapter-specific configuration, such as a Bedrock region or Vertex AI location.

  • adapterstringObligatorioenum

    Adapter used to call the LLM provider.

    anthropicopenaiazurebedrockgoogle-vertex-aigoogle-ai-studio
  • baseURLstring

    Optional custom LLM provider or gateway base URL.

  • providerstringObligatorio

    Unique provider name used to create or update the connection.

  • secretKeystringObligatorio

    Secret credential Langfuse stores for the LLM provider.

  • customModelsstring[]

    Custom model names exposed through this connection.

  • extraHeadersobject

    Additional headers sent to the LLM provider.

  • withDefaultModelsboolean

    Whether to include the adapter's default models.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not