agentsociety.memory.const

Module Contents

Classes

RelationType

The type of the relation.

SocialRelation

Social relation between two agents.

Data

API

agentsociety.memory.const.__all__

[‘RelationType’, ‘SocialRelation’, ‘PROFILE_ATTRIBUTES’, ‘STATE_ATTRIBUTES’]

class agentsociety.memory.const.RelationType

Bases: str, enum.Enum

The type of the relation.

Initialization

Initialize self. See help(type(self)) for accurate signature.

FRIEND

‘friend’

FAMILY

‘family’

COLLEAGUE

‘colleague’

FOLLOWER

‘follower’

FOLLOWING

‘following’

class agentsociety.memory.const.SocialRelation

Bases: pydantic.BaseModel

Social relation between two agents.

source_id: Optional[int]

‘Field(…)’

target_id: int

‘Field(…)’

kind: agentsociety.memory.const.RelationType

‘Field(…)’

strength: Optional[float]

‘Field(…)’

agentsociety.memory.const.PROFILE_ATTRIBUTES

None

agentsociety.memory.const.STATE_ATTRIBUTES

None