Class: abstract
Session<ConfigType>
Type Parameters
Type Parameter | Default type |
---|---|
|
|
Constructors
new Session()
new Session<ConfigType>(): Session<ConfigType>
Returns
Session
<ConfigType
>
Properties
config?
optional config: ConfigType;
Methods
getWorkflow()
getWorkflow(): Promise<Workflow>
Returns
Promise
<Workflow
>
getWorkflowImpl()
abstract protected getWorkflowImpl(): Promise<Workflow>
Returns
Promise
<Workflow
>
run()
run(params: {
context: Context;
inputs: RawTaskIO[];
onProgress: OnProgressCallback;
}): Promise<Results>
Parameters
Parameter | Type |
---|---|
|
|
| |
| |
|
Returns
Promise
<Results
>
runImpl()
abstract protected runImpl(params: {
context: Context;
inputs: RawTaskIO[];
onProgress: OnProgressCallback;
}): Promise<Results>
Parameters
Parameter | Type |
---|---|
|
|
| |
| |
|
Returns
Promise
<Results
>
setConfig()
setConfig(config: ConfigType): void
Parameters
Parameter | Type |
---|---|
|
|
Returns
void