Skip to content

Commit 6a10971

Browse files
committed
Release 0.8.0-beta0
1 parent 0ff12c8 commit 6a10971

100 files changed

Lines changed: 2707 additions & 1623 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -28,28 +28,3 @@ jobs:
2828

2929
- name: Compile
3030
run: yarn && yarn test
31-
32-
publish:
33-
needs: [ compile, test ]
34-
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
35-
runs-on: ubuntu-latest
36-
37-
steps:
38-
- name: Checkout repo
39-
uses: actions/checkout@v3
40-
41-
- name: Set up node
42-
uses: actions/setup-node@v3
43-
44-
- name: Install dependencies
45-
run: yarn install
46-
47-
- name: Build
48-
run: yarn build
49-
50-
- name: Publish to npm
51-
run: |
52-
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
53-
npm publish --access public
54-
env:
55-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.mock/definition/__package__.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,7 @@ types:
435435
Whether the Prompt/Tool is orchestrated by Humanloop. Default is
436436
`True`. If `False`, a log for the Prompt/Tool should be submitted by
437437
the user via the API.
438+
default: true
438439
EvaluateeResponse:
439440
properties:
440441
version: EvaluatedVersionResponse
@@ -479,6 +480,12 @@ types:
479480
Whether the Evaluator is orchestrated by Humanloop. Default is `True`.
480481
If `False`, a log for the Evaluator should be submitted by the user
481482
via the API.
483+
EvaluationReportLogResponse:
484+
properties:
485+
evaluated_version: EvaluatedVersionResponse
486+
datapoint: DatapointResponse
487+
log: optional<LogResponse>
488+
evaluator_logs: list<LogResponse>
482489
EvaluationResponse:
483490
properties:
484491
id:
@@ -632,6 +639,7 @@ types:
632639
- LlmEvaluatorRequest
633640
- CodeEvaluatorRequest
634641
- HumanEvaluatorRequest
642+
- ExternalEvaluatorRequest
635643
EvaluatorResponse:
636644
docs: Request model for creating a new Evaluator
637645
properties:
@@ -745,6 +753,18 @@ types:
745753
docs: Version of the Prompt or Tool.
746754
created_at: datetime
747755
updated_at: datetime
756+
ExternalEvaluatorRequest:
757+
properties:
758+
arguments_type:
759+
type: EvaluatorArgumentsType
760+
docs: Whether this evaluator is target-free or target-required.
761+
return_type:
762+
type: EvaluatorReturnTypeEnum
763+
docs: The type of the return value of the evaluator.
764+
evaluator_type: literal<"external">
765+
metadata:
766+
type: optional<map<string, unknown>>
767+
docs: Metadata describing the external Evaluator.
748768
FeedbackClass:
749769
enum:
750770
- select
@@ -1063,6 +1083,7 @@ types:
10631083
save:
10641084
type: optional<boolean>
10651085
docs: Whether the request/response payloads will be stored on Humanloop.
1086+
default: true
10661087
source_datapoint_id:
10671088
type: optional<string>
10681089
docs: >-
@@ -1523,6 +1544,12 @@ types:
15231544
page: integer
15241545
size: integer
15251546
total: integer
1547+
PaginatedDataEvaluationReportLogResponse:
1548+
properties:
1549+
records: list<EvaluationReportLogResponse>
1550+
page: integer
1551+
size: integer
1552+
total: integer
15261553
PaginatedEvaluationResponse:
15271554
properties:
15281555
records: list<EvaluationResponse>
@@ -1674,6 +1701,7 @@ types:
16741701
save:
16751702
type: optional<boolean>
16761703
docs: Whether the request/response payloads will be stored on Humanloop.
1704+
default: true
16771705
source_datapoint_id:
16781706
type: optional<string>
16791707
docs: >-
@@ -1966,6 +1994,7 @@ types:
19661994
save:
19671995
type: optional<boolean>
19681996
docs: Whether the request/response payloads will be stored on Humanloop.
1997+
default: true
19691998
source_datapoint_id:
19701999
type: optional<string>
19712000
docs: >-
@@ -2463,6 +2492,7 @@ types:
24632492
Whether the Evaluator is orchestrated by Humanloop. Default is `True`.
24642493
If `False`, a log for the Evaluator should be submitted by the user
24652494
via the API.
2495+
default: true
24662496
ToolResponse:
24672497
docs: Request to create a new Tool.
24682498
properties:
@@ -2542,3 +2572,4 @@ types:
25422572
full_name:
25432573
type: optional<string>
25442574
docs: The User's full name.
2575+
UpdateEvaluationStatusRequest: unknown

.mock/definition/datasets.yml

Lines changed: 98 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ service:
1414
results: $response.records
1515
display-name: 'List '
1616
request:
17-
name: DatasetsListRequest
17+
name: ListDatasetsGetRequest
1818
query-parameters:
1919
page:
2020
type: optional<integer>
@@ -113,7 +113,7 @@ service:
113113
114114
you can add a unique identifier to the Datapoint's inputs such as
115115
`{_dedupe_id: <unique ID>}`.
116-
display-name: Upsert Dataset
116+
display-name: Upsert
117117
request:
118118
name: DatasetsRequest
119119
query-parameters:
@@ -226,9 +226,9 @@ service:
226226
id:
227227
type: string
228228
docs: Unique identifier for Dataset.
229-
display-name: Get Dataset
229+
display-name: Get
230230
request:
231-
name: DatasetsGetRequest
231+
name: GetDatasetsIdGetRequest
232232
query-parameters:
233233
version_id:
234234
type: optional<string>
@@ -289,7 +289,7 @@ service:
289289
id:
290290
type: string
291291
docs: Unique identifier for Dataset.
292-
display-name: Delete Dataset
292+
display-name: Delete
293293
errors:
294294
- root.UnprocessableEntityError
295295
examples:
@@ -304,7 +304,7 @@ service:
304304
id:
305305
type: string
306306
docs: Unique identifier for Dataset.
307-
display-name: Move Dataset
307+
display-name: Move
308308
request:
309309
name: UpdateDatasetRequest
310310
body:
@@ -356,7 +356,7 @@ service:
356356
target:
357357
target: target
358358
id: id
359-
listdatapoints:
359+
listDatapoints:
360360
path: /datasets/{id}/datapoints
361361
method: GET
362362
auth: true
@@ -370,7 +370,7 @@ service:
370370
docs: Unique identifier for Dataset.
371371
display-name: List Datapoints
372372
request:
373-
name: DatasetsListDatapointsRequest
373+
name: ListDatapointsDatasetsIdDatapointsGetRequest
374374
query-parameters:
375375
version_id:
376376
type: optional<string>
@@ -405,7 +405,7 @@ service:
405405
page: 1
406406
size: 1
407407
total: 1
408-
listversions:
408+
listVersions:
409409
path: /datasets/{id}/versions
410410
method: GET
411411
auth: true
@@ -416,7 +416,7 @@ service:
416416
docs: Unique identifier for Dataset.
417417
display-name: List Versions
418418
request:
419-
name: DatasetsListVersionsRequest
419+
name: ListVersionsDatasetsIdVersionsGetRequest
420420
query-parameters:
421421
status:
422422
type: optional<root.VersionStatus>
@@ -517,7 +517,92 @@ service:
517517
target:
518518
target: target
519519
id: id
520-
createdatapointsfromlogs:
520+
uploadCsv:
521+
path: /datasets/{id}/datapoints/csv
522+
method: POST
523+
auth: true
524+
docs: >-
525+
Add Datapoints from a CSV file to a Dataset.
526+
527+
528+
This will create a new committed version of the Dataset with the
529+
Datapoints from the CSV file.
530+
531+
532+
If either `version_id` or `environment` is provided, the new version
533+
will be based on the specified version,
534+
535+
with the Datapoints from the CSV file added to the existing Datapoints
536+
in the version.
537+
538+
If neither `version_id` nor `environment` is provided, the new version
539+
will be based on the version
540+
541+
of the Dataset that is deployed to the default Environment.
542+
path-parameters:
543+
id:
544+
type: string
545+
docs: Unique identifier for the Dataset
546+
display-name: Upload Csv
547+
request:
548+
name: Body_upload_csv_datasets__id__datapoints_csv_post
549+
query-parameters:
550+
version_id:
551+
type: optional<string>
552+
docs: ID of the specific Dataset version to base the created Version on.
553+
environment:
554+
type: optional<string>
555+
docs: >-
556+
Name of the Environment identifying a deployed Version to base the
557+
created Version on.
558+
body:
559+
properties:
560+
file: file
561+
commit_message:
562+
type: string
563+
docs: Commit message for the new Dataset version.
564+
content-type: multipart/form-data
565+
response:
566+
docs: Successful Response
567+
type: root.DatasetResponse
568+
errors:
569+
- root.UnprocessableEntityError
570+
examples:
571+
- path-parameters:
572+
id: id
573+
request:
574+
commit_message: commit_message
575+
response:
576+
body:
577+
path: path
578+
id: id
579+
name: name
580+
version_id: version_id
581+
type: dataset
582+
environments:
583+
- id: id
584+
created_at: '2024-01-15T09:30:00Z'
585+
name: name
586+
tag: default
587+
created_at: '2024-01-15T09:30:00Z'
588+
updated_at: '2024-01-15T09:30:00Z'
589+
created_by:
590+
id: id
591+
email_address: email_address
592+
full_name: full_name
593+
status: uncommitted
594+
last_used_at: '2024-01-15T09:30:00Z'
595+
commit_message: commit_message
596+
datapoints_count: 1
597+
datapoints:
598+
- inputs:
599+
inputs: inputs
600+
messages:
601+
- role: user
602+
target:
603+
target: target
604+
id: id
605+
fromLogs:
521606
path: /datasets/{id}/datapoints/logs
522607
method: POST
523608
auth: true
@@ -543,9 +628,9 @@ service:
543628
id:
544629
type: string
545630
docs: Unique identifier for the Dataset
546-
display-name: Add Datapoints From Logs
631+
display-name: From Logs
547632
request:
548-
name: BodyDatasetsCreateDatapointsFromLogs
633+
name: BodyFromLogsDatasetsIdDatapointsLogsPost
549634
query-parameters:
550635
version_id:
551636
type: optional<string>

