@mindstudio-ai/agent 0.1.88 → 0.1.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +41 -19
- package/dist/index.d.ts +215 -161
- package/dist/index.js +16 -6
- package/dist/index.js.map +1 -1
- package/dist/postinstall.js +41 -19
- package/llms.txt +6 -0
- package/package.json +1 -1
package/llms.txt
CHANGED
|
@@ -1841,6 +1841,12 @@ import { platform } from '@mindstudio-ai/interface';
|
|
|
1841
1841
|
const { url } = await platform.upload(token, file, { onProgress });
|
|
1842
1842
|
```
|
|
1843
1843
|
|
|
1844
|
+
Generated assets: any action that produces a file (`generateImage`, `generateVideo`, `generateSpeech`, `generatePdf`, `upscaleImage`, …) can put its output straight into one of these stores — pass the store handle as `store` in the OPTIONS object (second argument). Optional: omit it and the asset goes to the shared MindStudio CDN as before. Reach for it when the asset belongs to the app — private to a user, or listed alongside its other files.
|
|
1845
|
+
|
|
1846
|
+
```typescript
|
|
1847
|
+
const { imageUrl } = await mindstudio.generateImage({ prompt: 'a red sneaker' }, { store: Assets });
|
|
1848
|
+
```
|
|
1849
|
+
|
|
1844
1850
|
#### `dataSources` — searchable document corpora (RAG)
|
|
1845
1851
|
|
|
1846
1852
|
Declare a data source at module scope and import the handle. The platform owns parsing, chunking, embedding, storage and tenant isolation; every hit returns a citation.
|