UNPKG
tess-core-engine
Version:
latest (0.3.5)
0.3.5
0.3.4
0.3.2
0.3.1
0.3.0
0.2.1
0.2.0
Tess Core: framework cognitivo modular con API Fluent
tess-core-engine
/
src
/
core
/
ProtocolRunner.js
8 lines
(7 loc)
•
224 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
class
ProtocolRunner
{
async
run
(
adapter, context
) {
if
(
typeof
adapter.
execute
!==
'function'
)
throw
new
Error
(
'Adapter missing execute()'
);
return
adapter.
execute
(context); } }
module
.
exports
=
ProtocolRunner
;