mwg API
Reference
Overview
Examples
Getting started
Design
FAQ
Preparing search index...
AI
AIModule
Interface AIModule
interface
AIModule
{
decide
(
agent
:
string
,
input
:
AIDecisionInput
)
:
AI
.
AIDecision
;
dispose
()
:
void
;
exportState
()
:
AIStateEnvelope
;
importState
(
envelope
:
AIStateEnvelope
)
:
void
;
register
(
agent
:
AIAgentDefinition
)
:
void
;
}
Implemented by
JavaScriptAI
Index
Methods
decide
dispose
export
State
import
State
register
Methods
decide
decide
(
agent
:
string
,
input
:
AIDecisionInput
)
:
AI
.
AIDecision
Parameters
agent
:
string
input
:
AIDecisionInput
Returns
AI
.
AIDecision
dispose
dispose
()
:
void
Returns
void
export
State
exportState
()
:
AIStateEnvelope
Returns
AIStateEnvelope
import
State
importState
(
envelope
:
AIStateEnvelope
)
:
void
Parameters
envelope
:
AIStateEnvelope
Returns
void
register
register
(
agent
:
AIAgentDefinition
)
:
void
Parameters
agent
:
AIAgentDefinition
Returns
void
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Methods
decide
dispose
export
State
import
State
register
Reference
Overview
Examples
Getting started
Design
FAQ
mwg API
Loading...