MCPcopy Create free account
hub / github.com/dashscope/dashscope-sdk-java / getInput

Method getInput

samples/ChatGLMParam.java:28–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26 private List<List<String>> history;
27
28 @Override
29 public JsonObject getInput() {
30 JsonObject jsonObject = new JsonObject();
31 jsonObject.addProperty(PROMPT, getPrompt());
32 JsonArray ar = JsonUtils.toJsonElement(history).getAsJsonArray();
33 jsonObject.add(HISTORY, ar);
34 return jsonObject;
35 }
36
37 /**
38 * Get the websocket binary data, only for websocket binary input data.

Callers 1

getHttpBodyMethod · 0.95

Calls 1

toJsonElementMethod · 0.95

Tested by

no test coverage detected