import Honcho from '@honcho-ai/core';const client = new Honcho({ apiKey: process.env['HONCHO_API_KEY'], // This is the default and can be omitted});const response = await client.workspaces.peers.chat('workspace_id', 'peer_id', { queries: 'string' });console.log(response.content);
Copy
{ "content": "<string>"}
peers
Chat
POST
/
v2
/
workspaces
/
{workspace_id}
/
peers
/
{peer_id}
/
chat
JavaScript
Copy
import Honcho from '@honcho-ai/core';const client = new Honcho({ apiKey: process.env['HONCHO_API_KEY'], // This is the default and can be omitted});const response = await client.workspaces.peers.chat('workspace_id', 'peer_id', { queries: 'string' });console.log(response.content);