Skip to content

Commit 9227c17

Browse files
committed
feat(agent): getter for the attributes describing the agent
And fix the pypi version 🤡 Signed-off-by: Valentin De Matos <[email protected]>
1 parent ea91ca9 commit 9227c17

File tree

3 files changed

+52
-2
lines changed

3 files changed

+52
-2
lines changed

agentarium/Agent.py

+50
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,56 @@ def name(self) -> str:
184184
"""
185185
return self.agent_informations["name"]
186186

187+
@property
188+
def gender(self) -> str:
189+
"""
190+
Get the agent's gender.
191+
192+
Returns:
193+
str: The gender of the agent.
194+
"""
195+
return self.agent_informations["gender"]
196+
197+
@property
198+
def age(self) -> int:
199+
"""
200+
Get the agent's age.
201+
202+
Returns:
203+
int: The age of the agent.
204+
"""
205+
return self.agent_informations["age"]
206+
207+
@property
208+
def occupation(self) -> str:
209+
"""
210+
Get the agent's occupation.
211+
212+
Returns:
213+
str: The occupation of the agent.
214+
"""
215+
return self.agent_informations["occupation"]
216+
217+
@property
218+
def location(self) -> str:
219+
"""
220+
Get the agent's location.
221+
222+
Returns:
223+
str: The location of the agent.
224+
"""
225+
return self.agent_informations["location"]
226+
227+
@property
228+
def bio(self) -> str:
229+
"""
230+
Get the agent's biography.
231+
232+
Returns:
233+
str: The biography of the agent.
234+
"""
235+
return self.agent_informations["bio"]
236+
187237
@staticmethod
188238
def _generate_prompt_to_generate_bio(**kwargs) -> str:
189239
"""

agentarium/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from .AgentInteractionManager import AgentInteractionManager
44
from .Interaction import Interaction
55

6-
__version__ = "0.2.5"
6+
__version__ = "0.2.7"
77

88
__all__ = [
99
"Agent",

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "agentarium"
7-
version = "0.2.6"
7+
version = "0.2.7"
88
authors = [
99
{ name = "thytu" },
1010
]

0 commit comments

Comments
 (0)