MCPcopy Create free account
hub / github.com/Virtual-Protocol/virtuals-python / __init__

Method __init__

src/virtuals_sdk/twitter_agent/agent.py:158–174  ·  view source on GitHub ↗
(
        self,
        api_key: str,
        goal: str = "",
        description: str = "",
        world_info: str = "",
        main_heartbeat: int = 15,
        reaction_heartbeat: int = 5
    )

Source from the content-addressed store, hash-verified

156
157class 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected