Repository navigation
feat(agentstudio): support deployment environment variables - #271
Merged
luk384090-cloud merged 2 commits intoSep 11, 2026
Merged
luk384090-cloud merged 2 commits into
luk384090-cloud merged 2 commits into
Conversation
added 2 commits
September 11, 2026 09:08
Deployment 的 create/update 支持 environment_variables,响应回显该字段。 传空 map 表示清空,不传表示不修改。
补充 create/update 两个用例对 environment_variables 的断言(写入、 空 map 清空、响应回显),fixture 同步补该字段;并按 google-java-format 修正超长行。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Deployment 的 create / update 支持
environment_variables,响应模型回显该字段。用于给部署运行时注入环境变量:deployment run 创建 session 时由服务端透传,最终注入沙箱运行时。契约与 session 侧一致:
Map<String, String>,键值均为字符串clearXxx开关(与metadata一致)Changes
model/Deployment.java:新增environment_variables用于回显param/DeploymentCreateParam.java:新增字段并写入请求体param/DeploymentUpdateParam.java:新增字段并写入请求体;序列化沿用metadata的LinkedHashMap拷贝写法,保证空 map 序列化为{}TestAgentStudioDeployments.java/agentstudio.json:补测试断言与 fixtureTest plan
mvn test -Dtest=TestAgentStudioDeployments—— 5 个用例通过