Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

No Sync Between Deployed Version and Agent Instance #14

Copy link
Copy link

Description

@gromdimon
Issue body actions

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
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.