forked from github/copilot-sdk-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathElicitationParams.java
More file actions
58 lines (51 loc) · 1.55 KB
/
ElicitationParams.java
File metadata and controls
58 lines (51 loc) · 1.55 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
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------------------------------------------*/
package com.github.copilot.sdk.json;
/**
* Parameters for an elicitation request sent from the SDK to the host.
*
* @since 1.0.0
*/
public class ElicitationParams {
private String message;
private ElicitationSchema requestedSchema;
/**
* Gets the message describing what information is needed from the user.
*
* @return the message
*/
public String getMessage() {
return message;
}
/**
* Sets the message describing what information is needed from the user.
*
* @param message
* the message
* @return this instance for method chaining
*/
public ElicitationParams setMessage(String message) {
this.message = message;
return this;
}
/**
* Gets the JSON Schema describing the form fields to present.
*
* @return the requested schema
*/
public ElicitationSchema getRequestedSchema() {
return requestedSchema;
}
/**
* Sets the JSON Schema describing the form fields to present.
*
* @param requestedSchema
* the schema
* @return this instance for method chaining
*/
public ElicitationParams setRequestedSchema(ElicitationSchema requestedSchema) {
this.requestedSchema = requestedSchema;
return this;
}
}