Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add jsdoc across main methods of sdk #247

Open
wants to merge 90 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
efde2d7
docs: add jsdoc across main methods of sdk
RichardKruemmel Jun 17, 2024
a70e10d
push
RichardKruemmel Jun 17, 2024
0c7f3b6
chore: update js docs
RichardKruemmel Jun 17, 2024
97e51e7
feat: add docstring for methods to create events, spans, generations,…
RichardKruemmel Jun 17, 2024
821bedd
docs: add jsdoc
RichardKruemmel Jun 17, 2024
293a580
docs: add more docs
RichardKruemmel Jun 17, 2024
ff2f4cd
docs: cover interfaces in sdk reference (#252)
marcklingen Jun 18, 2024
f56744a
docs: add examples to low-level sdk methods
RichardKruemmel Jun 18, 2024
9171c60
chore: update CreateLangfuseTraceBody interface in types.ts
RichardKruemmel Jun 18, 2024
8501328
docs: add interfaces for CreateObjectBodies
RichardKruemmel Jun 18, 2024
f5fba10
docs: add CreateDataset documentation
RichardKruemmel Jun 18, 2024
35af26d
docs: add LangfuseCoreOption documentation
RichardKruemmel Jun 18, 2024
b5e75e8
chore: Update LangfuseCore constructor documentation and examples
RichardKruemmel Jun 18, 2024
a64af89
doc: Add createDatasetItem
RichardKruemmel Jun 18, 2024
ec4d16d
docs: add createDatasetRunItem
RichardKruemmel Jun 18, 2024
b4d5e35
docs: add dataset documentation
RichardKruemmel Jun 18, 2024
dc1b4a6
docs: add CreateLangfuseDatasetResponse
RichardKruemmel Jun 18, 2024
a5eef0a
docs: add CreateLangfuseDatasetRunItemResponse
RichardKruemmel Jun 18, 2024
dec6d0a
chore: Update LangfuseCore constructor documentation and examples
RichardKruemmel Jun 18, 2024
b2a7150
docs: Update Langfuse SDK constructor documentation and examples
RichardKruemmel Jun 18, 2024
091ec7f
Fix constructor type
RichardKruemmel Jun 18, 2024
e30c32e
Fix indent
RichardKruemmel Jun 18, 2024
cdff97e
docs: Update Langfuse SDK constructor documentation and examples
RichardKruemmel Jun 18, 2024
f09f07e
docs: add better documentation for docs
RichardKruemmel Jun 18, 2024
277497c
fix replace type
RichardKruemmel Jun 18, 2024
a56b616
fix type
RichardKruemmel Jun 18, 2024
802654e
chore: Refactor Langfuse SDK constructor to simplify parameter handling
RichardKruemmel Jun 18, 2024
f88d066
Refactor Langfuse SDK constructor to simplify parameter handling
RichardKruemmel Jun 18, 2024
bdf52a8
docs: add doc for TextPromptClient
RichardKruemmel Jun 19, 2024
c64cd08
docs: add docs for BasePromptClient
RichardKruemmel Jun 19, 2024
710022a
docs: improve docs of promptClient
RichardKruemmel Jun 19, 2024
e870df0
docs: add more pretty types
RichardKruemmel Jun 19, 2024
d1eecdf
docs: add new types for update and end methods
RichardKruemmel Jun 19, 2024
a66a83f
docs: replace with new types
RichardKruemmel Jun 19, 2024
4e88c6e
docs: update langchain callback documentation
RichardKruemmel Jun 19, 2024
35a64cf
feat: Add LangfuseWeb docs
RichardKruemmel Jun 20, 2024
fccb03a
docs: Update LangfuseWebOptions with new properties and defaults
RichardKruemmel Jun 20, 2024
0453a8c
feat: Update LangfuseWebOptions with new properties and defaults
RichardKruemmel Jun 20, 2024
68fccf1
docs: Update completionStartTime property in types.ts
RichardKruemmel Jun 20, 2024
b9cb86f
chore: Update LangfusePromptClient type definition
RichardKruemmel Jun 20, 2024
a9fde33
feat: Add Langfuse callback handler documentation
RichardKruemmel Jun 20, 2024
ef2d282
Update LangfuseCore to use CreateLangfuseGenerationWithoutParent inst…
RichardKruemmel Jun 20, 2024
c7c3d57
chore: Update LangfusePromptClient and ChatPromptClient compile metho…
RichardKruemmel Jun 20, 2024
717ae36
Merge branch 'main' into jsdoc-across-sdk
RichardKruemmel Jun 20, 2024
3ba44fc
fix body types
RichardKruemmel Jun 20, 2024
a5510b5
fix merge from main
RichardKruemmel Jun 20, 2024
0f9e374
Fix constructor
RichardKruemmel Jun 20, 2024
5032a30
Merge branch 'main' into jsdoc-across-sdk
RichardKruemmel Jul 24, 2024
8faf86a
feat: Add fetchTraces, fetchTrace, fetchObservations, fetchObservatio…
RichardKruemmel Jul 24, 2024
c99fc0b
chore: Add isFallback property to promptClients.ts
RichardKruemmel Jul 24, 2024
d0888a3
chore: Update dataset creation method documentation
RichardKruemmel Jul 24, 2024
23e16c4
feat: Update dataset creation method documentation
RichardKruemmel Jul 25, 2024
950d576
Add documentation to FixTypes
RichardKruemmel Jul 25, 2024
24cb9cb
Add PromptBody documentation
RichardKruemmel Jul 25, 2024
a787297
chore: Add name property to CallbackHandler
RichardKruemmel Jul 25, 2024
2a6e2e3
chore: Add CreateLangfusePromptBody interface
RichardKruemmel Jul 25, 2024
d07bd41
chore: Update LangfuseConfig with additional properties
RichardKruemmel Jul 25, 2024
0e20ce5
chore: Refactor LangfuseParent interface and update LangfuseConfig
RichardKruemmel Jul 25, 2024
4775bb7
Revert changes
RichardKruemmel Jul 25, 2024
e19f9ce
chore: Add GetLangfuseObservationsQuery interface
RichardKruemmel Jul 26, 2024
58c9955
Refactor GetLangfuseObservationsQuery interface
RichardKruemmel Jul 26, 2024
85ea7dd
Refactor GetLangfuseObservationsQuery interface
RichardKruemmel Jul 26, 2024
4f844af
Refactor GetLangfuseObservationsQuery interface
RichardKruemmel Jul 26, 2024
7e26c29
chore: Refactor GetLangfuseObservationsQuery interface and update typ…
RichardKruemmel Jul 26, 2024
1c0a771
Refactor GetLangfuseObservationsQuery interface and update types.ts
RichardKruemmel Jul 26, 2024
5018b31
Refactor GetLangfuseObservationsQuery interface and update types.ts
RichardKruemmel Jul 26, 2024
4b65504
Refactor GetLangfuseObservationsQuery interface and update types.ts
RichardKruemmel Jul 26, 2024
888046f
Refactor GetLangfuseObservationsQuery interface and update types.ts
RichardKruemmel Jul 26, 2024
9131f3c
Refactor GetLangfuseObservationsQuery interface and update types.ts
RichardKruemmel Jul 26, 2024
8c0785c
Refactor GetLangfuseObservationsQuery interface and update types.ts
RichardKruemmel Jul 26, 2024
6a45986
Refactor GetLangfuseObservationsQuery interface and update types.ts
RichardKruemmel Jul 26, 2024
fa81c9b
Refactor GetLangfuseObservationsQuery interface and update types.ts
RichardKruemmel Jul 26, 2024
a154ead
Refactor GetLangfuseObservationsQuery interface and update types.ts
RichardKruemmel Jul 26, 2024
365e845
Refactor GetLangfuseObservationsQuery interface and update types.ts
RichardKruemmel Jul 26, 2024
d5af2b3
Refactor GetLangfuseObservationsQuery interface and update types.ts
RichardKruemmel Jul 26, 2024
0fc8ed7
Refactor GetLangfuseObservationsQuery interface and update types.ts
RichardKruemmel Jul 26, 2024
24e5a93
Refactor GetLangfuseObservationsQuery interface and update types.ts
RichardKruemmel Jul 26, 2024
118f681
Refactor GetLangfuseObservationsQuery interface and update types.ts
RichardKruemmel Jul 26, 2024
da630ce
Add fetch for Sessions
RichardKruemmel Jul 26, 2024
36bc185
chore: Refactor GetLangfuseObservationsQuery interface and update typ…
RichardKruemmel Jul 29, 2024
f833638
Refactor GetLangfuseObservationsQuery interface and update types.ts
RichardKruemmel Jul 29, 2024
a99d948
Refactor GetLangfuseObservationsQuery interface and update types.ts
RichardKruemmel Jul 29, 2024
6ca74c0
Refactor GetLangfuseObservationsQuery interface and update types.ts
RichardKruemmel Jul 29, 2024
9de89d4
Refactor GetLangfuseObservationsQuery interface and update types.ts
RichardKruemmel Jul 29, 2024
e8b8816
move descriptions to openapi spec and update spec
marcklingen Jul 29, 2024
bdf1bfe
add missing
marcklingen Jul 29, 2024
88953d9
yarn lock
marcklingen Jul 29, 2024
b28b1e0
Merge branch 'main' into jsdoc-across-sdk
RichardKruemmel Aug 2, 2024
1cec5cb
remove duplicated props
marcklingen Aug 2, 2024
1cd4c4d
remove unnecessary jsdoc
marcklingen Aug 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 80 additions & 4 deletions langfuse-core/openapi-spec/openapi-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1007,6 +1007,13 @@ paths:
type: string
format: date-time
nullable: true
- name: version
in: query
description: Optional filter to only include observations with a certain version.
required: false
schema:
type: string
nullable: true
responses:
"200":
description: ""
Expand Down Expand Up @@ -1675,7 +1682,7 @@ paths:
security: *ref_0
/api/public/sessions:
get:
description: Get sessions.
description: Get sessions
operationId: sessions_list
tags:
- Sessions
Expand Down Expand Up @@ -1846,7 +1853,7 @@ paths:
security: *ref_0
/api/public/traces:
get:
description: Get list of traces.
description: Get list of traces
operationId: trace_list
tags:
- Trace
Expand Down Expand Up @@ -1924,6 +1931,20 @@ paths:
items:
type: string
nullable: true
- name: version
in: query
description: Optional filter to only include traces with a certain version.
required: false
schema:
type: string
nullable: true
- name: release
in: query
description: Optional filter to only include traces with a certain release.
required: false
schema:
type: string
nullable: true
responses:
"200":
description: ""
Expand Down Expand Up @@ -1969,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
Expand Down Expand Up @@ -2101,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
Expand All @@ -2160,41 +2211,58 @@ components:
title: ObservationsView
type: object
properties:
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:
Expand Down Expand Up @@ -2540,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
Expand Down Expand Up @@ -2715,8 +2791,8 @@ components:
type: string
nullable: true
description: >-
Dataset items are upserted on their id. Id needs to be globally
unique and cannot be reused across datasets.
Dataset items are upserted on their id. Id needs to be unique
(project-level) and cannot be reused across datasets.
status:
$ref: "#/components/schemas/DatasetStatus"
nullable: true
Expand Down
Loading
Loading