跳到主要内容

openhands.server.routes.conversation

get_remote_runtime_config

@app.get('/config')
async def get_remote_runtime_config(request: Request)

Retrieve the runtime configuration.

Currently, this is the session ID and runtime ID (if available).

get_vscode_url

@app.get('/vscode-url')
async def get_vscode_url(request: Request)

Get the VSCode URL.

This endpoint allows getting the VSCode URL.

Arguments:

  • request Request - The incoming FastAPI request object.

Returns:

  • JSONResponse - A JSON response indicating the success of the operation.

get_hosts

@app.get('/web-hosts')
async def get_hosts(request: Request)

Get the hosts used by the runtime.

This endpoint allows getting the hosts used by the runtime.

Arguments:

  • request Request - The incoming FastAPI request object.

Returns:

  • JSONResponse - A JSON response indicating the success of the operation.