Use ML Models
These actions provide ability to run real-time inference using various machine learning libraries.
Use ML Models Actions
Score / ScoreML
Field
Definition
Example
Default
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"eventMeta": {
"type": "object",
"properties": {
"inputElement": {
"type": "string",
"description": "Json path for the input in request event payload",
"examples": ["parameters"],
"default": null
},
"outputElement": {
"type": "string",
"description": "Json path for the output in response event payload",
"examples": ["$.score"],
"default": null
}
}
}
}
}Parameter
Definition
Example
Default
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"eventMeta": {
"type": "object",
"properties": {
"parameters": {
"type": "object",
"properties": {
"inputPattern": {
"type": "string",
"description": "JMESPath pattern to apply on data input",
"examples": ["[ [text] ]"],
"default": null
},
"outputPattern": {
"type": "string",
"description": "JMESPath pattern to apply on data output, before returning response",
"examples": ["{totalPrice:basket.totalPrice}"],
"default": null
}
}
}
}
}
}
}Last updated
