PageIterator<T> that wraps the results and lets you iterate naturally.
Agents
Pagination
Iterating over collections
List methods return a
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
Iterating over collections
PageIterator<T> that wraps the results and lets you iterate naturally.
const page = await client.agents.list();
for await (const agent of page) {
console.log(agent.name);
}
const page = await client.agents.list();
const agents = await page.toArray();
const page = await client.agents.list();
console.log(page.data.length);
console.log(page.data[0]);
