@adcp/client 3.3.0 → 3.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/adcp.js CHANGED
@@ -65,8 +65,8 @@ function extractProtocolMessage(conversation, protocol) {
65
65
  * Display agent info - just calls library method
66
66
  */
67
67
  async function displayAgentInfo(agentConfig, jsonOutput) {
68
- const client = new AdCPClient(agentConfig);
69
- const info = await client.getAgentInfo();
68
+ const client = new AdCPClient([agentConfig]);
69
+ const info = await client.agent(agentConfig.id).getAgentInfo();
70
70
 
71
71
  if (jsonOutput) {
72
72
  console.log(JSON.stringify(info, null, 2));