Skip to content

Commit 1dcd050

Browse files
committed
Support AgentProfile APIS.
1 parent 704d9cf commit 1dcd050

33 files changed

+3527
-4
lines changed

aliyun-java-sdk-outboundbot/ChangeLog.txt

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-03-27 Version: 1.6.5
2+
- Support AgentProfile APIS.
3+
14
2024-12-02 Version: 1.6.4
25
- Supported FlashSms apis.
36

aliyun-java-sdk-outboundbot/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>com.aliyun</groupId>
55
<artifactId>aliyun-java-sdk-outboundbot</artifactId>
66
<packaging>jar</packaging>
7-
<version>1.6.4</version>
7+
<version>1.6.5</version>
88
<name>aliyun-java-sdk-outboundbot</name>
99
<url>http://www.aliyun.com</url>
1010
<description>Aliyun Open API SDK for Java
@@ -91,7 +91,7 @@ http://www.aliyun.com</description>
9191
<plugin>
9292
<groupId>org.apache.maven.plugins</groupId>
9393
<artifactId>maven-gpg-plugin</artifactId>
94-
<version>1.5</version>
94+
<version>3.1.0</version>
9595
<executions>
9696
<execution>
9797
<id>sign-artifacts</id>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,225 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.outboundbot.model.v20191226;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import com.aliyuncs.http.ProtocolType;
19+
import com.aliyuncs.http.MethodType;
20+
import com.aliyuncs.outboundbot.Endpoint;
21+
22+
/**
23+
* @author auto create
24+
* @version
25+
*/
26+
public class CreateAgentProfileRequest extends RpcAcsRequest<CreateAgentProfileResponse> {
27+
28+
29+
private String modelConfig;
30+
31+
private String appIp;
32+
33+
private String description;
34+
35+
private String agentProfileTemplateId;
36+
37+
private String scriptId;
38+
39+
private String variablesJson;
40+
41+
private String instructionJson;
42+
43+
private String scenario;
44+
45+
private String model;
46+
47+
private String labelsJson;
48+
49+
private String faqCategoryIds;
50+
51+
private String instanceId;
52+
53+
private String promptJson;
54+
55+
private String prompt;
56+
public CreateAgentProfileRequest() {
57+
super("OutboundBot", "2019-12-26", "CreateAgentProfile", "outboundbot");
58+
setProtocol(ProtocolType.HTTPS);
59+
setMethod(MethodType.POST);
60+
try {
61+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
62+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
63+
} catch (Exception e) {}
64+
}
65+
66+
public String getModelConfig() {
67+
return this.modelConfig;
68+
}
69+
70+
public void setModelConfig(String modelConfig) {
71+
this.modelConfig = modelConfig;
72+
if(modelConfig != null){
73+
putBodyParameter("ModelConfig", modelConfig);
74+
}
75+
}
76+
77+
public String getAppIp() {
78+
return this.appIp;
79+
}
80+
81+
public void setAppIp(String appIp) {
82+
this.appIp = appIp;
83+
if(appIp != null){
84+
putBodyParameter("AppIp", appIp);
85+
}
86+
}
87+
88+
public String getDescription() {
89+
return this.description;
90+
}
91+
92+
public void setDescription(String description) {
93+
this.description = description;
94+
if(description != null){
95+
putBodyParameter("Description", description);
96+
}
97+
}
98+
99+
public String getAgentProfileTemplateId() {
100+
return this.agentProfileTemplateId;
101+
}
102+
103+
public void setAgentProfileTemplateId(String agentProfileTemplateId) {
104+
this.agentProfileTemplateId = agentProfileTemplateId;
105+
if(agentProfileTemplateId != null){
106+
putBodyParameter("AgentProfileTemplateId", agentProfileTemplateId);
107+
}
108+
}
109+
110+
public String getScriptId() {
111+
return this.scriptId;
112+
}
113+
114+
public void setScriptId(String scriptId) {
115+
this.scriptId = scriptId;
116+
if(scriptId != null){
117+
putBodyParameter("ScriptId", scriptId);
118+
}
119+
}
120+
121+
public String getVariablesJson() {
122+
return this.variablesJson;
123+
}
124+
125+
public void setVariablesJson(String variablesJson) {
126+
this.variablesJson = variablesJson;
127+
if(variablesJson != null){
128+
putBodyParameter("VariablesJson", variablesJson);
129+
}
130+
}
131+
132+
public String getInstructionJson() {
133+
return this.instructionJson;
134+
}
135+
136+
public void setInstructionJson(String instructionJson) {
137+
this.instructionJson = instructionJson;
138+
if(instructionJson != null){
139+
putBodyParameter("InstructionJson", instructionJson);
140+
}
141+
}
142+
143+
public String getScenario() {
144+
return this.scenario;
145+
}
146+
147+
public void setScenario(String scenario) {
148+
this.scenario = scenario;
149+
if(scenario != null){
150+
putBodyParameter("Scenario", scenario);
151+
}
152+
}
153+
154+
public String getModel() {
155+
return this.model;
156+
}
157+
158+
public void setModel(String model) {
159+
this.model = model;
160+
if(model != null){
161+
putBodyParameter("Model", model);
162+
}
163+
}
164+
165+
public String getLabelsJson() {
166+
return this.labelsJson;
167+
}
168+
169+
public void setLabelsJson(String labelsJson) {
170+
this.labelsJson = labelsJson;
171+
if(labelsJson != null){
172+
putBodyParameter("LabelsJson", labelsJson);
173+
}
174+
}
175+
176+
public String getFaqCategoryIds() {
177+
return this.faqCategoryIds;
178+
}
179+
180+
public void setFaqCategoryIds(String faqCategoryIds) {
181+
this.faqCategoryIds = faqCategoryIds;
182+
if(faqCategoryIds != null){
183+
putBodyParameter("FaqCategoryIds", faqCategoryIds);
184+
}
185+
}
186+
187+
public String getInstanceId() {
188+
return this.instanceId;
189+
}
190+
191+
public void setInstanceId(String instanceId) {
192+
this.instanceId = instanceId;
193+
if(instanceId != null){
194+
putBodyParameter("InstanceId", instanceId);
195+
}
196+
}
197+
198+
public String getPromptJson() {
199+
return this.promptJson;
200+
}
201+
202+
public void setPromptJson(String promptJson) {
203+
this.promptJson = promptJson;
204+
if(promptJson != null){
205+
putBodyParameter("PromptJson", promptJson);
206+
}
207+
}
208+
209+
public String getPrompt() {
210+
return this.prompt;
211+
}
212+
213+
public void setPrompt(String prompt) {
214+
this.prompt = prompt;
215+
if(prompt != null){
216+
putBodyParameter("Prompt", prompt);
217+
}
218+
}
219+
220+
@Override
221+
public Class<CreateAgentProfileResponse> getResponseClass() {
222+
return CreateAgentProfileResponse.class;
223+
}
224+
225+
}

0 commit comments

Comments
 (0)