Skip to main content

@elizaos/core v1.0.12 / Relationship

Interface: Relationship

Represents a relationship between users

Properties​

id​

id: `${string}-${string}-${string}-${string}-${string}`

Unique identifier

Defined in​

packages/core/src/types/environment.ts:110


sourceEntityId​

sourceEntityId: `${string}-${string}-${string}-${string}-${string}`

First user ID

Defined in​

packages/core/src/types/environment.ts:113


targetEntityId​

targetEntityId: `${string}-${string}-${string}-${string}-${string}`

Second user ID

Defined in​

packages/core/src/types/environment.ts:116


agentId​

agentId: `${string}-${string}-${string}-${string}-${string}`

Agent ID

Defined in​

packages/core/src/types/environment.ts:119


tags​

tags: string[]

Tags for filtering/categorizing relationships

Defined in​

packages/core/src/types/environment.ts:122


metadata​

metadata: Metadata

Additional metadata about the relationship

Defined in​

packages/core/src/types/environment.ts:125


createdAt?​

optional createdAt: string

Optional creation timestamp

Defined in​

packages/core/src/types/environment.ts:128