openhands.server.session.session
Session Objects
class Session()
on_event
async def on_event(event: Event)
Callback function for events that mainly come from the agent. Event is the base class for any agent action and observation.
Arguments:
event
- The agent event (Observation or Action).
send_error
async def send_error(message: str)
Sends an error message to the client.
queue_status_message
def queue_status_message(msg_type: str, id: str, message: str)
Queues a status message to be sent asynchronously.