Add A Datasource
Second stage of adding Datasource (check test datasource for the first step), this connects the datasource to a vectordb, creates a connection between the datasource and airbyte, starts a job to synchronise the rows and finally creates a tool for the datasource. A tool for the datasource is required as within agents a datasource is used as a ‘tool’ just the same as any other tool, this is required for the ‘RAG’ process.
Path Parameters
The resourceSlug is a url parameter of the teamId associated with the user. Anywhere the resourceSlug is used can be interpreted as a teamId
Body
Datasource object that was created when testDatasourceApi is run, must include datasourceId.
Represents a data source configuration within the system, including connection details, status, chunking configurations, and record counts.
Response
Successful operation, redirect to '/{resourceSlug}/datasources'. Returns added toolId in return body
Server response after successsfully adding a new object