Class AgentUpdateParam
java.lang.Object
com.alibaba.dashscope.applications.agentstudio.base.HalfDuplexParamBase
com.alibaba.dashscope.applications.agentstudio.base.FlattenHalfDuplexParamBase
com.alibaba.dashscope.applications.agentstudio.param.AgentUpdateParam
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAgentUpdateParam.AgentUpdateParamBuilder<C extends AgentUpdateParam,B extends AgentUpdateParam.AgentUpdateParamBuilder<C, B>> Adds themodel(...)aliases formodelConfig(...).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 TypeMethodDescriptionstatic AgentUpdateParam.AgentUpdateParamBuilder<?,?> builder()protected booleanbooleancom.google.gson.JsonObjectGet the batch request data.getModel()The model id, or null when unset; the full config isgetModelConfig().Omit it to leave the stored config untouched; sending one replaces it as a whole.getName()The server rejects an update that omits it (AGENT_005); re-send the current name.getTools()Required: must equal the server's current (latest) version, or the update fails with 409.inthashCode()voidsetDescription(String description) voidsetMcpServers(List<Configs.McpServerConfig> mcpServers) voidsetMetadata(Map<String, String> metadata) voidAlias for callingsetModelConfig(ModelConfig)withModelConfig.of(modelId), which clears the parameters stored on the agent.voidsetModelConfig(Configs.ModelConfig modelConfig) Omit it to leave the stored config untouched; sending one replaces it as a whole.voidsetMultiagent(Configs.MultiAgentConfig multiagent) voidThe server rejects an update that omits it (AGENT_005); re-send the current name.voidsetSkills(List<Configs.SkillConfig> skills) voidsetSystemPrompt(String systemPrompt) voidsetTools(List<Configs.ToolConfig> tools) voidsetVersion(Integer version) Required: must equal the server's current (latest) version, or the update fails with 409.toString()voidvalidate()Validate the input and parameters.Methods inherited from class com.alibaba.dashscope.applications.agentstudio.base.FlattenHalfDuplexParamBase
addExtraBody, getBinaryData, getHeaders, getInput, getParameters, getResources, putHeaderMethods inherited from class com.alibaba.dashscope.applications.agentstudio.base.HalfDuplexParamBase
getApiKey, getEnableEncrypt, getWorkspace, isSecurityCheck, setApiKey, setEnableEncrypt, setHeaders, setParameters, setSecurityCheck, setWorkspace, shouldSerializeExplicitNulls
-
Constructor Details
-
AgentUpdateParam
-
-
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
-
getModel
The model id, or null when unset; the full config isgetModelConfig().- Overrides:
getModelin classFlattenHalfDuplexParamBase
-
setModel
Alias for callingsetModelConfig(ModelConfig)withModelConfig.of(modelId), which clears the parameters stored on the agent. -
validate
public void validate()Description copied from class:HalfDuplexParamBaseValidate the input and parameters.- Overrides:
validatein classFlattenHalfDuplexParamBase
-
builder
-
getVersion
Required: must equal the server's current (latest) version, or the update fails with 409. -
getName
The server rejects an update that omits it (AGENT_005); re-send the current name. -
getModelConfig
Omit it to leave the stored config untouched; sending one replaces it as a whole. -
getDescription
-
getSystemPrompt
-
getTools
-
getMcpServers
-
getSkills
-
getMultiagent
-
getMetadata
-
setVersion
Required: must equal the server's current (latest) version, or the update fails with 409. -
setName
The server rejects an update that omits it (AGENT_005); re-send the current name. -
setModelConfig
Omit it to leave the stored config untouched; sending one replaces it as a whole. -
setDescription
-
setSystemPrompt
-
setTools
-
setMcpServers
-
setSkills
-
setMultiagent
-
setMetadata
-
toString
- Overrides:
toStringin classFlattenHalfDuplexParamBase
-
equals
- Overrides:
equalsin classFlattenHalfDuplexParamBase
-
canEqual
- Overrides:
canEqualin classFlattenHalfDuplexParamBase
-
hashCode
public int hashCode()- Overrides:
hashCodein classFlattenHalfDuplexParamBase
-