A read-only SQL query the caller (or agent) wrote. offset skips that many leading result rows, so callers can page through a large result a window of max_rows at a time.
| Name | Type |
|---|---|
sql |
string |
maxRows |
number |
offset |
number |
import type { DataSourceQueryRequest } from '@knowledge-stack/ksapi'
// TODO: Update the object below with actual values
const example = {
"sql": null,
"maxRows": null,
"offset": null,
} satisfies DataSourceQueryRequest
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 DataSourceQueryRequest
console.log(exampleParsed)[Back to top] [Back to API list] [Back to Model list] [Back to README]