Class EnvironmentCreateParam
java.lang.Object
com.alibaba.dashscope.applications.agentstudio.base.HalfDuplexParamBase
com.alibaba.dashscope.applications.agentstudio.base.FlattenHalfDuplexParamBase
com.alibaba.dashscope.applications.agentstudio.param.EnvironmentCreateParam
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classEnvironmentCreateParam.EnvironmentCreateParamBuilder<C extends EnvironmentCreateParam,B extends EnvironmentCreateParam.EnvironmentCreateParamBuilder<C, B>> Nested classes/interfaces inherited from class com.alibaba.dashscope.applications.agentstudio.base.FlattenHalfDuplexParamBase
FlattenHalfDuplexParamBase.FlattenHalfDuplexParamBaseBuilder<C extends FlattenHalfDuplexParamBase,B extends FlattenHalfDuplexParamBase.FlattenHalfDuplexParamBaseBuilder<C, B>> Nested classes/interfaces inherited from class com.alibaba.dashscope.applications.agentstudio.base.HalfDuplexParamBase
HalfDuplexParamBase.HalfDuplexParamBaseBuilder<C extends HalfDuplexParamBase,B extends HalfDuplexParamBase.HalfDuplexParamBaseBuilder<C, B>> -
Field Summary
Fields inherited from class com.alibaba.dashscope.applications.agentstudio.base.HalfDuplexParamBase
headers, parameters -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleanEnvironment runtime configuration (open structure, aligned with server-sideJSONObject).com.google.gson.JsonObjectGet the batch request data.@NonNull StringgetName()getScope()inthashCode()voidEnvironment runtime configuration (open structure, aligned with server-sideJSONObject).voidsetDescription(String description) voidsetMetadata(Map<String, String> metadata) voidvoidtoString()Methods inherited from class com.alibaba.dashscope.applications.agentstudio.base.FlattenHalfDuplexParamBase
addExtraBody, getBinaryData, getHeaders, getInput, getModel, getParameters, getResources, putHeader, validateMethods inherited from class com.alibaba.dashscope.applications.agentstudio.base.HalfDuplexParamBase
getApiKey, getEnableEncrypt, getWorkspace, isSecurityCheck, setApiKey, setEnableEncrypt, setHeaders, setParameters, setSecurityCheck, setWorkspace, shouldSerializeExplicitNulls
-
Constructor Details
-
EnvironmentCreateParam
-
-
Method Details
-
getHttpBody
public com.google.gson.JsonObject getHttpBody()Description copied from class:HalfDuplexParamBaseGet the batch request data. Http body include {"model": "model_name", "input": "input data", "parameters": "The request parameters"}- Specified by:
getHttpBodyin classHalfDuplexParamBase- Returns:
- The http request body
-
builder
-
getName
-
getConfig
Environment runtime configuration (open structure, aligned with server-sideJSONObject).Known keys:
type(String) — hosting type, e.g. "cloud"networking(Map) — e.g. {"type": "unrestricted"}packages(Map<String, List<String>>) — e.g. {"pip": ["numpy"]}
Example:
Map<String, Object> config = new HashMap<>(); config.put("type", "cloud"); config.put("networking", Collections.singletonMap("type", "unrestricted")); Map<String, List<String>> packages = new HashMap<>(); packages.put("pip", Arrays.asList("numpy", "pandas")); config.put("packages", packages); -
getDescription
-
getScope
-
getMetadata
-
setName
-
setConfig
Environment runtime configuration (open structure, aligned with server-sideJSONObject).Known keys:
type(String) — hosting type, e.g. "cloud"networking(Map) — e.g. {"type": "unrestricted"}packages(Map<String, List<String>>) — e.g. {"pip": ["numpy"]}
Example:
Map<String, Object> config = new HashMap<>(); config.put("type", "cloud"); config.put("networking", Collections.singletonMap("type", "unrestricted")); Map<String, List<String>> packages = new HashMap<>(); packages.put("pip", Arrays.asList("numpy", "pandas")); config.put("packages", packages); -
setDescription
-
setScope
-
setMetadata
-
toString
- Overrides:
toStringin classFlattenHalfDuplexParamBase
-
equals
- Overrides:
equalsin classFlattenHalfDuplexParamBase
-
canEqual
- Overrides:
canEqualin classFlattenHalfDuplexParamBase
-
hashCode
public int hashCode()- Overrides:
hashCodein classFlattenHalfDuplexParamBase
-