summaryrefslogtreecommitdiff
path: root/identity.py
diff options
context:
space:
mode:
authorbatsumaru <>2026-09-15 15:13:34 +0900
committerbatsumaru <>2026-09-15 15:13:34 +0900
commit1a67c5edb6fa6165e99cc25ed380303ed817af09 (patch)
treed2eab77e7275a559bfd639fd80b15321b5e514f3 /identity.py
parent5629cabbb38c7d91e66a419ba7cb3a93a9a988a1 (diff)
Cleaned up project tree
Diffstat (limited to 'identity.py')
-rw-r--r--identity.py40
1 files changed, 0 insertions, 40 deletions
diff --git a/identity.py b/identity.py
deleted file mode 100644
index ec1cc19..0000000
--- a/identity.py
+++ /dev/null
@@ -1,40 +0,0 @@
-import tomllib
-from dataclasses import dataclass
-
-
-@dataclass
-class AgentIdentity:
- name: str
- personality: dict[str, str]
- values: dict[str, bool]
- quirks: dict[str, str]
- behavior: dict[str, str]
-
-
-@dataclass
-class UserProfile:
- name: str
- preferences: dict[str, str]
-
-
-def load_agent_identity(path: str) -> AgentIdentity:
- with open(path, "rb") as file:
- data = tomllib.load(file)
-
- return AgentIdentity(
- name=data["name"],
- personality=data["personality"],
- values=data["values"],
- quirks=data["quirks"],
- behavior=data["behavior"],
- )
-
-
-def load_user_profile(path: str) -> UserProfile:
- with open(path, "rb") as file:
- data = tomllib.load(file)
-
- return UserProfile(
- name=data["name"],
- preferences=data["preferences"],
- )