java.lang.Object
com.alibaba.dashscope.applications.agentstudio.resource.AgentStudioJson

public final class AgentStudioJson extends Object
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 Details

    • GSON

      public static final com.google.gson.Gson GSON
  • Method Details

    • fromDashScopeResult

      public static <T> T fromDashScopeResult(DashScopeResult dashScopeResult, Type type)
      Mirrors FlattenResultBase.fromDashScopeResult, but parses with GSON so responses carrying content blocks deserialize to their concrete subtypes.