Update Agent Data
client.beta.agentData.update(stringitemID, AgentDataUpdateParams { data, organization_id, project_id } params, RequestOptionsoptions?): AgentData { data, deployment_name, id, 4 more }
PUT/api/v1/beta/agent-data/{item_id}
Update 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
});
const agentData = await client.beta.agentData.update('item_id', { data: { foo: 'bar' } });
console.log(agentData.id);{
"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"
}Returns Examples
{
"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"
}