diff options
| author | batsumaru <> | 2026-09-11 15:42:11 +0900 |
|---|---|---|
| committer | batsumaru <> | 2026-09-11 15:42:11 +0900 |
| commit | c90a0f8ae6ad5d6e07927cd0dc53b345a77494ae (patch) | |
| tree | e7ee1ba30acebdae659b62e193df95e7d7509058 /identity.py | |
| parent | 1048bc145cd0341fcbdd269f3275079bc40ede70 (diff) | |
Added tool calling base
Diffstat (limited to 'identity.py')
| -rw-r--r-- | identity.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/identity.py b/identity.py index 9b4faa0..cbcd6ad 100644 --- a/identity.py +++ b/identity.py @@ -1,6 +1,7 @@ from dataclasses import dataclass import tomllib + @dataclass class AgentIdentity: name: str @@ -8,11 +9,13 @@ class AgentIdentity: values: dict[str, bool] quirks: 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) @@ -24,6 +27,7 @@ def load_agent_identity(path: str) -> AgentIdentity: quirks=data["quirks"], ) + def load_user_profile(path: str) -> UserProfile: with open(path, "rb") as file: data = tomllib.load(file) |
