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

Method main

examples/legacy_2x/TingWuUsage.java:23–39  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

21 }
22
23 public static void main(String[] args) {
24 try {
25 // Create the task
26 TingWu tingwu = new TingWu();
27 TingWuParam param =
28 TingWuParam.builder()
29 .model("tingwu-automotive-service-inspection")
30 .input(buildCreateTask("123456"))
31 .parameters(new HashMap<>()) // Set task parameters
32 .build();
33 DashScopeResult result = tingwu.call(param);
34 System.out.println(JsonUtils.toJson(result));
35 } catch (ApiException | NoApiKeyException | InputRequiredException e) {
36 System.out.println(e.getMessage());
37 }
38 System.exit(0);
39 }
40}

Callers

nothing calls this directly

Calls 9

buildCreateTaskMethod · 0.95
callMethod · 0.95
toJsonMethod · 0.95
inputMethod · 0.80
buildMethod · 0.65
parametersMethod · 0.45
modelMethod · 0.45
builderMethod · 0.45
getMessageMethod · 0.45

Tested by

no test coverage detected