CodeRunRequest
One program for a CodeRunner to run.
@internote/canvas-sdkOn this page
import { CodeRunRequest } from '@internote/canvas-sdk';#Fields
codeThe full program: any setup the environment adds, then exactly what the reader sees.
stringfileNameThe name the environment gives its code, so tracebacks read
exercise.py rather than a scratch name. The host sanitises it, and falls back to a name of its own when absent.stringidentityThe environment asking, so the host can attribute and scope the run.
EnvironmentIdentityinputsReserved for named inputs such as datasets and files. Always
undefined for now.Record<string, unknown>languageThe canonical language name, such as
python.stringsignalAborts the run when the reader presses Stop.
AbortSignalDeclared in packages/canvas-sdk/src/runner/index.ts:50.