Class AgentStudioConstants
java.lang.Object
com.alibaba.dashscope.applications.agentstudio.AgentStudioConstants
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classstatic final classTool approval policy (permission_policy.type).static final classstatic final classstatic final classstop_reason.typevalues carried bysession_statusidle events. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidappendParam(StringBuilder sb, String key, Object value) Appendkey=value(URL-encoded) tosbif value is non-null.static StringDefault HTTP base URL used when a service option carries no explicit base URL.static GeneralServiceOptionnewServiceOption(HttpMethod method, String path, String baseUrl) Build aGeneralServiceOptionfor an agentstudio endpoint.static StringresolveBaseUrl(String workspace, String region) static <P extends HalfDuplexParamBase>
PwithApiKey(String apiKey, P param) Stamp the client's instance apiKey onto a param if the caller didn't set one.
-
Field Details
-
BASE_URL_TEMPLATE
- See Also:
-
DEFAULT_REGION
- See Also:
-
DEFAULT_TIMEOUT_MS
public static final int DEFAULT_TIMEOUT_MS- See Also:
-
DEFAULT_CONNECT_TIMEOUT_MS
public static final int DEFAULT_CONNECT_TIMEOUT_MS- See Also:
-
ENV_BASE_URL
- See Also:
-
ENV_BASE_URL_ALT
- See Also:
-
ENV_WORKSPACE
- See Also:
-
ENV_REGION
- See Also:
-
SDK_MODULE
SDK module marker appended tox-dashscope-sdk-clienton all AgentStudio paths.- See Also:
-
-
Method Details
-
resolveBaseUrl
-
defaultHttpBaseUrl
Default HTTP base URL used when a service option carries no explicit base URL. Reads the neutralDASHSCOPE_HTTP_BASE_URLenvironment variable and falls back to the public DashScope endpoint for the configured API version. AgentStudio owns this resolution; mutable legacy global state no longer applies. -
newServiceOption
Build aGeneralServiceOptionfor an agentstudio endpoint. WhenbaseUrlis non-null it overrides the default; otherwise the request falls back todefaultHttpBaseUrl()viaGeneralApi. -
withApiKey
Stamp the client's instance apiKey onto a param if the caller didn't set one. The fallback chain inApiKey.getApiKey(java.lang.String)still applies whenapiKeyis null. -
appendParam
Appendkey=value(URL-encoded) tosbif value is non-null. Joins with &.
-