Conversation
Add authenticated text-only sync and async WebSocket clients for leased OpenEnv instances, including secure URL construction, lifecycle cleanup, samples, tests, dependency metadata, and APIView updates. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Azure Pipelines: 10 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
reset(seed=None, episode_id=None, **kwargs) already had **kwargs on its signature, but those kwargs were forwarded as transport/operation options to the generated runtime.reset(...) call, never reaching the environment. step() instead treats its **action_kwargs as environment-specific action fields via coerce_action(). This aligns reset() with that same pattern: - Add coerce_reset_body(seed, episode_id, kwargs) in _patch_rle.py, mirroring coerce_action. With no extra kwargs it still returns the strict RLEResetRequest model (unchanged wire shape); with extras it returns a plain dict merging seed/episodeId with the environment- specific fields, since RLEResetRequest has no field for them but the generated reset operation already accepts a raw JSON body too. - reset() (sync and async) now builds its body via coerce_reset_body and no longer forwards **kwargs to the runtime operation call. - seed/episode_id passed as extra kwargs raise TypeError (use the named parameters instead). - Add unit tests for coerce_reset_body and end-to-end sync/async tests confirming extra reset kwargs reach the wire body. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.
Add authenticated text-only sync and async WebSocket clients for leased OpenEnv instances, including secure URL construction, lifecycle cleanup, samples, tests, dependency metadata, and APIView updates.
Description
Please add an informative description that covers that changes made by the pull request and link all relevant issues.
If an SDK is being regenerated based on a new API spec, a link to the pull request containing these API spec changes should be included above.
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines