AsyncSession

public final class AsyncSession

AsyncSession manages sending and receiving messages over a WebSocket connection for a live session. The live module is experimental.

Functions

Link copied to clipboard
Closes the WebSocket connection.
Link copied to clipboard
Registers a callback to receive messages from the live session.
Link copied to clipboard
Sends client content to the live session.
Link copied to clipboard
Sends realtime input to the live session.
Link copied to clipboard
Sends tool response to the live session.
Link copied to clipboard
public String sessionId()
Gets the session ID of the live session.