πͺ’ Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
fix(fern/scores): split scores v3 back into scores-v3.yml to avoid breaking SDK groups (#14162)
Niklas Semmler845137bf1bf2
diff --git a/fern/apis/server/definition/legacy/scores-v2.yml b/fern/apis/server/definition/legacy/scores-v2.ymldeleted file mode 100644index 0070b95163..0000000000--- a/fern/apis/server/definition/legacy/scores-v2.yml+++ /dev/null@@ -1,158 +0,0 @@-# yaml-language-server: $schema=https://raw.githubusercontent.com/fern-api/fern/main/fern.schema.json-imports:- pagination: ../utils/pagination.yml- commons: ../commons.yml-service:- auth: true- base-path: /api/public/v2- endpoints:- get-many:- docs: |- **Deprecated.** Use `GET /api/public/v3/scores` instead. This endpoint- is no longer available on Langfuse v4 and later.-- Get a list of scores (supports both trace and session scores)- method: GET- path: /scores- request:- name: GetScoresRequest- query-parameters:- page:- type: optional<integer>- docs: Page number, starts at 1.- limit:- type: optional<integer>- docs: Limit of items per page. Maximum 100. Defaults to 50. Requests with a limit greater than 100 return HTTP 400. If you encounter api issues due to too large page sizes, try to reduce the limit.- userId:- type: optional<string>- docs: Retrieve only scores with this userId associated to the trace.- name:- type: optional<string>- docs: Retrieve only scores with this name.- fromTimestamp:- type: optional<datetime>- docs: Optional filter to only include scores created on or after a certain datetime (ISO 8601)- toTimestamp:- type: optional<datetime>- docs: Optional filter to only include scores created before a certain datetime (ISO 8601)- environment:- type: optional<string>- allow-multiple: true- docs: Optional filter for scores where the environment is one of the provided values.- source:- type: optional<commons.ScoreSource>- docs: Retrieve only scores from a specific source.- operator:- type: optional<string>- docs: Retrieve only scores with <operator> value.- value:- type: optional<double>- docs: Retrieve only scores with <operator> value.- scoreIds:- type: optional<string>- docs: Comma-separated list of score IDs to limit the results to.- configId:- type: optional<string>- docs: Retrieve only scores with a specific configId.- sessionId:- type: optional<string>- docs: Retrieve only scores with a specific sessionId.- datasetRunId:- type: optional<string>- docs: Retrieve only scores with a specific datasetRunId.- traceId:- type: optional<string>- docs: Retrieve only scores with a specific traceId.- observationId:- type: optional<string>- docs: Comma-separated list of observation IDs to filter scores by.- queueId:- type: optional<string>- docs: Retrieve only scores with a specific annotation queueId.- dataType:- type: optional<commons.ScoreDataType>- docs: Retrieve only scores with a specific dataType.- traceTags:- type: optional<string>- allow-multiple: true- docs: Only scores linked to traces that include all of these tags will be returned.- fields:- type: optional<string>- docs: "Comma-separated list of field groups to include in the response. Available field groups: 'score' (core score fields), 'trace' (trace properties: userId, tags, environment, sessionId). If not specified, both 'score' and 'trace' are returned by default. Example: 'score' to exclude trace data, 'score,trace' to include both. Note: When filtering by trace properties (using userId or traceTags parameters), the 'trace' field group must be included, otherwise a 400 error will be returned."- filter:- type: optional<string>- docs: >- A JSON stringified array of filter objects. Each object requires type, column, operator, and value.- Supports filtering by score metadata using the stringObject type.- Example: [{"type":"stringObject","column":"metadata","key":"user_id","operator":"=","value":"abc123"}].- Supported types: stringObject (metadata key-value filtering), string, number, datetime, stringOptions, arrayOptions.- Supported operators for stringObject: =, contains, does not contain, starts with, ends with.- response: GetScoresResponse- get-by-id:- docs: |- **Deprecated.** Use `GET /api/public/v3/scores` with the `id` filter- instead. This endpoint is no longer available on Langfuse v4 and later.-- Get a score (supports both trace and session scores)- method: GET- path: /scores/{scoreId}- path-parameters:- scoreId:- type: string- docs: The unique langfuse identifier of a score- response: commons.Score--types:- GetScoresResponseTraceData:- properties:- userId:- type: optional<string>- docs: The user ID associated with the trace referenced by score- tags:- type: optional<list<string>>- docs: A list of tags associated with the trace referenced by score- environment:- type: optional<string>- docs: The environment of the trace referenced by score- sessionId:- type: optional<string>- docs: The session ID associated with the trace referenced by score-- GetScoresResponseDataNumeric:- extends: commons.NumericScore- properties:- trace: optional<GetScoresResponseTraceData>-- GetScoresResponseDataCategorical:- extends: commons.CategoricalScore- properties:- trace: optional<GetScoresResponseTraceData>-- GetScoresResponseDataBoolean:- extends: commons.BooleanScore- properties:- trace: optional<GetScoresResponseTraceData>-- GetScoresResponseDataCorrection:- extends: commons.CorrectionScore- properties:- trace: optional<GetScoresResponseTraceData>-- GetScoresResponseDataText:- extends: commons.TextScore- properties:- trace: optional<GetScoresResponseTraceData>-- GetScoresResponseData:- discriminant: dataType- union:- NUMERIC: GetScoresResponseDataNumeric- CATEGORICAL: GetScoresResponseDataCategorical- BOOLEAN: GetScoresResponseDataBoolean- CORRECTION: GetScoresResponseDataCorrection- TEXT: GetScoresResponseDataText-- GetScoresResponse:- properties:- data: list<GetScoresResponseData>- meta: pagination.MetaResponsediff --git a/fern/apis/server/definition/scores-v3.yml b/fern/apis/server/definition/scores-v3.ymlnew file mode 100644index 0000000000..24f03c62ec--- /dev/null+++ b/fern/apis/server/definition/scores-v3.yml@@ -0,0 +1,252 @@+# yaml-language-server: $schema=https://raw.githubusercontent.com/fern-api/fern/main/fern.schema.json+imports:+ commons: ./commons.yml++service:+ auth: true+ base-path: /api/public+ endpoints:+ getManyV3:+ docs: |+ Get a list of scores with a polymorphic `value` field (v3).++ The `value` field type depends on `dataType`:+ - `NUMERIC` β number+ - `BOOLEAN` β boolean+ - `CATEGORICAL`, `TEXT`, `CORRECTION` β string++ The response always includes the core fields: id, projectId, name,+ value, dataType, source, timestamp, environment, createdAt, updatedAt.++ Additional field groups can be requested via the `fields` parameter:+ - `details` β adds comment, configId, metadata+ - `subject` β adds the subject object describing the entity the score+ is attached to: kind (trace, observation, session, or experiment),+ id, and traceId for observation-level scores+ - `annotation` β adds authorUserId, queueId++ Unknown group names return HTTP 400.+ method: GET+ path: /v3/scores+ request:+ name: GetScoresV3Request+ query-parameters:+ limit:+ type: optional<integer>+ docs: Number of items per page. Maximum 100, default 50. Requests with a limit greater than 100 return HTTP 400.+ cursor:+ type: optional<string>+ docs: URL-safe base64 (base64url) cursor for pagination. Use the cursor from the previous response to get the next page. Absent on the final page.+ fields:+ type: optional<string>+ docs: >+ Comma-separated field groups to include in addition to the+ always-returned core fields. Allowed: details, subject,+ annotation β see the endpoint description for the fields each+ group adds. Unknown names return HTTP 400.+ id:+ type: optional<string>+ docs: Comma-separated list of score IDs to filter by (OR within, AND across filters).+ name:+ type: optional<string>+ docs: Comma-separated list of score names to filter by.+ source:+ type: optional<string>+ docs: Comma-separated list of score sources to filter by (e.g. API, ANNOTATION, EVAL). Case-insensitive β `api` and `API` are equivalent.+ dataType:+ type: optional<string>+ docs: Comma-separated list of data types to filter by (NUMERIC, BOOLEAN, CATEGORICAL, TEXT, CORRECTION). Case-insensitive β `numeric` and `NUMERIC` are equivalent. Must be a single value when used with value, valueMin, or valueMax; otherwise the request returns HTTP 400. Must be NUMERIC when used with valueMin or valueMax.+ environment:+ type: optional<string>+ docs: Comma-separated list of environments to filter by.+ configId:+ type: optional<string>+ docs: Comma-separated list of score config IDs to filter by.+ queueId:+ type: optional<string>+ docs: Comma-separated list of annotation queue IDs to filter by.+ authorUserId:+ type: optional<string>+ docs: Comma-separated list of author user IDs to filter by.+ value:+ type: optional<string>+ docs: >+ Comma-separated list of exact values to filter by. Requires a+ single dataType from NUMERIC, BOOLEAN, or CATEGORICAL; any other+ dataType, multiple dataTypes, or omitting dataType returns HTTP+ 400. For BOOLEAN, each value must be "true" or "false"; for+ NUMERIC, each value must be a finite number. Otherwise the+ request returns HTTP 400.+ valueMin:+ type: optional<double>+ docs: Inclusive lower bound on the numeric value. Requires dataType=NUMERIC as a single value; otherwise the request returns HTTP 400.+ valueMax:+ type: optional<double>+ docs: Inclusive upper bound on the numeric value. Requires dataType=NUMERIC as a single value; otherwise the request returns HTTP 400.+ traceId:+ type: optional<string>+ docs: Comma-separated list of trace IDs to filter by. Mutually exclusive with sessionId, experimentId. May be combined with observationId to scope the observation lookup to a specific trace.+ sessionId:+ type: optional<string>+ docs: Comma-separated list of session IDs to filter by. Mutually exclusive with traceId, observationId, experimentId.+ observationId:+ type: optional<string>+ docs: >+ Comma-separated list of observation IDs to filter by. Requires traceId to be specified,+ because observation IDs are scoped to a trace. Mutually exclusive with sessionId, experimentId.+ Returns HTTP 400 when used without traceId.+ experimentId:+ type: optional<string>+ docs: Comma-separated list of dataset run IDs (experiment IDs) to filter by. Mutually exclusive with traceId, sessionId, observationId.+ fromTimestamp:+ type: optional<datetime>+ docs: Inclusive lower bound on the score timestamp.+ toTimestamp:+ type: optional<datetime>+ docs: Exclusive upper bound on the score timestamp.+ response: GetScoresV3Response++types:+ ScoreSubjectTraceV3:+ properties:+ id:+ type: string+ docs: The trace ID.++ ScoreSubjectObservationV3:+ properties:+ id:+ type: string+ docs: The observation ID.+ traceId:+ type: optional<string>+ docs: The parent trace ID, if available.++ ScoreSubjectSessionV3:+ properties:+ id:+ type: string+ docs: The session ID.++ ScoreSubjectExperimentV3:+ properties:+ id:+ type: string+ docs: The dataset run ID (experiment ID).++ ScoreSubjectV3:+ docs: A reference to the entity this score is attached to. Discriminated by "kind" β one of trace, observation, session, or experiment.+ discriminant: kind+ union:+ trace:+ type: ScoreSubjectTraceV3+ docs: Subject is a trace-level score.+ observation:+ type: ScoreSubjectObservationV3+ docs: Subject is an observation-level score scoped to a trace.+ session:+ type: ScoreSubjectSessionV3+ docs: Subject is a session-level score.+ experiment:+ type: ScoreSubjectExperimentV3+ docs: Subject is a dataset run (experiment) score.++ # Score model types keep the V3 suffix because commons.yml already declares+ # Score, NumericScore, BooleanScore, etc. for the v1/v2 API surface.+ # Fern uses a flat global namespace, so those names are taken.+ BaseScoreV3:+ properties:+ id: string+ projectId: string+ name: string+ source: commons.ScoreSource+ timestamp: datetime+ environment:+ type: string+ docs: The environment from which this score originated.+ createdAt: datetime+ updatedAt: datetime+ comment:+ type: optional<nullable<string>>+ docs: Optional comment attached to the score. Present when "details" is included in the fields parameter.+ configId:+ type: optional<nullable<string>>+ docs: The score config ID, if this score was created from a config. Present when "details" is included in the fields parameter.+ metadata:+ type: optional<map<string, unknown>>+ docs: Arbitrary metadata attached to the score. Present when "details" is included in the fields parameter.+ authorUserId:+ type: optional<nullable<string>>+ docs: The user who created this score, if available. Present when "annotation" is included in the fields parameter.+ queueId:+ type: optional<nullable<string>>+ docs: The annotation queue this score belongs to, if any. Present when "annotation" is included in the fields parameter.+ subject:+ type: optional<ScoreSubjectV3>+ docs: The entity this score is attached to (trace, observation, session, or experiment). Present when "subject" is included in the fields parameter.++ NumericScoreV3:+ extends: BaseScoreV3+ properties:+ value:+ type: double+ docs: The numeric value of the score.++ BooleanScoreV3:+ extends: BaseScoreV3+ properties:+ value:+ type: boolean+ docs: The boolean value of the score.++ CategoricalScoreV3:+ extends: BaseScoreV3+ properties:+ value:+ type: string+ docs: The string category value of the score.++ TextScoreV3:+ extends: BaseScoreV3+ properties:+ value:+ type: string+ docs: The text content of the score.++ CorrectionScoreV3:+ extends: BaseScoreV3+ properties:+ value:+ type: string+ docs: The correction content of the score. Empty string if not set.++ ScoreV3:+ discriminant: dataType+ union:+ NUMERIC:+ type: NumericScoreV3+ docs: Score with NUMERIC data type. Value is a number.+ BOOLEAN:+ type: BooleanScoreV3+ docs: Score with BOOLEAN data type. Value is a boolean.+ CATEGORICAL:+ type: CategoricalScoreV3+ docs: Score with CATEGORICAL data type. Value is a string category.+ TEXT:+ type: TextScoreV3+ docs: Score with TEXT data type. Value is a string.+ CORRECTION:+ type: CorrectionScoreV3+ docs: Score with CORRECTION data type. Value is the correction string.++ GetScoresV3Meta:+ properties:+ limit: integer+ cursor:+ type: optional<string>+ docs: URL-safe base64 (base64url) cursor for the next page. Absent when there are no more results.++ GetScoresV3Response:+ properties:+ data: list<ScoreV3>+ meta: GetScoresV3Metadiff --git a/fern/apis/server/definition/scores.yml b/fern/apis/server/definition/scores.ymlindex 4d794a5e11..4353fbd4ec 100644--- a/fern/apis/server/definition/scores.yml+++ b/fern/apis/server/definition/scores.yml@@ -1,252 +1,158 @@# yaml-language-server: $schema=https://raw.githubusercontent.com/fern-api/fern/main/fern.schema.jsonimports:+ pagination: ./utils/pagination.ymlcommons: ./commons.yml-service:auth: true- base-path: /api/public+ base-path: /api/public/v2endpoints:- getMany:+ get-many:docs: |- Get a list of scores with a polymorphic `value` field (v3).-- The `value` field type depends on `dataType`:- - `NUMERIC` β number- - `BOOLEAN` β boolean- - `CATEGORICAL`, `TEXT`, `CORRECTION` β string-- The response always includes the core fields: id, projectId, name,- value, dataType, source, timestamp, environment, createdAt, updatedAt.-- Additional field groups can be requested via the `fields` parameter:- - `details` β adds comment, configId, metadata- - `subject` β adds the subject object describing the entity the score- is attached to: kind (trace, observation, session, or experiment),- id, and traceId for observation-level scores- - `annotation` β adds authorUserId, queueId+ **Deprecated.** Use `GET /api/public/v3/scores` instead. This endpoint+ is no longer available on Langfuse v4 and later.- Unknown group names return HTTP 400.+ Get a list of scores (supports both trace and session scores)method: GET- path: /v3/scores+ path: /scoresrequest:name: GetScoresRequestquery-parameters:+ page:+ type: optional<integer>+ docs: Page number, starts at 1.limit:type: optional<integer>- docs: Number of items per page. Maximum 100, default 50. Requests with a limit greater than 100 return HTTP 400.- cursor:- type: optional<string>- docs: URL-safe base64 (base64url) cursor for pagination. Use the cursor from the previous response to get the next page. Absent on the final page.- fields:+ docs: Limit of items per page. Maximum 100. Defaults to 50. Requests with a limit greater than 100 return HTTP 400. If you encounter api issues due to too large page sizes, try to reduce the limit.+ userId:type: optional<string>- docs: >- Comma-separated field groups to include in addition to the- always-returned core fields. Allowed: details, subject,- annotation β see the endpoint description for the fields each- group adds. Unknown names return HTTP 400.- id:- type: optional<string>- docs: Comma-separated list of score IDs to filter by (OR within, AND across filters).+ docs: Retrieve only scores with this userId associated to the trace.name:type: optional<string>- docs: Comma-separated list of score names to filter by.- source:+ docs: Retrieve only scores with this name.+ fromTimestamp:+ type: optional<datetime>+ docs: Optional filter to only include scores created on or after a certain datetime (ISO 8601)+ toTimestamp:+ type: optional<datetime>+ docs: Optional filter to only include scores created before a certain datetime (ISO 8601)+ environment:type: optional<string>- docs: Comma-separated list of score sources to filter by (e.g. API, ANNOTATION, EVAL). Case-insensitive β `api` and `API` are equivalent.- dataType:+ allow-multiple: true+ docs: Optional filter for scores where the environment is one of the provided values.+ source:+ type: optional<commons.ScoreSource>+ docs: Retrieve only scores from a specific source.+ operator:type: optional<string>- docs: Comma-separated list of data types to filter by (NUMERIC, BOOLEAN, CATEGORICAL, TEXT, CORRECTION). Case-insensitive β `numeric` and `NUMERIC` are equivalent. Must be a single value when used with value, valueMin, or valueMax; otherwise the request returns HTTP 400. Must be NUMERIC when used with valueMin or valueMax.- environment:+ docs: Retrieve only scores with <operator> value.+ value:+ type: optional<double>+ docs: Retrieve only scores with <operator> value.+ scoreIds:type: optional<string>- docs: Comma-separated list of environments to filter by.+ docs: Comma-separated list of score IDs to limit the results to.configId:type: optional<string>- docs: Comma-separated list of score config IDs to filter by.- queueId:+ docs: Retrieve only scores with a specific configId.+ sessionId:type: optional<string>- docs: Comma-separated list of annotation queue IDs to filter by.- authorUserId:+ docs: Retrieve only scores with a specific sessionId.+ datasetRunId:type: optional<string>- docs: Comma-separated list of author user IDs to filter by.- value:- type: optional<string>- docs: >- Comma-separated list of exact values to filter by. Requires a- single dataType from NUMERIC, BOOLEAN, or CATEGORICAL; any other- dataType, multiple dataTypes, or omitting dataType returns HTTP- 400. For BOOLEAN, each value must be "true" or "false"; for- NUMERIC, each value must be a finite number. Otherwise the- request returns HTTP 400.- valueMin:- type: optional<double>- docs: Inclusive lower bound on the numeric value. Requires dataType=NUMERIC as a single value; otherwise the request returns HTTP 400.- valueMax:- type: optional<double>- docs: Inclusive upper bound on the numeric value. Requires dataType=NUMERIC as a single value; otherwise the request returns HTTP 400.+ docs: Retrieve only scores with a specific datasetRunId.traceId:type: optional<string>- docs: Comma-separated list of trace IDs to filter by. Mutually exclusive with sessionId, experimentId. May be combined with observationId to scope the observation lookup to a specific trace.- sessionId:- type: optional<string>- docs: Comma-separated list of session IDs to filter by. Mutually exclusive with traceId, observationId, experimentId.+ docs: Retrieve only scores with a specific traceId.observationId:type: optional<string>- docs: >- Comma-separated list of observation IDs to filter by. Requires traceId to be specified,- because observation IDs are scoped to a trace. Mutually exclusive with sessionId, experimentId.- Returns HTTP 400 when used without traceId.- experimentId:+ docs: Comma-separated list of observation IDs to filter scores by.+ queueId:type: optional<string>- docs: Comma-separated list of dataset run IDs (experiment IDs) to filter by. Mutually exclusive with traceId, sessionId, observationId.- fromTimestamp:- type: optional<datetime>- docs: Inclusive lower bound on the score timestamp.- toTimestamp:- type: optional<datetime>- docs: Exclusive upper bound on the score timestamp.+ docs: Retrieve only scores with a specific annotation queueId.+ dataType:+ type: optional<commons.ScoreDataType>+ docs: Retrieve only scores with a specific dataType.+ traceTags:+ type: optional<string>+ allow-multiple: true+ docs: Only scores linked to traces that include all of these tags will be returned.+ fields:+ type: optional<string>+ docs: "Comma-separated list of field groups to include in the response. Available field groups: 'score' (core score fields), 'trace' (trace properties: userId, tags, environment, sessionId). If not specified, both 'score' and 'trace' are returned by default. Example: 'score' to exclude trace data, 'score,trace' to include both. Note: When filtering by trace properties (using userId or traceTags parameters), the 'trace' field group must be included, otherwise a 400 error will be returned."+ filter:+ type: optional<string>+ docs: >+ A JSON stringified array of filter objects. Each object requires type, column, operator, and value.+ Supports filtering by score metadata using the stringObject type.+ Example: [{"type":"stringObject","column":"metadata","key":"user_id","operator":"=","value":"abc123"}].+ Supported types: stringObject (metadata key-value filtering), string, number, datetime, stringOptions, arrayOptions.+ Supported operators for stringObject: =, contains, does not contain, starts with, ends with.response: GetScoresResponse+ get-by-id:+ docs: |+ **Deprecated.** Use `GET /api/public/v3/scores` with the `id` filter+ instead. This endpoint is no longer available on Langfuse v4 and later.-types:- ScoreSubjectTrace:- properties:- id:- type: string- docs: The trace ID.+ Get a score (supports both trace and session scores)+ method: GET+ path: /scores/{scoreId}+ path-parameters:+ scoreId:+ type: string+ docs: The unique langfuse identifier of a score+ response: commons.Score- ScoreSubjectObservation:+types:+ GetScoresResponseTraceData:properties:- id:- type: string- docs: The observation ID.- traceId:+ userId:type: optional<string>- docs: The parent trace ID, if available.-- ScoreSubjectSession:- properties:- id:- type: string- docs: The session ID.-- ScoreSubjectExperiment:- properties:- id:- type: string- docs: The dataset run ID (experiment ID).-- ScoreSubject:- docs: A reference to the entity this score is attached to. Discriminated by "kind" β one of trace, observation, session, or experiment.- discriminant: kind- union:- trace:- type: ScoreSubjectTrace- docs: Subject is a trace-level score.- observation:- type: ScoreSubjectObservation- docs: Subject is an observation-level score scoped to a trace.- session:- type: ScoreSubjectSession- docs: Subject is a session-level score.- experiment:- type: ScoreSubjectExperiment- docs: Subject is a dataset run (experiment) score.-- # Score model types keep the V3 suffix because commons.yml already declares- # Score, NumericScore, BooleanScore, etc. for the v1/v2 API surface.- # Fern uses a flat global namespace, so those names are taken.- BaseScoreV3:- properties:- id: string- projectId: string- name: string- source: commons.ScoreSource- timestamp: datetime+ docs: The user ID associated with the trace referenced by score+ tags:+ type: optional<list<string>>+ docs: A list of tags associated with the trace referenced by scoreenvironment:- type: string- docs: The environment from which this score originated.- createdAt: datetime- updatedAt: datetime- comment:- type: optional<nullable<string>>- docs: Optional comment attached to the score. Present when "details" is included in the fields parameter.- configId:- type: optional<nullable<string>>- docs: The score config ID, if this score was created from a config. Present when "details" is included in the fields parameter.- metadata:- type: optional<map<string, unknown>>- docs: Arbitrary metadata attached to the score. Present when "details" is included in the fields parameter.- authorUserId:- type: optional<nullable<string>>- docs: The user who created this score, if available. Present when "annotation" is included in the fields parameter.- queueId:- type: optional<nullable<string>>- docs: The annotation queue this score belongs to, if any. Present when "annotation" is included in the fields parameter.- subject:- type: optional<ScoreSubject>- docs: The entity this score is attached to (trace, observation, session, or experiment). Present when "subject" is included in the fields parameter.+ type: optional<string>+ docs: The environment of the trace referenced by score+ sessionId:+ type: optional<string>+ docs: The session ID associated with the trace referenced by score- NumericScoreV3:- extends: BaseScoreV3+ GetScoresResponseDataNumeric:+ extends: commons.NumericScoreproperties:- value:- type: double- docs: The numeric value of the score.+ trace: optional<GetScoresResponseTraceData>- BooleanScoreV3:- extends: BaseScoreV3+ GetScoresResponseDataCategorical:+ extends: commons.CategoricalScoreproperties:- value:- type: boolean- docs: The boolean value of the score.+ trace: optional<GetScoresResponseTraceData>- CategoricalScoreV3:- extends: BaseScoreV3+ GetScoresResponseDataBoolean:+ extends: commons.BooleanScoreproperties:- value:- type: string- docs: The string category value of the score.+ trace: optional<GetScoresResponseTraceData>- TextScoreV3:- extends: BaseScoreV3+ GetScoresResponseDataCorrection:+ extends: commons.CorrectionScoreproperties:- value:- type: string- docs: The text content of the score.+ trace: optional<GetScoresResponseTraceData>- CorrectionScoreV3:- extends: BaseScoreV3+ GetScoresResponseDataText:+ extends: commons.TextScoreproperties:- value:- type: string- docs: The correction content of the score. Empty string if not set.+ trace: optional<GetScoresResponseTraceData>- ScoreV3:+ GetScoresResponseData:discriminant: dataTypeunion:- NUMERIC:- type: NumericScoreV3- docs: Score with NUMERIC data type. Value is a number.- BOOLEAN:- type: BooleanScoreV3- docs: Score with BOOLEAN data type. Value is a boolean.- CATEGORICAL:- type: CategoricalScoreV3- docs: Score with CATEGORICAL data type. Value is a string category.- TEXT:- type: TextScoreV3- docs: Score with TEXT data type. Value is a string.- CORRECTION:- type: CorrectionScoreV3- docs: Score with CORRECTION data type. Value is the correction string.-- GetScoresMeta:- properties:- limit: integer- cursor:- type: optional<string>- docs: URL-safe base64 (base64url) cursor for the next page. Absent when there are no more results.+ NUMERIC: GetScoresResponseDataNumeric+ CATEGORICAL: GetScoresResponseDataCategorical+ BOOLEAN: GetScoresResponseDataBoolean+ CORRECTION: GetScoresResponseDataCorrection+ TEXT: GetScoresResponseDataTextGetScoresResponse:properties:- data: list<ScoreV3>- meta: GetScoresMeta+ data: list<GetScoresResponseData>+ meta: pagination.MetaResponsediff --git a/web/public/generated/api/openapi.yml b/web/public/generated/api/openapi.ymlindex 599ce31720..72ae4b9bba 100644--- a/web/public/generated/api/openapi.yml+++ b/web/public/generated/api/openapi.yml@@ -2306,283 +2306,6 @@ paths:schema: {}security:- BasicAuth: []- /api/public/v2/scores:- get:- description: |-- **Deprecated.** Use `GET /api/public/v3/scores` instead. This endpoint- is no longer available on Langfuse v4 and later.-- Get a list of scores (supports both trace and session scores)- operationId: legacy_scoresV2_get-many- tags:- - LegacyScoresV2- parameters:- - name: page- in: query- description: Page number, starts at 1.- required: false- schema:- type: integer- nullable: true- - name: limit- in: query- description: >-- Limit of items per page. Maximum 100. Defaults to 50. Requests with- a limit greater than 100 return HTTP 400. If you encounter api- issues due to too large page sizes, try to reduce the limit.- required: false- schema:- type: integer- nullable: true- - name: userId- in: query- description: Retrieve only scores with this userId associated to the trace.- required: false- schema:- type: string- nullable: true- - name: name- in: query- description: Retrieve only scores with this name.- required: false- schema:- type: string- nullable: true- - name: fromTimestamp- in: query- description: >-- Optional filter to only include scores created on or after a certain- datetime (ISO 8601)- required: false- schema:- type: string- format: date-time- nullable: true- - name: toTimestamp- in: query- description: >-- Optional filter to only include scores created before a certain- datetime (ISO 8601)- required: false- schema:- type: string- format: date-time- nullable: true- - name: environment- in: query- description: >-- Optional filter for scores where the environment is one of the- provided values.- required: false- schema:- type: array- items:- type: string- nullable: true- - name: source- in: query- description: Retrieve only scores from a specific source.- required: false- schema:- $ref: '#/components/schemas/ScoreSource'- nullable: true- - name: operator- in: query- description: Retrieve only scores with <operator> value.- required: false- schema:- type: string- nullable: true- - name: value- in: query- description: Retrieve only scores with <operator> value.- required: false- schema:- type: number- format: double- nullable: true- - name: scoreIds- in: query- description: Comma-separated list of score IDs to limit the results to.- required: false- schema:- type: string- nullable: true- - name: configId- in: query- description: Retrieve only scores with a specific configId.- required: false- schema:- type: string- nullable: true- - name: sessionId- in: query- description: Retrieve only scores with a specific sessionId.- required: false- schema:- type: string- nullable: true- - name: datasetRunId- in: query- description: Retrieve only scores with a specific datasetRunId.- required: false- schema:- type: string- nullable: true- - name: traceId- in: query- description: Retrieve only scores with a specific traceId.- required: false- schema:- type: string- nullable: true- - name: observationId- in: query- description: Comma-separated list of observation IDs to filter scores by.- required: false- schema:- type: string- nullable: true- - name: queueId- in: query- description: Retrieve only scores with a specific annotation queueId.- required: false- schema:- type: string- nullable: true- - name: dataType- in: query- description: Retrieve only scores with a specific dataType.- required: false- schema:- $ref: '#/components/schemas/ScoreDataType'- nullable: true- - name: traceTags- in: query- description: >-- Only scores linked to traces that include all of these tags will be- returned.- required: false- schema:- type: array- items:- type: string- nullable: true- - name: fields- in: query- description: >-- Comma-separated list of field groups to include in the response.- Available field groups: 'score' (core score fields), 'trace' (trace- properties: userId, tags, environment, sessionId). If not specified,- both 'score' and 'trace' are returned by default. Example: 'score'- to exclude trace data, 'score,trace' to include both. Note: When- filtering by trace properties (using userId or traceTags- parameters), the 'trace' field group must be included, otherwise a- 400 error will be returned.- required: false- schema:- type: string- nullable: true- - name: filter- in: query- description: >-- A JSON stringified array of filter objects. Each object requires- type, column, operator, and value. Supports filtering by score- metadata using the stringObject type. Example:- [{"type":"stringObject","column":"metadata","key":"user_id","operator":"=","value":"abc123"}].- Supported types: stringObject (metadata key-value filtering),- string, number, datetime, stringOptions, arrayOptions. Supported- operators for stringObject: =, contains, does not contain, starts- with, ends with.- required: false- schema:- type: string- nullable: true- responses:- '200':- description: ''- content:- application/json:- schema:- $ref: '#/components/schemas/legacyGetScoresResponse'- '400':- description: ''- content:- application/json:- schema: {}- '401':- description: ''- content:- application/json:- schema: {}- '403':- description: ''- content:- application/json:- schema: {}- '404':- description: ''- content:- application/json:- schema: {}- '405':- description: ''- content:- application/json:- schema: {}- security:- - BasicAuth: []- /api/public/v2/scores/{scoreId}:- get:- description: |-- **Deprecated.** Use `GET /api/public/v3/scores` with the `id` filter- instead. This endpoint is no longer available on Langfuse v4 and later.-- Get a score (supports both trace and session scores)- operationId: legacy_scoresV2_get-by-id- tags:- - LegacyScoresV2- parameters:- - name: scoreId- in: path- description: The unique langfuse identifier of a score- required: true- schema:- type: string- responses:- '200':- description: ''- content:- application/json:- schema:- $ref: '#/components/schemas/Score'- '400':- description: ''- content:- application/json:- schema: {}- '401':- description: ''- content:- application/json:- schema: {}- '403':- description: ''- content:- application/json:- schema: {}- '404':- description: ''- content:- application/json:- schema: {}- '405':- description: ''- content:- application/json:- schema: {}- security:- - BasicAuth: []/api/public/llm-connections:get:description: Get all LLM connections in a project@@ -5593,9 +5316,9 @@ paths:- `annotation` β adds authorUserId, queueIdUnknown group names return HTTP 400.- operationId: scores_getMany+ operationId: scoresV3_getManyV3tags:- - Scores+ - ScoresV3parameters:- name: limitin: query@@ -5781,15 +5504,292 @@ paths:required: falseschema:type: string- format: date-time- nullable: true+ format: date-time+ nullable: true+ responses:+ '200':+ description: ''+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/GetScoresV3Response'+ '400':+ description: ''+ content:+ application/json:+ schema: {}+ '401':+ description: ''+ content:+ application/json:+ schema: {}+ '403':+ description: ''+ content:+ application/json:+ schema: {}+ '404':+ description: ''+ content:+ application/json:+ schema: {}+ '405':+ description: ''+ content:+ application/json:+ schema: {}+ security:+ - BasicAuth: []+ /api/public/v2/scores:+ get:+ description: |-+ **Deprecated.** Use `GET /api/public/v3/scores` instead. This endpoint+ is no longer available on Langfuse v4 and later.++ Get a list of scores (supports both trace and session scores)+ operationId: scores_get-many+ tags:+ - Scores+ parameters:+ - name: page+ in: query+ description: Page number, starts at 1.+ required: false+ schema:+ type: integer+ nullable: true+ - name: limit+ in: query+ description: >-+ Limit of items per page. Maximum 100. Defaults to 50. Requests with+ a limit greater than 100 return HTTP 400. If you encounter api+ issues due to too large page sizes, try to reduce the limit.+ required: false+ schema:+ type: integer+ nullable: true+ - name: userId+ in: query+ description: Retrieve only scores with this userId associated to the trace.+ required: false+ schema:+ type: string+ nullable: true+ - name: name+ in: query+ description: Retrieve only scores with this name.+ required: false+ schema:+ type: string+ nullable: true+ - name: fromTimestamp+ in: query+ description: >-+ Optional filter to only include scores created on or after a certain+ datetime (ISO 8601)+ required: false+ schema:+ type: string+ format: date-time+ nullable: true+ - name: toTimestamp+ in: query+ description: >-+ Optional filter to only include scores created before a certain+ datetime (ISO 8601)+ required: false+ schema:+ type: string+ format: date-time+ nullable: true+ - name: environment+ in: query+ description: >-+ Optional filter for scores where the environment is one of the+ provided values.+ required: false+ schema:+ type: array+ items:+ type: string+ nullable: true+ - name: source+ in: query+ description: Retrieve only scores from a specific source.+ required: false+ schema:+ $ref: '#/components/schemas/ScoreSource'+ nullable: true+ - name: operator+ in: query+ description: Retrieve only scores with <operator> value.+ required: false+ schema:+ type: string+ nullable: true+ - name: value+ in: query+ description: Retrieve only scores with <operator> value.+ required: false+ schema:+ type: number+ format: double+ nullable: true+ - name: scoreIds+ in: query+ description: Comma-separated list of score IDs to limit the results to.+ required: false+ schema:+ type: string+ nullable: true+ - name: configId+ in: query+ description: Retrieve only scores with a specific configId.+ required: false+ schema:+ type: string+ nullable: true+ - name: sessionId+ in: query+ description: Retrieve only scores with a specific sessionId.+ required: false+ schema:+ type: string+ nullable: true+ - name: datasetRunId+ in: query+ description: Retrieve only scores with a specific datasetRunId.+ required: false+ schema:+ type: string+ nullable: true+ - name: traceId+ in: query+ description: Retrieve only scores with a specific traceId.+ required: false+ schema:+ type: string+ nullable: true+ - name: observationId+ in: query+ description: Comma-separated list of observation IDs to filter scores by.+ required: false+ schema:+ type: string+ nullable: true+ - name: queueId+ in: query+ description: Retrieve only scores with a specific annotation queueId.+ required: false+ schema:+ type: string+ nullable: true+ - name: dataType+ in: query+ description: Retrieve only scores with a specific dataType.+ required: false+ schema:+ $ref: '#/components/schemas/ScoreDataType'+ nullable: true+ - name: traceTags+ in: query+ description: >-+ Only scores linked to traces that include all of these tags will be+ returned.+ required: false+ schema:+ type: array+ items:+ type: string+ nullable: true+ - name: fields+ in: query+ description: >-+ Comma-separated list of field groups to include in the response.+ Available field groups: 'score' (core score fields), 'trace' (trace+ properties: userId, tags, environment, sessionId). If not specified,+ both 'score' and 'trace' are returned by default. Example: 'score'+ to exclude trace data, 'score,trace' to include both. Note: When+ filtering by trace properties (using userId or traceTags+ parameters), the 'trace' field group must be included, otherwise a+ 400 error will be returned.+ required: false+ schema:+ type: string+ nullable: true+ - name: filter+ in: query+ description: >-+ A JSON stringified array of filter objects. Each object requires+ type, column, operator, and value. Supports filtering by score+ metadata using the stringObject type. Example:+ [{"type":"stringObject","column":"metadata","key":"user_id","operator":"=","value":"abc123"}].+ Supported types: stringObject (metadata key-value filtering),+ string, number, datetime, stringOptions, arrayOptions. Supported+ operators for stringObject: =, contains, does not contain, starts+ with, ends with.+ required: false+ schema:+ type: string+ nullable: true+ responses:+ '200':+ description: ''+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/GetScoresResponse'+ '400':+ description: ''+ content:+ application/json:+ schema: {}+ '401':+ description: ''+ content:+ application/json:+ schema: {}+ '403':+ description: ''+ content:+ application/json:+ schema: {}+ '404':+ description: ''+ content:+ application/json:+ schema: {}+ '405':+ description: ''+ content:+ application/json:+ schema: {}+ security:+ - BasicAuth: []+ /api/public/v2/scores/{scoreId}:+ get:+ description: |-+ **Deprecated.** Use `GET /api/public/v3/scores` with the `id` filter+ instead. This endpoint is no longer available on Langfuse v4 and later.++ Get a score (supports both trace and session scores)+ operationId: scores_get-by-id+ tags:+ - Scores+ parameters:+ - name: scoreId+ in: path+ description: The unique langfuse identifier of a score+ required: true+ schema:+ type: stringresponses:'200':description: ''content:application/json:schema:- $ref: '#/components/schemas/GetScoresResponse'+ $ref: '#/components/schemas/Score''400':description: ''content:@@ -10894,144 +10894,6 @@ components:description: The id of the created object in Langfuserequired:- id- legacyGetScoresResponseTraceData:- title: legacyGetScoresResponseTraceData- type: object- properties:- userId:- type: string- nullable: true- description: The user ID associated with the trace referenced by score- tags:- type: array- items:- type: string- nullable: true- description: A list of tags associated with the trace referenced by score- environment:- type: string- nullable: true- description: The environment of the trace referenced by score- sessionId:- type: string- nullable: true- description: The session ID associated with the trace referenced by score- legacyGetScoresResponseDataNumeric:- title: legacyGetScoresResponseDataNumeric- type: object- properties:- trace:- $ref: '#/components/schemas/legacyGetScoresResponseTraceData'- nullable: true- allOf:- - $ref: '#/components/schemas/NumericScore'- legacyGetScoresResponseDataCategorical:- title: legacyGetScoresResponseDataCategorical- type: object- properties:- trace:- $ref: '#/components/schemas/legacyGetScoresResponseTraceData'- nullable: true- allOf:- - $ref: '#/components/schemas/CategoricalScore'- legacyGetScoresResponseDataBoolean:- title: legacyGetScoresResponseDataBoolean- type: object- properties:- trace:- $ref: '#/components/schemas/legacyGetScoresResponseTraceData'- nullable: true- allOf:- - $ref: '#/components/schemas/BooleanScore'- legacyGetScoresResponseDataCorrection:- title: legacyGetScoresResponseDataCorrection- type: object- properties:- trace:- $ref: '#/components/schemas/legacyGetScoresResponseTraceData'- nullable: true- allOf:- - $ref: '#/components/schemas/CorrectionScore'- legacyGetScoresResponseDataText:- title: legacyGetScoresResponseDataText- type: object- properties:- trace:- $ref: '#/components/schemas/legacyGetScoresResponseTraceData'- nullable: true- allOf:- - $ref: '#/components/schemas/TextScore'- legacyGetScoresResponseData:- title: legacyGetScoresResponseData- oneOf:- - type: object- allOf:- - type: object- properties:- dataType:- type: string- enum:- - NUMERIC- - $ref: '#/components/schemas/legacyGetScoresResponseDataNumeric'- required:- - dataType- - type: object- allOf:- - type: object- properties:- dataType:- type: string- enum:- - CATEGORICAL- - $ref: '#/components/schemas/legacyGetScoresResponseDataCategorical'- required:- - dataType- - type: object- allOf:- - type: object- properties:- dataType:- type: string- enum:- - BOOLEAN- - $ref: '#/components/schemas/legacyGetScoresResponseDataBoolean'- required:- - dataType- - type: object- allOf:- - type: object- properties:- dataType:- type: string- enum:- - CORRECTION- - $ref: '#/components/schemas/legacyGetScoresResponseDataCorrection'- required:- - dataType- - type: object- allOf:- - type: object- properties:- dataType:- type: string- enum:- - TEXT- - $ref: '#/components/schemas/legacyGetScoresResponseDataText'- required:- - dataType- legacyGetScoresResponse:- title: legacyGetScoresResponse- type: object- properties:- data:- type: array- items:- $ref: '#/components/schemas/legacyGetScoresResponseData'- meta:- $ref: '#/components/schemas/utilsMetaResponse'- required:- - data- - metaLlmConnection:title: LlmConnectiontype: object@@ -12574,8 +12436,8 @@ components:Description is shown across the Langfuse UI and can be used to e.g.explain the config categories in detail, why a numeric range wasset, or provide additional context on config name or usage- ScoreSubjectTrace:- title: ScoreSubjectTrace+ ScoreSubjectTraceV3:+ title: ScoreSubjectTraceV3type: objectproperties:id:@@ -12583,8 +12445,8 @@ components:description: The trace ID.required:- id- ScoreSubjectObservation:- title: ScoreSubjectObservation+ ScoreSubjectObservationV3:+ title: ScoreSubjectObservationV3type: objectproperties:id:@@ -12596,8 +12458,8 @@ components:description: The parent trace ID, if available.required:- id- ScoreSubjectSession:- title: ScoreSubjectSession+ ScoreSubjectSessionV3:+ title: ScoreSubjectSessionV3type: objectproperties:id:@@ -12605,8 +12467,8 @@ components:description: The session ID.required:- id- ScoreSubjectExperiment:- title: ScoreSubjectExperiment+ ScoreSubjectExperimentV3:+ title: ScoreSubjectExperimentV3type: objectproperties:id:@@ -12614,8 +12476,8 @@ components:description: The dataset run ID (experiment ID).required:- id- ScoreSubject:- title: ScoreSubject+ ScoreSubjectV3:+ title: ScoreSubjectV3oneOf:- type: objectallOf:@@ -12625,7 +12487,7 @@ components:type: stringenum:- trace- - $ref: '#/components/schemas/ScoreSubjectTrace'+ - $ref: '#/components/schemas/ScoreSubjectTraceV3'required:- kind- type: object@@ -12636,7 +12498,7 @@ components:type: stringenum:- observation- - $ref: '#/components/schemas/ScoreSubjectObservation'+ - $ref: '#/components/schemas/ScoreSubjectObservationV3'required:- kind- type: object@@ -12647,7 +12509,7 @@ components:type: stringenum:- session- - $ref: '#/components/schemas/ScoreSubjectSession'+ - $ref: '#/components/schemas/ScoreSubjectSessionV3'required:- kind- type: object@@ -12658,7 +12520,7 @@ components:type: stringenum:- experiment- - $ref: '#/components/schemas/ScoreSubjectExperiment'+ - $ref: '#/components/schemas/ScoreSubjectExperimentV3'required:- kinddescription: >-@@ -12720,7 +12582,7 @@ components:The annotation queue this score belongs to, if any. Present when"annotation" is included in the fields parameter.subject:- $ref: '#/components/schemas/ScoreSubject'+ $ref: '#/components/schemas/ScoreSubjectV3'nullable: truedescription: >-The entity this score is attached to (trace, observation, session,@@ -12849,8 +12711,8 @@ components:- $ref: '#/components/schemas/CorrectionScoreV3'required:- dataType- GetScoresMeta:- title: GetScoresMeta+ GetScoresV3Meta:+ title: GetScoresV3Metatype: objectproperties:limit:@@ -12863,6 +12725,144 @@ components:there are no more results.required:- limit+ GetScoresV3Response:+ title: GetScoresV3Response+ type: object+ properties:+ data:+ type: array+ items:+ $ref: '#/components/schemas/ScoreV3'+ meta:+ $ref: '#/components/schemas/GetScoresV3Meta'+ required:+ - data+ - meta+ GetScoresResponseTraceData:+ title: GetScoresResponseTraceData+ type: object+ properties:+ userId:+ type: string+ nullable: true+ description: The user ID associated with the trace referenced by score+ tags:+ type: array+ items:+ type: string+ nullable: true+ description: A list of tags associated with the trace referenced by score+ environment:+ type: string+ nullable: true+ description: The environment of the trace referenced by score+ sessionId:+ type: string+ nullable: true+ description: The session ID associated with the trace referenced by score+ GetScoresResponseDataNumeric:+ title: GetScoresResponseDataNumeric+ type: object+ properties:+ trace:+ $ref: '#/components/schemas/GetScoresResponseTraceData'+ nullable: true+ allOf:+ - $ref: '#/components/schemas/NumericScore'+ GetScoresResponseDataCategorical:+ title: GetScoresResponseDataCategorical+ type: object+ properties:+ trace:+ $ref: '#/components/schemas/GetScoresResponseTraceData'+ nullable: true+ allOf:+ - $ref: '#/components/schemas/CategoricalScore'+ GetScoresResponseDataBoolean:+ title: GetScoresResponseDataBoolean+ type: object+ properties:+ trace:+ $ref: '#/components/schemas/GetScoresResponseTraceData'+ nullable: true+ allOf:+ - $ref: '#/components/schemas/BooleanScore'+ GetScoresResponseDataCorrection:+ title: GetScoresResponseDataCorrection+ type: object+ properties:+ trace:+ $ref: '#/components/schemas/GetScoresResponseTraceData'+ nullable: true+ allOf:+ - $ref: '#/components/schemas/CorrectionScore'+ GetScoresResponseDataText:+ title: GetScoresResponseDataText+ type: object+ properties:+ trace:+ $ref: '#/components/schemas/GetScoresResponseTraceData'+ nullable: true+ allOf:+ - $ref: '#/components/schemas/TextScore'+ GetScoresResponseData:+ title: GetScoresResponseData+ oneOf:+ - type: object+ allOf:+ - type: object+ properties:+ dataType:+ type: string+ enum:+ - NUMERIC+ - $ref: '#/components/schemas/GetScoresResponseDataNumeric'+ required:+ - dataType+ - type: object+ allOf:+ - type: object+ properties:+ dataType:+ type: string+ enum:+ - CATEGORICAL+ - $ref: '#/components/schemas/GetScoresResponseDataCategorical'+ required:+ - dataType+ - type: object+ allOf:+ - type: object+ properties:+ dataType:+ type: string+ enum:+ - BOOLEAN+ - $ref: '#/components/schemas/GetScoresResponseDataBoolean'+ required:+ - dataType+ - type: object+ allOf:+ - type: object+ properties:+ dataType:+ type: string+ enum:+ - CORRECTION+ - $ref: '#/components/schemas/GetScoresResponseDataCorrection'+ required:+ - dataType+ - type: object+ allOf:+ - type: object+ properties:+ dataType:+ type: string+ enum:+ - TEXT+ - $ref: '#/components/schemas/GetScoresResponseDataText'+ required:+ - dataTypeGetScoresResponse:title: GetScoresResponsetype: object@@ -12870,9 +12870,9 @@ components:data:type: arrayitems:- $ref: '#/components/schemas/ScoreV3'+ $ref: '#/components/schemas/GetScoresResponseData'meta:- $ref: '#/components/schemas/GetScoresMeta'+ $ref: '#/components/schemas/utilsMetaResponse'required:- data- meta