エンティティの関係を取得
Get relationships for a specific entity.
Returns all connected entities and the memories where this entity is mentioned. Use depth to control how many hops to traverse.
パスパラメータ
entity_id*Entity Id
クエリパラメータ
depth?Depth
Traversal depth for relationships
Range
1 <= value <= 3Default
1limit?Limit
Maximum relationships to return
Range
1 <= value <= 200Default
50レスポンスボディ
application/json
application/json
curl -X GET "https://example.com/entities/string/relationships"{ "entity": { "aliases": [ "string" ], "community_id": 0, "confidence": 0, "created_at": "string", "description": "", "id": "string", "name": "string", "type": "string", "updated_at": "string" }, "metadata": { "limit": 0, "total_mentions": 0, "total_relates_to": 0, "traversal_depth": 0 }, "relationships": { "community": { "community_id": 0, "member_count": 0, "name": "string", "summary": "string" }, "mentioned_in": [ { "confidence": 0, "memory": { "content": "", "id": "string", "title": "" }, "mention_count": 0 } ], "relates_to": [ { "depth": 0, "relationship": { "confidence": 0, "strength": 0, "type": "string" }, "source_entity": { "aliases": [ "string" ], "community_id": 0, "confidence": 0, "created_at": "string", "description": "", "id": "string", "name": "string", "type": "string", "updated_at": "string" }, "target_entity": { "aliases": [ "string" ], "community_id": 0, "confidence": 0, "created_at": "string", "description": "", "id": "string", "name": "string", "type": "string", "updated_at": "string" } } ] }}