Overview
When initializing an agent using Agent(api_key=VIRTUALS_API_KEY) from the GAME framework SDK (file: sdk/virtuals_sdk/game.py), the agent instance does not reflect the state of the deployed version. Specifically, retrieving attributes such as goal or description for the deployed version returns None, what indicates a lack of synchronization.
Expected Behavior
The agent instance initialized with an API key should automatically sync (or have an ability to sync) its state with the deployed version, ensuring that attributes like goal and description are populated with the deployed data.
Steps to Reproduce
- Initialize an agent:
agent = Agent(api_key=VIRTUALS_API_KEY)
- Attempt to access deployed attributes:
print(agent.goal) # Returns None
print(agent.description) # Returns None
Proposal
- Implement a
sync() method (or equivalent) in the Agent class that fetches the current state of the deployed version and updates the agent instance. Under the hood, there should be some similar sync() function in the GameSDK class in the src/virtuals_sdk/sdk.py
Overview
When initializing an agent using
Agent(api_key=VIRTUALS_API_KEY)from the GAME framework SDK (file:sdk/virtuals_sdk/game.py), the agent instance does not reflect the state of the deployed version. Specifically, retrieving attributes such asgoalordescriptionfor the deployed version returnsNone, what indicates a lack of synchronization.Expected Behavior
The agent instance initialized with an API key should automatically sync (or have an ability to sync) its state with the deployed version, ensuring that attributes like
goalanddescriptionare populated with the deployed data.Steps to Reproduce
Proposal
sync()method (or equivalent) in theAgentclass that fetches the current state of the deployed version and updates the agent instance. Under the hood, there should be some similarsync()function in theGameSDKclass in thesrc/virtuals_sdk/sdk.py