Skip to main content

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

NameType
schemaEmbeddedModelSchema
reuseReuseSuggestion
saveSaveSuggestion
targetSuggestionTarget
assetsAssets
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)