Suggestion
This is the model return by the connector's suggest endpoint. Note: assets are the assets that this target was ran against. distribution is the distribution that we generated from comparing the target to the asset's vectors.(currently uuid(assetid) : value that is the difference between the asset and the target) **could potentially make an additional model here that is an array from most to least relevent. *** distribution is required but we are currently unable to reflect that with our current dart generation.
Properties
Name | Type |
---|---|
schema | EmbeddedModelSchema |
reuse | ReuseSuggestion |
save | SaveSuggestion |
target | SuggestionTarget |
assets | Assets |
distribution | { [key: string]: number; } |
Example
import { Suggestion } from '@pieces.app/pieces-os-client'
// TODO: Update the object below with actual values
const example: Suggestion = {
"schema": null,
"reuse": null,
"save": null,
"target": null,
"assets": null,
"distribution": null,
}
console.log(example)
// Convert the instance to a JSON string
const exampleJSON: string = JSON.stringify(example)
console.log(exampleJSON)
// Parse the JSON string back to an object
const exampleParsed = JSON.parse(exampleJSON) as Suggestion
console.log(exampleParsed)