forked from github/copilot-sdk-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAgentInfo.java
More file actions
89 lines (77 loc) · 2.13 KB
/
AgentInfo.java
File metadata and controls
89 lines (77 loc) · 2.13 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
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------------------------------------------*/
package com.github.copilot.sdk.json;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Represents a custom agent available for selection in a session.
*
* @since 1.0.11
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class AgentInfo {
@JsonProperty("name")
private String name;
@JsonProperty("displayName")
private String displayName;
@JsonProperty("description")
private String description;
/**
* Gets the unique identifier of the agent.
*
* @return the agent name/identifier
*/
public String getName() {
return name;
}
/**
* Sets the unique identifier of the agent.
*
* @param name
* the agent name/identifier
* @return this instance for chaining
*/
public AgentInfo setName(String name) {
this.name = name;
return this;
}
/**
* Gets the human-readable display name of the agent.
*
* @return the display name
*/
public String getDisplayName() {
return displayName;
}
/**
* Sets the human-readable display name of the agent.
*
* @param displayName
* the display name
* @return this instance for chaining
*/
public AgentInfo setDisplayName(String displayName) {
this.displayName = displayName;
return this;
}
/**
* Gets the description of the agent's purpose.
*
* @return the description
*/
public String getDescription() {
return description;
}
/**
* Sets the description of the agent's purpose.
*
* @param description
* the description
* @return this instance for chaining
*/
public AgentInfo setDescription(String description) {
this.description = description;
return this;
}
}