From c90a0f8ae6ad5d6e07927cd0dc53b345a77494ae Mon Sep 17 00:00:00 2001 From: batsumaru <> Date: Fri, 11 Sep 2026 15:42:11 +0900 Subject: Added tool calling base --- identity.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'identity.py') 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) -- cgit v1.3