GET
/
v2
/
workspaces
/
{workspace_id}
/
sessions
/
{session_id}
/
peers
/
{peer_id}
/
config
JavaScript
import Honcho from '@honcho-ai/core';

const client = new Honcho({
  apiKey: 'My API Key',
});

const sessionPeerConfig = await client.workspaces.sessions.peers.getConfig(
  'workspace_id',
  'session_id',
  'peer_id',
);

console.log(sessionPeerConfig.observe_me);
{
  "observe_others": false,
  "observe_me": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspace_id
string
required

ID of the workspace

session_id
string
required

ID of the session

peer_id
string
required

ID of the peer

Response

Successful Response

observe_others
boolean
default:false

Whether this peer should form a session-level theory-of-mind representation of other peers in the session

observe_me
boolean | null

Whether other peers in this session should try to form a session-level theory-of-mind representation of this peer