Title: No Sync Between Deployed Version and Agent Instance · Issue #14 · Virtual-Protocol/virtuals-python · GitHub
Open Graph Title: No Sync Between Deployed Version and Agent Instance · Issue #14 · Virtual-Protocol/virtuals-python
X Title: No Sync Between Deployed Version and Agent Instance · Issue #14 · Virtual-Protocol/virtuals-python
Description: 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 attri...
Open Graph Description: 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...
X Description: 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...
Opengraph URL: https://github.com/Virtual-Protocol/virtuals-python/issues/14
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"No Sync Between Deployed Version and Agent Instance","articleBody":"## Overview\r\nWhen 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.\r\n\r\n## Expected Behavior\r\nThe 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.\r\n\r\n## Steps to Reproduce\r\n1. Initialize an agent:\r\n ```python\r\n agent = Agent(api_key=VIRTUALS_API_KEY)\r\n ```\r\n2. Attempt to access deployed attributes:\r\n ```python\r\n print(agent.goal) # Returns None\r\n print(agent.description) # Returns None\r\n ```\r\n\r\n## Proposal\r\n- 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`","author":{"url":"https://github.com/gromdimon","@type":"Person","name":"gromdimon"},"datePublished":"2025-01-03T20:21:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/14/virtuals-python/issues/14"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:19e9185c-0e67-c0a6-2daa-18f5a8798641 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 95EE:33D0A1:2E081F9:2F46EB8:6A59176C |
| html-safe-nonce | a6e4d2bcbdc1b75da1a83e5f83ddac68cd0e633cbf202049e3bd089da6f98c1a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NUVFOjMzRDBBMToyRTA4MUY5OjJGNDZFQjg6NkE1OTE3NkMiLCJ2aXNpdG9yX2lkIjoiNTQ4ODAxMzc5NDQ5NzcxODg0IiwicmVnaW9uX2VkZ2UiOiJzZWEiLCJyZWdpb25fcmVuZGVyIjoic2VhIn0= |
| visitor-hmac | 3c4ca5bb14683bf8b74fccfed420df87c9718be8648d8eac53793e9e89c5473b |
| hovercard-subject-tag | issue:2768124428 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/Virtual-Protocol/virtuals-python/14/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c066ab28c2112decfba8ca25bb9593c7880c5cb02ee9150bdbf629445a034cf6/Virtual-Protocol/virtuals-python/issues/14 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c066ab28c2112decfba8ca25bb9593c7880c5cb02ee9150bdbf629445a034cf6/Virtual-Protocol/virtuals-python/issues/14 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gromdimon |
| hostname | github.com |
| expected-hostname | github.com |
| None | de7b53b927e5bfbf02672a5b2960bf82d1608d91c6d7888039c826ebf8d4ca76 |
| turbo-cache-control | no-preview |
| go-import | github.com/Virtual-Protocol/virtuals-python git https://github.com/Virtual-Protocol/virtuals-python.git |
| octolytics-dimension-user_id | 94182078 |
| octolytics-dimension-user_login | Virtual-Protocol |
| octolytics-dimension-repository_id | 902450046 |
| octolytics-dimension-repository_nwo | Virtual-Protocol/virtuals-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 902450046 |
| octolytics-dimension-repository_network_root_nwo | Virtual-Protocol/virtuals-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 020f8e5d3a42ae1a22d3f297198ccfca124edd1d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width