Close File For Agent
client.agents.files.close(stringfileID, FileCloseParams { agent_id } params, RequestOptionsoptions?): FileCloseResponse
/v1/agents/{agent_id}/files/{file_id}/close
Closes a specific file for a given agent.
This endpoint marks a specific file as closed in the agent's file state. The file will be removed from the agent's working memory view.
Parameters
Returns
FileCloseResponse = unknown
Close File For Agent
import Letta from '@letta-ai/letta-client';
const client = new Letta({
apiKey: 'My API Key',
});
const response = await client.agents.files.close('file-123e4567-e89b-42d3-8456-426614174000', {
agent_id: 'agent-123e4567-e89b-42d3-8456-426614174000',
});
console.log(response);
{}Returns Examples
{}