Skip to content

No Sync Between Deployed Version and Agent Instance #14

@gromdimon

Description

@gromdimon

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

  1. Initialize an agent:
    agent = Agent(api_key=VIRTUALS_API_KEY)
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions