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

Method main

samples/TingWuUsage.java:26–41  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 6

buildCreateTaskMethod · 0.95
callMethod · 0.95
toJsonMethod · 0.95
builderMethod · 0.80
getMessageMethod · 0.80
buildMethod · 0.65

Tested by

no test coverage detected