Skip to content

Conversation

@burtenshaw
Copy link
Collaborator

@burtenshaw burtenshaw commented Dec 10, 2025

This PR updates the cli template to use the websockets approach from #239 .

Before

env = __ENV_CLASS_NAME__Environment()

# Create the app with web interface and README integration
app = create_app(
    env,
    __ENV_CLASS_NAME__Action,
    __ENV_CLASS_NAME__Observation,
    env_name="__ENV_NAME__",
)

After

app = create_app(
    __ENV_CLASS_NAME__Environment,
    __ENV_CLASS_NAME__Action,
    __ENV_CLASS_NAME__Observation,
    env_name="__ENV_NAME__",
    max_concurrent_envs=1,  # increase this number to allow more concurrent WebSocket sessions
)

rycerzes and others added 11 commits December 4, 2025 23:01
…erver capabilities

- Introduced WebSocketEnvClient for persistent sessions with multi-step interactions.
- Updated HTTPEnvServer to support WebSocket connections and manage multiple concurrent environments.
- Added WebSocket message types and responses for better communication.
- Enhanced Environment interface with concurrency safety attributes.
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Dec 10, 2025
@burtenshaw
Copy link
Collaborator Author

@rycerzes We can merge this after #239 or into. It's up to you.

@rycerzes
Copy link
Contributor

@rycerzes We can merge this after #239 or into. It's up to you.

Let's merge this into #239 so we can keep everything together and test it as one unit. I'll pull your changes in after addressing Lucain's review comments.

@burtenshaw
Copy link
Collaborator Author

@rycerzes ok. Can you merge this into your fork and I'll close this then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants