Skip to content

Commit d6f3bdc

Browse files
authored
Feat implement Run APIs (#560)
* chore: first commit * add apis * chore: add tests * feat add apis * chore: add api and tests * chore: add tests * fix * trigger build * fix * chore: formatting code * chore: add pagination type
1 parent 78862a2 commit d6f3bdc

File tree

3 files changed

+663
-0
lines changed

3 files changed

+663
-0
lines changed

client_test.go

+27
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,33 @@ func TestClientReturnsRequestBuilderErrors(t *testing.T) {
313313
{"DeleteThread", func() (any, error) {
314314
return client.DeleteThread(ctx, "")
315315
}},
316+
{"CreateRun", func() (any, error) {
317+
return client.CreateRun(ctx, "", RunRequest{})
318+
}},
319+
{"RetrieveRun", func() (any, error) {
320+
return client.RetrieveRun(ctx, "", "")
321+
}},
322+
{"ModifyRun", func() (any, error) {
323+
return client.ModifyRun(ctx, "", "", RunModifyRequest{})
324+
}},
325+
{"ListRuns", func() (any, error) {
326+
return client.ListRuns(ctx, "", Pagination{})
327+
}},
328+
{"SubmitToolOutputs", func() (any, error) {
329+
return client.SubmitToolOutputs(ctx, "", "", SubmitToolOutputsRequest{})
330+
}},
331+
{"CancelRun", func() (any, error) {
332+
return client.CancelRun(ctx, "", "")
333+
}},
334+
{"CreateThreadAndRun", func() (any, error) {
335+
return client.CreateThreadAndRun(ctx, CreateThreadAndRunRequest{})
336+
}},
337+
{"RetrieveRunStep", func() (any, error) {
338+
return client.RetrieveRunStep(ctx, "", "", "")
339+
}},
340+
{"ListRunSteps", func() (any, error) {
341+
return client.ListRunSteps(ctx, "", "", Pagination{})
342+
}},
316343
}
317344

318345
for _, testCase := range testCases {

0 commit comments

Comments
 (0)