Search Agent Data
client.beta.agentData.search(AgentDataSearchParams { deployment_name, organization_id, project_id, 7 more } params, RequestOptionsoptions?): PaginatedCursorPost<AgentData { data, deployment_name, id, 4 more } >
POST/api/v1/beta/agent-data/:search
Search Agent Data
import LlamaCloud from '@llamaindex/llama-cloud';
const client = new LlamaCloud({
apiKey: process.env['LLAMA_CLOUD_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const agentData of client.beta.agentData.search({
deployment_name: 'deployment_name',
})) {
console.log(agentData.id);
}{
"items": [
{
"data": {
"foo": "bar"
},
"deployment_name": "deployment_name",
"id": "id",
"collection": "collection",
"created_at": "2019-12-27T18:11:19.117Z",
"project_id": "project_id",
"updated_at": "2019-12-27T18:11:19.117Z"
}
],
"next_page_token": "next_page_token",
"total_size": 0
}Returns Examples
{
"items": [
{
"data": {
"foo": "bar"
},
"deployment_name": "deployment_name",
"id": "id",
"collection": "collection",
"created_at": "2019-12-27T18:11:19.117Z",
"project_id": "project_id",
"updated_at": "2019-12-27T18:11:19.117Z"
}
],
"next_page_token": "next_page_token",
"total_size": 0
}