import Honcho from 'honcho-ai';const client = new Honcho({ apiKey: process.env['HONCHO_API_KEY'], // This is the default and can be omitted});async function main() { const dialecticResponse = await client.apps.users.sessions.chat('app_id', 'user_id', 'session_id', { queries: 'string', }); console.log(dialecticResponse.content);}main();
Copy
{ "content": "<string>"}
sessions
Chat
Chat with the Dialectic API
POST
/
v1
/
apps
/
{app_id}
/
users
/
{user_id}
/
sessions
/
{session_id}
/
chat
JavaScript
Copy
import Honcho from 'honcho-ai';const client = new Honcho({ apiKey: process.env['HONCHO_API_KEY'], // This is the default and can be omitted});async function main() { const dialecticResponse = await client.apps.users.sessions.chat('app_id', 'user_id', 'session_id', { queries: 'string', }); console.log(dialecticResponse.content);}main();