Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

Fern upgrade (#407)

Max Deichmann0783b04a7dbc
diff --git a/fern/client/definition/api.yml b/fern/apis/client/definition/api.yml
similarity index 100%
rename from fern/client/definition/api.yml
rename to fern/apis/client/definition/api.yml
diff --git a/fern/client/definition/commons.yml b/fern/apis/client/definition/commons.yml
similarity index 100%
rename from fern/client/definition/commons.yml
rename to fern/apis/client/definition/commons.yml
diff --git a/fern/client/definition/score.yml b/fern/apis/client/definition/score.yml
similarity index 100%
rename from fern/client/definition/score.yml
rename to fern/apis/client/definition/score.yml
diff --git a/fern/client/generators.yml b/fern/apis/client/generators.yml
similarity index 91%
rename from fern/client/generators.yml
rename to fern/apis/client/generators.yml
index 669df4668d..f97b921128 100644
--- a/fern/client/generators.yml
+++ b/fern/apis/client/generators.yml
@@ -15,7 +15,7 @@ groups:
version: 0.0.26
output:
location: local-file-system
- path: ../../generated/openapi-client
+ path: ../../../generated/openapi-client
config:
namespaceExport: Langfuse
allowCustomFetcher: true
diff --git a/fern/server/definition/api.yml b/fern/apis/server/definition/api.yml
similarity index 100%
rename from fern/server/definition/api.yml
rename to fern/apis/server/definition/api.yml
diff --git a/fern/server/definition/commons.yml b/fern/apis/server/definition/commons.yml
similarity index 100%
rename from fern/server/definition/commons.yml
rename to fern/apis/server/definition/commons.yml
diff --git a/fern/server/definition/dataset-items.yml b/fern/apis/server/definition/dataset-items.yml
similarity index 100%
rename from fern/server/definition/dataset-items.yml
rename to fern/apis/server/definition/dataset-items.yml
diff --git a/fern/server/definition/dataset-run-items.yml b/fern/apis/server/definition/dataset-run-items.yml
similarity index 100%
rename from fern/server/definition/dataset-run-items.yml
rename to fern/apis/server/definition/dataset-run-items.yml
diff --git a/fern/server/definition/datasets.yml b/fern/apis/server/definition/datasets.yml
similarity index 100%
rename from fern/server/definition/datasets.yml
rename to fern/apis/server/definition/datasets.yml
diff --git a/fern/server/definition/event.yml b/fern/apis/server/definition/event.yml
similarity index 100%
rename from fern/server/definition/event.yml
rename to fern/apis/server/definition/event.yml
diff --git a/fern/server/definition/generations.yml b/fern/apis/server/definition/generations.yml
similarity index 100%
rename from fern/server/definition/generations.yml
rename to fern/apis/server/definition/generations.yml
diff --git a/fern/server/definition/observations.yml b/fern/apis/server/definition/observations.yml
similarity index 100%
rename from fern/server/definition/observations.yml
rename to fern/apis/server/definition/observations.yml
diff --git a/fern/server/definition/score.yml b/fern/apis/server/definition/score.yml
similarity index 100%
rename from fern/server/definition/score.yml
rename to fern/apis/server/definition/score.yml
diff --git a/fern/server/definition/span.yml b/fern/apis/server/definition/span.yml
similarity index 100%
rename from fern/server/definition/span.yml
rename to fern/apis/server/definition/span.yml
diff --git a/fern/server/definition/trace.yml b/fern/apis/server/definition/trace.yml
similarity index 100%
rename from fern/server/definition/trace.yml
rename to fern/apis/server/definition/trace.yml
diff --git a/fern/server/definition/utils/pagination.yml b/fern/apis/server/definition/utils/pagination.yml
similarity index 100%
rename from fern/server/definition/utils/pagination.yml
rename to fern/apis/server/definition/utils/pagination.yml
diff --git a/fern/server/generators.yml b/fern/apis/server/generators.yml
similarity index 88%
rename from fern/server/generators.yml
rename to fern/apis/server/generators.yml
index 72ee278ffb..256fe8a51d 100644
--- a/fern/server/generators.yml
+++ b/fern/apis/server/generators.yml
@@ -6,7 +6,7 @@ groups:
version: 0.0.28
output:
location: local-file-system
- path: ../../generated/openapi-server
+ path: ../../../generated/openapi-server
config:
namespaceExport: Langfuse
allowCustomFetcher: true
@@ -14,7 +14,7 @@ groups:
version: 0.3.7
output:
location: local-file-system
- path: ../../generated/python
+ path: ../../../generated/python
config:
namespaceExport: Langfuse
allowCustomFetcher: true
@@ -22,7 +22,7 @@ groups:
version: 0.7.1
output:
location: local-file-system
- path: ../../generated/typescript-server
+ path: ../../../generated/typescript-server
config:
namespaceExport: Langfuse
allowCustomFetcher: true
@@ -30,7 +30,7 @@ groups:
version: 0.0.45
output:
location: local-file-system
- path: ../../generated/postman
+ path: ../../../generated/postman
# published:
# generators:
# - name: fernapi/fern-python-sdk
diff --git a/fern/fern.config.json b/fern/fern.config.json
index b910feb80b..4d00149d8b 100644
--- a/fern/fern.config.json
+++ b/fern/fern.config.json
@@ -1,4 +1,4 @@
{
"organization": "finto",
- "version": "0.14.3"
+ "version": "0.15.0-rc47"
}
\ No newline at end of file
diff --git a/generated/postman/collection.json b/generated/postman/collection.json
new file mode 100644
index 0000000000..b232c9c8a1
--- /dev/null
+++ b/generated/postman/collection.json
@@ -0,0 +1,722 @@
+{
+ "info": {
+ "name": "Langfuse",
+ "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
+ "description": null
+ },
+ "variable": [
+ {
+ "key": "baseUrl",
+ "value": "",
+ "type": "string"
+ },
+ {
+ "key": "username",
+ "value": "",
+ "type": "string"
+ },
+ {
+ "key": "password",
+ "value": "",
+ "type": "string"
+ }
+ ],
+ "auth": {
+ "type": "basic",
+ "basic": [
+ {
+ "key": "username",
+ "value": "{{username}}",
+ "type": "string"
+ },
+ {
+ "key": "password",
+ "value": "{{password}}",
+ "type": "string"
+ }
+ ]
+ },
+ "item": [
+ {
+ "_type": "container",
+ "description": null,
+ "name": "Dataset Items",
+ "item": [
+ {
+ "_type": "endpoint",
+ "name": "Create",
+ "request": {
+ "description": "Create a dataset item",
+ "url": {
+ "raw": "{{baseUrl}}/api/public/dataset-items",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "api",
+ "public",
+ "dataset-items"
+ ],
+ "query": [],
+ "variable": []
+ },
+ "header": [],
+ "method": "POST",
+ "auth": null,
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"datasetName\": \"example\",\n \"input\": \"UNKNOWN\",\n \"expectedOutput\": \"UNKNOWN\"\n}",
+ "options": {
+ "raw": {
+ "language": "json"
+ }
+ }
+ }
+ },
+ "response": []
+ }
+ ]
+ },
+ {
+ "_type": "container",
+ "description": null,
+ "name": "Dataset Run Items",
+ "item": [
+ {
+ "_type": "endpoint",
+ "name": "Create",
+ "request": {
+ "description": "Create a dataset run item",
+ "url": {
+ "raw": "{{baseUrl}}/api/public/dataset-run-items",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "api",
+ "public",
+ "dataset-run-items"
+ ],
+ "query": [],
+ "variable": []
+ },
+ "header": [],
+ "method": "POST",
+ "auth": null,
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"runName\": \"example\",\n \"datasetItemId\": \"example\",\n \"observationId\": \"example\"\n}",
+ "options": {
+ "raw": {
+ "language": "json"
+ }
+ }
+ }
+ },
+ "response": []
+ }
+ ]
+ },
+ {
+ "_type": "container",
+ "description": null,
+ "name": "Datasets",
+ "item": [
+ {
+ "_type": "endpoint",
+ "name": "Get",
+ "request": {
+ "description": "Get a dataset and its items",
+ "url": {
+ "raw": "{{baseUrl}}/api/public/datasets/:datasetName",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "api",
+ "public",
+ "datasets",
+ ":datasetName"
+ ],
+ "query": [],
+ "variable": [
+ {
+ "key": "datasetName",
+ "value": "",
+ "description": null
+ }
+ ]
+ },
+ "header": [],
+ "method": "GET",
+ "auth": null,
+ "body": null
+ },
+ "response": []
+ },
+ {
+ "_type": "endpoint",
+ "name": "Create",
+ "request": {
+ "description": "Create a dataset",
+ "url": {
+ "raw": "{{baseUrl}}/api/public/datasets",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "api",
+ "public",
+ "datasets"
+ ],
+ "query": [],
+ "variable": []
+ },
+ "header": [],
+ "method": "POST",
+ "auth": null,
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"name\": \"example\"\n}",
+ "options": {
+ "raw": {
+ "language": "json"
+ }
+ }
+ }
+ },
+ "response": []
+ },
+ {
+ "_type": "endpoint",
+ "name": "Get Runs",
+ "request": {
+ "description": "Get a dataset run and its items",
+ "url": {
+ "raw": "{{baseUrl}}/api/public/datasets/:datasetName/runs/:runName",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "api",
+ "public",
+ "datasets",
+ ":datasetName",
+ "runs",
+ ":runName"
+ ],
+ "query": [],
+ "variable": [
+ {
+ "key": "datasetName",
+ "value": "",
+ "description": null
+ },
+ {
+ "key": "runName",
+ "value": "",
+ "description": null
+ }
+ ]
+ },
+ "header": [],
+ "method": "GET",
+ "auth": null,
+ "body": null
+ },
+ "response": []
+ }
+ ]
+ },
+ {
+ "_type": "container",
+ "description": null,
+ "name": "Event",
+ "item": [
+ {
+ "_type": "endpoint",
+ "name": "Create",
+ "request": {
+ "description": "Add an event to the database",
+ "url": {
+ "raw": "{{baseUrl}}/api/public/events",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "api",
+ "public",
+ "events"
+ ],
+ "query": [],
+ "variable": []
+ },
+ "header": [],
+ "method": "POST",
+ "auth": null,
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"id\": \"example\",\n \"traceId\": \"example\",\n \"traceIdType\": \"LANGFUSE\",\n \"name\": \"example\",\n \"startTime\": \"1994-11-05T13:15:30Z\",\n \"metadata\": \"UNKNOWN\",\n \"input\": \"UNKNOWN\",\n \"output\": \"UNKNOWN\",\n \"level\": \"DEBUG\",\n \"statusMessage\": \"example\",\n \"parentObservationId\": \"example\",\n \"version\": \"example\"\n}",
+ "options": {
+ "raw": {
+ "language": "json"
+ }
+ }
+ }
+ },
+ "response": []
+ }
+ ]
+ },
+ {
+ "_type": "container",
+ "description": null,
+ "name": "Generations",
+ "item": [
+ {
+ "_type": "endpoint",
+ "name": "Log",
+ "request": {
+ "description": null,
+ "url": {
+ "raw": "{{baseUrl}}/api/public/generations",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "api",
+ "public",
+ "generations"
+ ],
+ "query": [],
+ "variable": []
+ },
+ "header": [],
+ "method": "POST",
+ "auth": null,
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"completionStartTime\": \"1994-11-05T13:15:30Z\",\n \"model\": \"example\",\n \"modelParameters\": {\n \"example\": \"example\"\n },\n \"prompt\": \"UNKNOWN\",\n \"completion\": \"UNKNOWN\",\n \"usage\": {\n \"promptTokens\": 0,\n \"completionTokens\": 0,\n \"totalTokens\": 0\n },\n \"endTime\": \"1994-11-05T13:15:30Z\",\n \"id\": \"example\",\n \"traceId\": \"example\",\n \"traceIdType\": \"LANGFUSE\",\n \"name\": \"example\",\n \"startTime\": \"1994-11-05T13:15:30Z\",\n \"metadata\": \"UNKNOWN\",\n \"input\": \"UNKNOWN\",\n \"output\": \"UNKNOWN\",\n \"level\": \"DEBUG\",\n \"statusMessage\": \"example\",\n \"parentObservationId\": \"example\",\n \"version\": \"example\"\n}",
+ "options": {
+ "raw": {
+ "language": "json"
+ }
+ }
+ }
+ },
+ "response": []
+ },
+ {
+ "_type": "endpoint",
+ "name": "Update",
+ "request": {
+ "description": null,
+ "url": {
+ "raw": "{{baseUrl}}/api/public/generations",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "api",
+ "public",
+ "generations"
+ ],
+ "query": [],
+ "variable": []
+ },
+ "header": [],
+ "method": "PATCH",
+ "auth": null,
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"generationId\": \"example\",\n \"traceId\": \"example\",\n \"name\": \"example\",\n \"endTime\": \"1994-11-05T13:15:30Z\",\n \"completionStartTime\": \"1994-11-05T13:15:30Z\",\n \"model\": \"example\",\n \"modelParameters\": {\n \"example\": \"example\"\n },\n \"prompt\": \"UNKNOWN\",\n \"version\": \"example\",\n \"metadata\": \"UNKNOWN\",\n \"completion\": \"UNKNOWN\",\n \"usage\": {\n \"promptTokens\": 0,\n \"completionTokens\": 0,\n \"totalTokens\": 0\n },\n \"level\": \"DEBUG\",\n \"statusMessage\": \"example\"\n}",
+ "options": {
+ "raw": {
+ "language": "json"
+ }
+ }
+ }
+ },
+ "response": []
+ }
+ ]
+ },
+ {
+ "_type": "container",
+ "description": null,
+ "name": "Observations",
+ "item": [
+ {
+ "_type": "endpoint",
+ "name": "Get",
+ "request": {
+ "description": "Get a specific observation",
+ "url": {
+ "raw": "{{baseUrl}}/api/public/observations/:observationId",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "api",
+ "public",
+ "observations",
+ ":observationId"
+ ],
+ "query": [],
+ "variable": [
+ {
+ "key": "observationId",
+ "value": "",
+ "description": "The unique langfuse identifier of an observation, can be an event, span or generation"
+ }
+ ]
+ },
+ "header": [],
+ "method": "GET",
+ "auth": null,
+ "body": null
+ },
+ "response": []
+ },
+ {
+ "_type": "endpoint",
+ "name": "Get Many",
+ "request": {
+ "description": "Get a list of observations",
+ "url": {
+ "raw": "{{baseUrl}}/api/public/observations?page=&limit=&name=&userId=&type=&traceId=&parentObservationId=",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "api",
+ "public",
+ "observations"
+ ],
+ "query": [
+ {
+ "key": "page",
+ "value": "",
+ "description": null
+ },
+ {
+ "key": "limit",
+ "value": "",
+ "description": null
+ },
+ {
+ "key": "name",
+ "value": "",
+ "description": null
+ },
+ {
+ "key": "userId",
+ "value": "",
+ "description": null
+ },
+ {
+ "key": "type",
+ "value": "",
+ "description": null
+ },
+ {
+ "key": "traceId",
+ "value": "",
+ "description": null
+ },
+ {
+ "key": "parentObservationId",
+ "value": "",
+ "description": null
+ }
+ ],
+ "variable": []
+ },
+ "header": [],
+ "method": "GET",
+ "auth": null,
+ "body": null
+ },
+ "response": []
+ }
+ ]
+ },
+ {
+ "_type": "container",
+ "description": null,
+ "name": "Score",
+ "item": [
+ {
+ "_type": "endpoint",
+ "name": "Create",
+ "request": {
+ "description": "Add a score to the database",
+ "url": {
+ "raw": "{{baseUrl}}/api/public/scores",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "api",
+ "public",
+ "scores"
+ ],
+ "query": [],
+ "variable": []
+ },
+ "header": [],
+ "method": "POST",
+ "auth": null,
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"id\": \"example\",\n \"traceId\": \"example\",\n \"traceIdType\": \"LANGFUSE\",\n \"name\": \"example\",\n \"value\": 0,\n \"observationId\": \"example\",\n \"comment\": \"example\"\n}",
+ "options": {
+ "raw": {
+ "language": "json"
+ }
+ }
+ }
+ },
+ "response": []
+ },
+ {
+ "_type": "endpoint",
+ "name": "Get",
+ "request": {
+ "description": "Get scores",
+ "url": {
+ "raw": "{{baseUrl}}/api/public/scores?page=&limit=&userId=&name=",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "api",
+ "public",
+ "scores"
+ ],
+ "query": [
+ {
+ "key": "page",
+ "value": "",
+ "description": null
+ },
+ {
+ "key": "limit",
+ "value": "",
+ "description": null
+ },
+ {
+ "key": "userId",
+ "value": "",
+ "description": null
+ },
+ {
+ "key": "name",
+ "value": "",
+ "description": null
+ }
+ ],
+ "variable": []
+ },
+ "header": [],
+ "method": "GET",
+ "auth": null,
+ "body": null
+ },
+ "response": []
+ }
+ ]
+ },
+ {
+ "_type": "container",
+ "description": null,
+ "name": "Span",
+ "item": [
+ {
+ "_type": "endpoint",
+ "name": "Create",
+ "request": {
+ "description": "Add a span to the database",
+ "url": {
+ "raw": "{{baseUrl}}/api/public/spans",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "api",
+ "public",
+ "spans"
+ ],
+ "query": [],
+ "variable": []
+ },
+ "header": [],
+ "method": "POST",
+ "auth": null,
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"endTime\": \"1994-11-05T13:15:30Z\",\n \"id\": \"example\",\n \"traceId\": \"example\",\n \"traceIdType\": \"LANGFUSE\",\n \"name\": \"example\",\n \"startTime\": \"1994-11-05T13:15:30Z\",\n \"metadata\": \"UNKNOWN\",\n \"input\": \"UNKNOWN\",\n \"output\": \"UNKNOWN\",\n \"level\": \"DEBUG\",\n \"statusMessage\": \"example\",\n \"parentObservationId\": \"example\",\n \"version\": \"example\"\n}",
+ "options": {
+ "raw": {
+ "language": "json"
+ }
+ }
+ }
+ },
+ "response": []
+ },
+ {
+ "_type": "endpoint",
+ "name": "Update",
+ "request": {
+ "description": "Update a span to the database",
+ "url": {
+ "raw": "{{baseUrl}}/api/public/spans",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "api",
+ "public",
+ "spans"
+ ],
+ "query": [],
+ "variable": []
+ },
+ "header": [],
+ "method": "PATCH",
+ "auth": null,
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"spanId\": \"example\",\n \"traceId\": \"example\",\n \"endTime\": \"1994-11-05T13:15:30Z\",\n \"name\": \"example\",\n \"metadata\": \"UNKNOWN\",\n \"input\": \"UNKNOWN\",\n \"output\": \"UNKNOWN\",\n \"level\": \"DEBUG\",\n \"version\": \"example\",\n \"statusMessage\": \"example\"\n}",
+ "options": {
+ "raw": {
+ "language": "json"
+ }
+ }
+ }
+ },
+ "response": []
+ }
+ ]
+ },
+ {
+ "_type": "container",
+ "description": null,
+ "name": "Trace",
+ "item": [
+ {
+ "_type": "endpoint",
+ "name": "Create",
+ "request": {
+ "description": "Add a trace to the database",
+ "url": {
+ "raw": "{{baseUrl}}/api/public/traces",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "api",
+ "public",
+ "traces"
+ ],
+ "query": [],
+ "variable": []
+ },
+ "header": [],
+ "method": "POST",
+ "auth": null,
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"id\": \"example\",\n \"name\": \"example\",\n \"userId\": \"example\",\n \"externalId\": \"example\",\n \"release\": \"example\",\n \"version\": \"example\",\n \"metadata\": \"UNKNOWN\"\n}",
+ "options": {
+ "raw": {
+ "language": "json"
+ }
+ }
+ }
+ },
+ "response": []
+ },
+ {
+ "_type": "endpoint",
+ "name": "Get",
+ "request": {
+ "description": "Get a specific trace",
+ "url": {
+ "raw": "{{baseUrl}}/api/public/traces/:traceId",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "api",
+ "public",
+ "traces",
+ ":traceId"
+ ],
+ "query": [],
+ "variable": [
+ {
+ "key": "traceId",
+ "value": "",
+ "description": "The unique langfuse identifier of a trace"
+ }
+ ]
+ },
+ "header": [],
+ "method": "GET",
+ "auth": null,
+ "body": null
+ },
+ "response": []
+ },
+ {
+ "_type": "endpoint",
+ "name": "List",
+ "request": {
+ "description": "Get list of traces",
+ "url": {
+ "raw": "{{baseUrl}}/api/public/traces?page=&limit=&userId=&name=",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "api",
+ "public",
+ "traces"
+ ],
+ "query": [
+ {
+ "key": "page",
+ "value": "",
+ "description": null
+ },
+ {
+ "key": "limit",
+ "value": "",
+ "description": null
+ },
+ {
+ "key": "userId",
+ "value": "",
+ "description": null
+ },
+ {
+ "key": "name",
+ "value": "",
+ "description": null
+ }
+ ],
+ "variable": []
+ },
+ "header": [],
+ "method": "GET",
+ "auth": null,
+ "body": null
+ },
+ "response": []
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file