acp-plugin-gamesdk 0.1.20__py3-none-any.whl → 0.1.22__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -85,8 +85,6 @@ class AcpClient:
85
85
  description=agent["description"],
86
86
  wallet_address=agent["walletAddress"],
87
87
  offerings=offerings,
88
- score=agent["score"],
89
- explanation=agent["explanation"]
90
88
  )
91
89
  )
92
90
 
@@ -301,8 +299,6 @@ class AcpClient:
301
299
  description=agent["description"],
302
300
  wallet_address=agent["walletAddress"],
303
301
  offerings=offerings,
304
- score=0,
305
- explanation=""
306
302
  )
307
303
  )
308
304
  return result[0]
@@ -8,11 +8,11 @@ from datetime import datetime, timedelta, timezone
8
8
  from typing import Any, Dict, List, Optional, Tuple
9
9
 
10
10
  import socketio
11
+
11
12
  from game_sdk.game.agent import WorkerConfig
12
13
  from game_sdk.game.custom_types import Argument, Function, FunctionResultStatus
13
14
  from twitter_plugin_gamesdk.game_twitter_plugin import GameTwitterPlugin
14
15
  from twitter_plugin_gamesdk.twitter_plugin import TwitterPlugin
15
-
16
16
  from acp_plugin_gamesdk.acp_client import AcpClient
17
17
  from acp_plugin_gamesdk.acp_token import AcpToken
18
18
  from acp_plugin_gamesdk.interface import (
@@ -234,8 +234,6 @@ class AcpPlugin:
234
234
  if agent.offerings
235
235
  else []
236
236
  ),
237
- "score": agent.score,
238
- "explanation": agent.explanation
239
237
  }
240
238
  for agent in agents
241
239
  ],
@@ -1,13 +1,13 @@
1
+ from datetime import datetime
2
+ from enum import IntEnum
1
3
  import json
2
4
  import time
3
5
  import traceback
4
- from datetime import datetime
5
- from enum import IntEnum
6
6
  from typing import Optional, Tuple, TypedDict
7
7
 
8
- import requests
9
8
  from eth_account import Account
10
9
  from eth_account.messages import encode_defunct
10
+ import requests
11
11
  from web3 import Web3
12
12
 
13
13
  from acp_plugin_gamesdk.acp_token_abi import ACP_TOKEN_ABI
@@ -23,8 +23,6 @@ class AcpAgent:
23
23
  description: str
24
24
  wallet_address: str
25
25
  offerings: Optional[List[AcpOffering]]
26
- score: Optional[float]
27
- explanation: Optional[str]
28
26
 
29
27
  def __str__(self) -> str:
30
28
  offer = ""
@@ -36,8 +34,6 @@ class AcpAgent:
36
34
  f"😎 Agent ID={self.id}\n"
37
35
  f"Name={self.name}, Description={self.description}, Wallet={self.wallet_address}\n"
38
36
  f"Offerings:\n{offer}"
39
- f"Score:\n{self.score}"
40
- f"Explanation:\n{self.explanation}"
41
37
  )
42
38
  return output
43
39
 
@@ -83,8 +79,8 @@ class AcpJob:
83
79
  jobId: Optional[int]
84
80
  clientName: Optional[str]
85
81
  providerName: Optional[str]
86
- desc: str
87
- price: str
82
+ desc: Optional[str]
83
+ price: float
88
84
  providerAddress: Optional[str]
89
85
  clientAddress: Optional[str]
90
86
  phase: AcpJobPhasesDesc
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: acp-plugin-gamesdk
3
- Version: 0.1.20
3
+ Version: 0.1.22
4
4
  Summary: ACP Plugin for Python SDK for GAME by Virtuals
5
5
  Author: Steven Lee Soon Fatt
6
6
  Author-email: steven@virtuals.io
@@ -0,0 +1,9 @@
1
+ acp_plugin_gamesdk/acp_client.py,sha256=rZLdl099XOlMfd3Q5a4pg5FUgtP3VUxDZtiOqYlUYUQ,10008
2
+ acp_plugin_gamesdk/acp_plugin.py,sha256=vc357rzmkZyBaKWQdCDUWfBaHfbYHh5bnKckx32gQXA,26911
3
+ acp_plugin_gamesdk/acp_token.py,sha256=zjW-W7_4JO31K8eLBBw5dn5tb4FrCSag6qGYQi7xkaA,11804
4
+ acp_plugin_gamesdk/acp_token_abi.py,sha256=nllh9xOuDXxFFdhLklTTdtZxWZd2LcUTBoOP2d9xDTA,22319
5
+ acp_plugin_gamesdk/configs.py,sha256=4rLOOMbRPqf2RM-Lz5Az7mbUI_a5kgmySZlBiMkB3Mo,1406
6
+ acp_plugin_gamesdk/interface.py,sha256=1UXNwUTZootImsBfwfwxuQiAiIa8X4bdcwAPw4on3w8,4419
7
+ acp_plugin_gamesdk-0.1.22.dist-info/METADATA,sha256=vK-yndPehZU0VOfN_eOrCbbtRqRsi7YIxdI12roj2G4,12791
8
+ acp_plugin_gamesdk-0.1.22.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
9
+ acp_plugin_gamesdk-0.1.22.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- acp_plugin_gamesdk/acp_client.py,sha256=fsSByXElEJuzFdhJTphHmtRv8Tqhs5eXuCGRm2l2JtM,10167
2
- acp_plugin_gamesdk/acp_plugin.py,sha256=4-flS9WnQqvwX1mhJJ2SiDmGuQs_sIiec-1fFlipGHk,27022
3
- acp_plugin_gamesdk/acp_token.py,sha256=uOeQ6_azL50sJekDlWYjwAtd2YxedDXjRuoCRLFZJ8Q,11804
4
- acp_plugin_gamesdk/acp_token_abi.py,sha256=nllh9xOuDXxFFdhLklTTdtZxWZd2LcUTBoOP2d9xDTA,22319
5
- acp_plugin_gamesdk/configs.py,sha256=4rLOOMbRPqf2RM-Lz5Az7mbUI_a5kgmySZlBiMkB3Mo,1406
6
- acp_plugin_gamesdk/interface.py,sha256=0u3exP_MXHjTF4rrAPQAkGAtSGCaOvhfXewepDr9Hb8,4549
7
- acp_plugin_gamesdk-0.1.20.dist-info/METADATA,sha256=Uh-DfnSzyRgxWJnite0txHh2Qqhz9KKDdOioEiB4pGc,12791
8
- acp_plugin_gamesdk-0.1.20.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
9
- acp_plugin_gamesdk-0.1.20.dist-info/RECORD,,