Class AgentStudioJson
java.lang.Object
com.alibaba.dashscope.applications.agentstudio.resource.AgentStudioJson
Response parsing for AgentStudio resources.
AgentStudio models embed polymorphic ContentBlock values, which require ContentBlock.Deserializer on the parsing Gson. The transport-level JsonUtils Gson stays
model-agnostic, so AgentStudio responses are parsed here instead of through
FlattenResultBase.fromDashScopeResult. Number and escaping policies mirror JsonUtils so
field-level parse behavior stays the same.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TfromDashScopeResult(DashScopeResult dashScopeResult, Type type) MirrorsFlattenResultBase.fromDashScopeResult, but parses withGSONso responses carrying content blocks deserialize to their concrete subtypes.
-
Field Details
-
GSON
public static final com.google.gson.Gson GSON
-
-
Method Details
-
fromDashScopeResult
MirrorsFlattenResultBase.fromDashScopeResult, but parses withGSONso responses carrying content blocks deserialize to their concrete subtypes.
-