For Developers
Agents
List Agents
agents.list(options);
Retrieve a list of Agents.
Arguments
Parameter | Type | Description |
---|---|---|
options | object | This function supports standard paging options. |
Example Usage
for await (const agent of edlink.agents.list()) {
console.log(agent.relationship);
}
Fetch Agent
agents.fetch(agent_id, options);
Retrieve an individual Agent.
Arguments
Parameter | Type | Description |
---|---|---|
agent_id | string | The UUID of the agent. |
options | object | This function supports standard paging options. |
Example Usage
const agent = await edlink.agents.fetch(agent_id);
console.log(agent.relationship);