QGPTTaskPipelineForCodeCompletion
This task is for code_completion ie auto-complete. This is a class so that we can add optional properties in the future. context: This is additional snippet context within the file that will be useful for the autocompletion.(PLEASE ONLY pass in Seed.asset.format.fragment.string.raw for the context snippet values, and for the classificaiton pass in Seed.asset.format.classification) Note: the snippet && language that needs to be Actually AutoCompleted should be within the QGPTQuestionInput.relevant.
Properties
Name | Type |
---|---|
schema | EmbeddedModelSchema |
context | Array<string> |
Example
import { QGPTTaskPipelineForCodeCompletion } from '@pieces.app/pieces-os-client'
// TODO: Update the object below with actual values
const example: QGPTTaskPipelineForCodeCompletion = {
"schema": null,
"context": 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 QGPTTaskPipelineForCodeCompletion
console.log(exampleParsed)