.mock/definition/directories.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ service:
99
method: GET
1010
auth: true
1111
docs: Retrieve a list of all Directories.
12-
display-name: List Directories
12+
display-name: 'List '
1313
response:
1414
docs: Successful Response
1515
type: list<root.DirectoryResponse>
@@ -28,7 +28,7 @@ service:
2828
method: POST
2929
auth: true
3030
docs: Creates a Directory.
31-
display-name: 'Create Directory '
31+
display-name: Create
3232
request:
3333
name: CreateDirectoryRequest
3434
body:
@@ -64,7 +64,7 @@ service:
6464
id:
6565
type: string
6666
docs: String ID of directory. Starts with `dir_`.
67-
display-name: Get Directory
67+
display-name: Get
6868
response:
6969
docs: Successful Response
7070
type: root.DirectoryWithParentsAndChildrenResponse
@@ -154,7 +154,7 @@ service:
154154
id:
155155
type: string
156156
docs: Unique identifier for Directory. Starts with `dir_`.
157-
display-name: 'Delete Directory '
157+
display-name: Delete
158158
errors:
159159
- root.UnprocessableEntityError
160160
examples:
@@ -169,7 +169,7 @@ service:
169169
id:
170170
type: string
171171
docs: Unique identifier for Directory. Starts with `dir_`.
172-
display-name: 'Update Directory '
172+
display-name: Update
173173
request:
174174
name: UpdateDirectoryRequest
175175
body:

0 commit comments

Comments
 (0)