org.rapaio.jupyter.kernel.message.messages.ShellInspectRequest Maven / Gradle / Ivy
package org.rapaio.jupyter.kernel.message.messages;
import org.rapaio.jupyter.kernel.message.ContentType;
import org.rapaio.jupyter.kernel.message.MessageType;
import com.google.gson.annotations.SerializedName;
public record ShellInspectRequest(
// The code that the request wants inspected
String code,
// The character index within the code in which the cursor is at. This allows for an inspection
@SerializedName("cursor_pos") int cursorPos,
// Either 0 or 1. 0 is the default and in IPython level 1 includes the source in the inspection.
@SerializedName("detail_level")
int detailLevel
) implements ContentType {
@Override
public MessageType type() {
return MessageType.SHELL_INSPECT_REQUEST;
}
}