from typing import Any

from fastapi import FastAPI
from pydantic import BaseModel


class SessionStartRequest(BaseModel):
    mode: str = "cloud"
    language: str = "English"


app = FastAPI()


@app.post("/session/start")
def start_session(payload: SessionStartRequest) -> dict[str, Any]:
    session = {"id": "session-1", "mode": payload.mode, "language": payload.language}
    return {"session_id": session["id"], "session": session}
