List Agents For Folder
client.folders.agents.list(stringfolderID, AgentListParams { after, before, limit, 2 more } query?, RequestOptionsoptions?): AgentListResponse
/v1/folders/{folder_id}/agents
Get all agent IDs that have the specified folder attached.
Parameters
Returns
AgentListResponse = Array<string>
List Agents For Folder
import Letta from '@letta-ai/letta-client';
const client = new Letta({
apiKey: process.env['LETTA_API_KEY'], // This is the default and can be omitted
});
const agents = await client.folders.agents.list('source-123e4567-e89b-42d3-8456-426614174000');
console.log(agents);
[
"string"
]
Returns Examples
[
"string"
]