(
self,
api_key: str,
goal: str = "",
description: str = "",
world_info: str = "",
main_heartbeat: int = 15,
reaction_heartbeat: int = 5
)
| 156 | |
| 157 | class Agent: |
| 158 | def __init__( |
| 159 | self, |
| 160 | api_key: str, |
| 161 | goal: str = "", |
| 162 | description: str = "", |
| 163 | world_info: str = "", |
| 164 | main_heartbeat: int = 15, |
| 165 | reaction_heartbeat: int = 5 |
| 166 | ): |
| 167 | self.game_sdk = sdk.GameSDK(api_key) |
| 168 | self.goal = goal |
| 169 | self.description = description |
| 170 | self.world_info = world_info |
| 171 | self.enabled_functions: List[str] = [] |
| 172 | self.custom_functions: List[Function] = [] |
| 173 | self.main_heartbeat = main_heartbeat |
| 174 | self.reaction_heartbeat = reaction_heartbeat |
| 175 | |
| 176 | def set_goal(self, goal: str): |
| 177 | self.goal = goal |
nothing calls this directly
no outgoing calls
no test coverage detected