langfuse
104 строки · 2.1 Кб
1openapi: 3.0.1
2info:
3title: langfuse
4version: ''
5paths:
6/api/public/scores:
7post:
8description: Add a score to the database, upserts on id
9operationId: score_create
10tags:
11- Score
12parameters: []
13responses:
14'200':
15description: ''
16content:
17application/json:
18schema:
19$ref: '#/components/schemas/Score'
20'400':
21description: ''
22content:
23application/json:
24schema:
25type: string
26'401':
27description: ''
28content:
29application/json:
30schema:
31type: string
32'403':
33description: ''
34content:
35application/json:
36schema:
37type: string
38'405':
39description: ''
40content:
41application/json:
42schema:
43type: string
44security:
45- BearerAuth: []
46requestBody:
47required: true
48content:
49application/json:
50schema:
51$ref: '#/components/schemas/CreateScoreRequest'
52components:
53schemas:
54CreateScoreRequest:
55title: CreateScoreRequest
56type: object
57properties:
58id:
59type: string
60traceId:
61type: string
62name:
63type: string
64value:
65type: number
66format: double
67observationId:
68type: string
69comment:
70type: string
71required:
72- traceId
73- name
74- value
75Score:
76title: Score
77type: object
78properties:
79id:
80type: string
81traceId:
82type: string
83name:
84type: string
85value:
86type: number
87format: double
88observationId:
89type: string
90timestamp:
91type: string
92format: date-time
93comment:
94type: string
95required:
96- id
97- traceId
98- name
99- value
100- timestamp
101securitySchemes:
102BearerAuth:
103type: http
104scheme: bearer
105