?
createDataSource
Legacy v1 data sources. v2 apps should use `dataSources.defineDataSource()` from @mindstudio-ai/agent instead, which owns parsing, chunking, embedding and citations. Create a new empty vector data source for the current app.
mindstudio.createDataSource({ name }) → Result
Legacy v1: creates an empty vector data source. New apps use dataSources.defineDataSource in this SDK instead, which owns parsing, chunking, embedding, and citations; reach for v1 only in existing v1 apps.
Parameters
name
string
RequiredName for the new data source (supports variable interpolation)
Call from a method
import { mindstudio } from '@mindstudio-ai/agent'; const result = await mindstudio.createDataSource({ name: /* ... */ });