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

Method getInput

examples/legacy_2x/ChatGLMParam.java:31–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

getHttpBodyMethod · 0.95

Calls 3

toJsonElementMethod · 0.95
getPromptMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected