langfuse

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

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.