-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Expand file tree
/
Copy pathroutes.tsp
More file actions
91 lines (78 loc) · 2.42 KB
/
routes.tsp
File metadata and controls
91 lines (78 loc) · 2.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
import "@typespec/rest";
import "@azure-tools/typespec-autorest";
import "@typespec/versioning";
import "@azure-tools/typespec-azure-core";
import "./models.tsp";
using TypeSpec.Http;
using Azure.Core.Traits;
using TypeSpec.Versioning;
namespace Azure.AI.Projects;
alias ServiceTraits = SupportsClientRequestId &
NoRepeatableRequests &
NoConditionalRequests;
alias EvaluationsOperations = Azure.Core.ResourceOperations<ServiceTraits>;
@route("evaluations")
@added(Versions.v2025_05_15_preview)
@removed(Versions.v1)
interface Evaluations {
@doc("Get an evaluation run by name.")
get is EvaluationsOperations.ResourceRead<Evaluation>;
@doc("List evaluation runs")
list is EvaluationsOperations.ResourceList<Evaluation>;
@doc("List evaluation run row results for a specific evaluatorId")
@route("evaluations/{evaluatorId}/results ")
@added(Versions.v2025_05_15_preview)
@removed(Versions.v1)
@get
#suppress "@azure-tools/typespec-azure-core/use-standard-operations"
listRowResultsByEvaluatorId(
@doc("""
The index of the first item to return. Used for pagination.
""")
@query startIndex?: int32,
@doc("""
The number of items to return in the result set. Used for pagination.
""")
@query pageSize?: int32,
@doc("""
Specifies the unique identifier of the evaluator resource.
""")
@path evaluatorId: string,
@doc("""
The number of items to skip before starting to collect the result set. Used for pagination.
""")
@query skip?: int32,
@doc("""
The maximum number of items to return in the result set. Used for pagination.
""")
@query top?: int32,
@doc("""
The API version to use for the request.
""")
@query apiVersion: string
): Azure.Core.Page<LabeledRows>;
#suppress "@azure-tools/typespec-azure-core/use-standard-operations"
@doc("Creates an evaluation run.")
@route("runs:run")
@post
create is Azure.Core.Foundations.Operation<
{
@doc("Evaluation to be run")
@body
evaluation: Evaluation;
},
ResourceCreatedResponse<Evaluation>
>;
#suppress "@azure-tools/typespec-azure-core/use-standard-operations"
@doc("Creates an agent evaluation run.")
@route("runs:runAgent")
@post
createAgentEvaluation is Azure.Core.Foundations.Operation<
{
@doc("Agent evaluation to be run")
@body
evaluation: AgentEvaluationRequest;
},
ResourceCreatedResponse<AgentEvaluation>
>;
}