Skip to content

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

docs(api): add additional descriptions to api reference (#2776)

Marc Klingen0a83be775f29
diff --git a/fern/apis/server/definition/commons.yml b/fern/apis/server/definition/commons.yml
index 8cd4b7508d..366d8712e3 100644
--- a/fern/apis/server/definition/commons.yml
+++ b/fern/apis/server/definition/commons.yml
@@ -5,16 +5,36 @@ types:
id:
type: string
docs: The unique identifier of a trace
- timestamp: datetime
- name: optional<string>
- input: optional<unknown>
- output: optional<unknown>
- sessionId: optional<string>
- release: optional<string>
- version: optional<string>
- userId: optional<string>
- metadata: optional<unknown>
- tags: optional<list<string>>
+ timestamp:
+ type: datetime
+ docs: The timestamp when the trace was created
+ name:
+ type: optional<string>
+ docs: The name of the trace
+ input:
+ type: optional<unknown>
+ docs: The input data of the trace. Can be any JSON.
+ output:
+ type: optional<unknown>
+ docs: The output data of the trace. Can be any JSON.
+ sessionId:
+ type: optional<string>
+ docs: The session identifier associated with the trace
+ release:
+ type: optional<string>
+ docs: The release version of the application when the trace was created
+ version:
+ type: optional<string>
+ docs: The version of the trace
+ userId:
+ type: optional<string>
+ docs: The user identifier associated with the trace
+ metadata:
+ type: optional<unknown>
+ docs: The metadata associated with the trace. Can be any JSON.
+ tags:
+ type: optional<list<string>>
+ docs: The tags associated with the trace. Can be an array of strings or null.
public:
type: optional<boolean>
docs: Public traces are accessible via url without login
@@ -65,39 +85,97 @@ types:
traces: list<Trace>
Observation:
properties:
- id: string
- traceId: optional<string>
- type: string
- name: optional<string>
- startTime: datetime
- endTime: optional<datetime>
- completionStartTime: optional<datetime>
- model: optional<string>
- modelParameters: optional<map<string, MapValue>>
- input: optional<unknown>
- version: optional<string>
- metadata: optional<unknown>
- output: optional<unknown>
- usage: optional<Usage>
- level: ObservationLevel
- statusMessage: optional<string>
- parentObservationId: optional<string>
- promptId: optional<string>
+ id:
+ type: string
+ docs: The unique identifier of the observation
+ traceId:
+ type: optional<string>
+ docs: The trace ID associated with the observation
+ type:
+ type: string
+ docs: The type of the observation
+ name:
+ type: optional<string>
+ docs: The name of the observation
+ startTime:
+ type: datetime
+ docs: The start time of the observation
+ endTime:
+ type: optional<datetime>
+ docs: The end time of the observation.
+ completionStartTime:
+ type: optional<datetime>
+ docs: The completion start time of the observation
+ model:
+ type: optional<string>
+ docs: The model used for the observation
+ modelParameters:
+ type: optional<map<string, MapValue>>
+ docs: The parameters of the model used for the observation
+ input:
+ type: optional<unknown>
+ docs: The input data of the observation
+ version:
+ type: optional<string>
+ docs: The version of the observation
+ metadata:
+ type: optional<unknown>
+ docs: Additional metadata of the observation
+ output:
+ type: optional<unknown>
+ docs: The output data of the observation
+ usage:
+ type: optional<Usage>
+ docs: The usage data of the observation
+ level:
+ type: ObservationLevel
+ docs: The level of the observation
+ statusMessage:
+ type: optional<string>
+ docs: The status message of the observation
+ parentObservationId:
+ type: optional<string>
+ docs: The parent observation ID
+ promptId:
+ type: optional<string>
+ docs: The prompt ID associated with the observation
ObservationsView:
extends: Observation
properties:
- promptName: optional<string>
- promptVersion: optional<integer>
- modelId: optional<string>
- inputPrice: optional<double>
- outputPrice: optional<double>
- totalPrice: optional<double>
- calculatedInputCost: optional<double>
- calculatedOutputCost: optional<double>
- calculatedTotalCost: optional<double>
- latency: optional<double>
- timeToFirstToken: optional<double>
+ promptName:
+ type: optional<string>
+ docs: The name of the prompt associated with the observation
+ promptVersion:
+ type: optional<integer>
+ docs: The version of the prompt associated with the observation
+ modelId:
+ type: optional<string>
+ docs: The unique identifier of the model
+ inputPrice:
+ type: optional<double>
+ docs: The price of the input in USD
+ outputPrice:
+ type: optional<double>
+ docs: The price of the output in USD.
+ totalPrice:
+ type: optional<double>
+ docs: The total price in USD.
+ calculatedInputCost:
+ type: optional<double>
+ docs: The calculated cost of the input in USD
+ calculatedOutputCost:
+ type: optional<double>
+ docs: The calculated cost of the output in USD
+ calculatedTotalCost:
+ type: optional<double>
+ docs: The calculated total cost in USD
+ latency:
+ type: optional<double>
+ docs: The latency in seconds.
+ timeToFirstToken:
+ type: optional<double>
+ docs: The time to the first token in seconds
Usage:
docs: Standard interface for usage and cost
@@ -239,14 +317,30 @@ types:
updatedAt: datetime
DatasetRun:
properties:
- id: string
- name: string
- description: optional<string>
- metadata: optional<unknown>
- datasetId: string
- datasetName: string
- createdAt: datetime
- updatedAt: datetime
+ id:
+ type: string
+ docs: Unique identifier of the dataset run
+ name:
+ type: string
+ docs: Name of the dataset run
+ description:
+ type: optional<string>
+ docs: Description of the run
+ metadata:
+ type: optional<unknown>
+ docs: Metadata of the dataset run
+ datasetId:
+ type: string
+ docs: Id of the associated dataset
+ datasetName:
+ type: string
+ docs: Name of the associated dataset
+ createdAt:
+ type: datetime
+ docs: The date and time when the dataset run was created
+ updatedAt:
+ type: datetime
+ docs: The date and time when the dataset run was last updated
DatasetRunWithItems:
extends: DatasetRun
properties:
diff --git a/web/public/generated/api/openapi.yml b/web/public/generated/api/openapi.yml
index 101cf47995..8831b10dd1 100644
--- a/web/public/generated/api/openapi.yml
+++ b/web/public/generated/api/openapi.yml
@@ -1990,32 +1990,44 @@ components:
timestamp:
type: string
format: date-time
+ description: The timestamp when the trace was created
name:
type: string
nullable: true
+ description: The name of the trace
input:
nullable: true
+ description: The input data of the trace. Can be any JSON.
output:
nullable: true
+ description: The output data of the trace. Can be any JSON.
sessionId:
type: string
nullable: true
+ description: The session identifier associated with the trace
release:
type: string
nullable: true
+ description: The release version of the application when the trace was created
version:
type: string
nullable: true
+ description: The version of the trace
userId:
type: string
nullable: true
+ description: The user identifier associated with the trace
metadata:
nullable: true
+ description: The metadata associated with the trace. Can be any JSON.
tags:
type: array
items:
type: string
nullable: true
+ description: >-
+ The tags associated with the trace. Can be an array of strings or
+ null.
public:
type: boolean
nullable: true
@@ -2122,56 +2134,74 @@ components:
properties:
id:
type: string
+ description: The unique identifier of the observation
traceId:
type: string
nullable: true
+ description: The trace ID associated with the observation
type:
type: string
+ description: The type of the observation
name:
type: string
nullable: true
+ description: The name of the observation
startTime:
type: string
format: date-time
+ description: The start time of the observation
endTime:
type: string
format: date-time
nullable: true
+ description: The end time of the observation.
completionStartTime:
type: string
format: date-time
nullable: true
+ description: The completion start time of the observation
model:
type: string
nullable: true
+ description: The model used for the observation
modelParameters:
type: object
additionalProperties:
$ref: '#/components/schemas/MapValue'
nullable: true
+ description: The parameters of the model used for the observation
input:
nullable: true
+ description: The input data of the observation
version:
type: string
nullable: true
+ description: The version of the observation
metadata:
nullable: true
+ description: Additional metadata of the observation
output:
nullable: true
+ description: The output data of the observation
usage:
$ref: '#/components/schemas/Usage'
nullable: true
+ description: The usage data of the observation
level:
$ref: '#/components/schemas/ObservationLevel'
+ description: The level of the observation
statusMessage:
type: string
nullable: true
+ description: The status message of the observation
parentObservationId:
type: string
nullable: true
+ description: The parent observation ID
promptId:
type: string
nullable: true
+ description: The prompt ID associated with the observation
required:
- id
- type
@@ -2184,44 +2214,55 @@ components:
promptName:
type: string
nullable: true
+ description: The name of the prompt associated with the observation
promptVersion:
type: integer
nullable: true
+ description: The version of the prompt associated with the observation
modelId:
type: string
nullable: true
+ description: The unique identifier of the model
inputPrice:
type: number
format: double
nullable: true
+ description: The price of the input in USD
outputPrice:
type: number
format: double
nullable: true
+ description: The price of the output in USD.
totalPrice:
type: number
format: double
nullable: true
+ description: The total price in USD.
calculatedInputCost:
type: number
format: double
nullable: true
+ description: The calculated cost of the input in USD
calculatedOutputCost:
type: number
format: double
nullable: true
+ description: The calculated cost of the output in USD
calculatedTotalCost:
type: number
format: double
nullable: true
+ description: The calculated total cost in USD
latency:
type: number
format: double
nullable: true
+ description: The latency in seconds.
timeToFirstToken:
type: number
format: double
nullable: true
+ description: The time to the first token in seconds
allOf:
- $ref: '#/components/schemas/Observation'
Usage:
@@ -2567,23 +2608,31 @@ components:
properties:
id:
type: string
+ description: Unique identifier of the dataset run
name:
type: string
+ description: Name of the dataset run
description:
type: string
nullable: true
+ description: Description of the run
metadata:
nullable: true
+ description: Metadata of the dataset run
datasetId:
type: string
+ description: Id of the associated dataset
datasetName:
type: string
+ description: Name of the associated dataset
createdAt:
type: string
format: date-time
+ description: The date and time when the dataset run was created
updatedAt:
type: string
format: date-time
+ description: The date and time when the dataset run was last updated
required:
- id
- name