Repository navigation
feat(agentstudio): support deployment environment variables - #193
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:21
Deployment 的 create / update 支持 environment_variables,响应模型回显该字段。 同步与异步资源类均已透传。语义与 session 一致:整体覆盖,传空字典清空, 不传不修改。
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 侧一致:
Mapping[str, str],键值均为字符串_NOT_GIVEN那套区分(与metadata一致)同步
Deployments与异步AsyncDeployments两条路径都已透传。Changes
types/params.py:DeploymentCreateParams/DeploymentUpdateParams新增字段types/models.py:Deployment新增字段用于回显resources/deployments.py:同步与异步的create/update共 4 处签名透出该参数tests/unit/test_agentstudio_deployments.py:补测试与 fixtureTest plan
pytest tests/unit/test_agentstudio_deployments.py—— 5 个用例通过black --line-length=79与flake8 --extend-ignore=E203均通过(版本与 .pre-commit-config.yaml 一致)