mech-client 0.2.1__py3-none-any.whl → 0.2.3__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.
- mech_client/__init__.py +1 -1
- mech_client/interact.py +4 -1
- {mech_client-0.2.1.dist-info → mech_client-0.2.3.dist-info}/METADATA +5 -5
- {mech_client-0.2.1.dist-info → mech_client-0.2.3.dist-info}/RECORD +7 -7
- {mech_client-0.2.1.dist-info → mech_client-0.2.3.dist-info}/LICENSE +0 -0
- {mech_client-0.2.1.dist-info → mech_client-0.2.3.dist-info}/WHEEL +0 -0
- {mech_client-0.2.1.dist-info → mech_client-0.2.3.dist-info}/entry_points.txt +0 -0
mech_client/__init__.py
CHANGED
mech_client/interact.py
CHANGED
|
@@ -275,7 +275,7 @@ def interact(
|
|
|
275
275
|
tool: Optional[str] = None,
|
|
276
276
|
private_key_path: Optional[str] = None,
|
|
277
277
|
confirmation_type: ConfirmationType = ConfirmationType.WAIT_FOR_BOTH,
|
|
278
|
-
) ->
|
|
278
|
+
) -> Any:
|
|
279
279
|
"""
|
|
280
280
|
Interact with agent mech contract.
|
|
281
281
|
|
|
@@ -289,6 +289,8 @@ def interact(
|
|
|
289
289
|
:type private_key_path: Optional[str]
|
|
290
290
|
:param confirmation_type: The confirmation type for the interaction (default: ConfirmationType.WAIT_FOR_BOTH).
|
|
291
291
|
:type confirmation_type: ConfirmationType
|
|
292
|
+
:return: The data received from on-chain/off-chain.
|
|
293
|
+
:rtype: Any
|
|
292
294
|
"""
|
|
293
295
|
contract_address = query_agent_address(agent_id=agent_id)
|
|
294
296
|
if contract_address is None:
|
|
@@ -340,3 +342,4 @@ def interact(
|
|
|
340
342
|
print(f"Data arrived: {data_url}")
|
|
341
343
|
data = requests.get(f"{data_url}/{request_id}").json()
|
|
342
344
|
print(f"Data from agent: {data}")
|
|
345
|
+
return data
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: mech-client
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.3
|
|
4
4
|
Summary: Basic client to interact with a mech
|
|
5
5
|
License: Apache-2.0
|
|
6
6
|
Author: David Minarsch
|
|
@@ -12,10 +12,10 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
12
12
|
Classifier: Programming Language :: Python :: 3.11
|
|
13
13
|
Requires-Dist: asn1crypto (>=1.4.0,<1.5.0)
|
|
14
14
|
Requires-Dist: gql (>=3.4.1)
|
|
15
|
-
Requires-Dist: open-aea-cli-ipfs (==1.
|
|
16
|
-
Requires-Dist: open-aea-ledger-cosmos (==1.
|
|
17
|
-
Requires-Dist: open-aea-ledger-ethereum (==1.
|
|
18
|
-
Requires-Dist: open-aea[cli] (==1.
|
|
15
|
+
Requires-Dist: open-aea-cli-ipfs (==1.36.0)
|
|
16
|
+
Requires-Dist: open-aea-ledger-cosmos (==1.36.0)
|
|
17
|
+
Requires-Dist: open-aea-ledger-ethereum (==1.36.0)
|
|
18
|
+
Requires-Dist: open-aea[cli] (==1.36.0)
|
|
19
19
|
Requires-Dist: websocket-client (>=0.32.0,<1)
|
|
20
20
|
Description-Content-Type: text/markdown
|
|
21
21
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
mech_client/__init__.py,sha256=
|
|
1
|
+
mech_client/__init__.py,sha256=GyERgB9Z5DiPZea_gliDLoFS3cM5Bvbt7s4GoWDk-Og,42
|
|
2
2
|
mech_client/acn.py,sha256=Cz93ykB8Vavd6QSEBnoNv0wylfw2RLOqqu7fIYo4YRY,5790
|
|
3
3
|
mech_client/cli.py,sha256=7zwX-LhWIKK9o0I4L0WCCTWSdQLGvHFQvCpnti9wuKw,3359
|
|
4
4
|
mech_client/helpers/__init__.py,sha256=f13zpwGDaKQUjML-5Iq66rRfzg8IS5UNK5I8gBr7w54,1028
|
|
@@ -29,14 +29,14 @@ mech_client/helpers/p2p_libp2p_client/README.md,sha256=6x9s6P7TdKkcvAS1wMFHXRz4a
|
|
|
29
29
|
mech_client/helpers/p2p_libp2p_client/__init__.py,sha256=-GOP3D_JnmXTDomrMLCbnRk7vRQmihIqTYvyIPzx-q4,879
|
|
30
30
|
mech_client/helpers/p2p_libp2p_client/connection.py,sha256=-94MhQWd8IrRVqYEUFHtsHHR0a89uTM0ztfG3wZxIyA,27786
|
|
31
31
|
mech_client/helpers/p2p_libp2p_client/connection.yaml,sha256=yGZtzcEIYNxVRoe20tcnjX5y10h_He-jXiEMXxIGZs0,1763
|
|
32
|
-
mech_client/interact.py,sha256=
|
|
32
|
+
mech_client/interact.py,sha256=1dKQ8xvHKx3aGbciHjVe1YoJSkFgwMw2LLRsGBCRLIA,11558
|
|
33
33
|
mech_client/prompt_to_ipfs.py,sha256=IR0NHBd-f4p9bj_HuindJSwrGcc08fdBxavJmpo6GKA,2250
|
|
34
34
|
mech_client/push_to_ipfs.py,sha256=IfvgaPU79N_ZmCPF9d7sPCYz2uduZH0KjT_HQ2LHXoQ,2059
|
|
35
35
|
mech_client/subgraph.py,sha256=z8biXpCZCFSLSzdyevPUKAiXBx-1MzpafRA5hmF8u_k,1807
|
|
36
36
|
mech_client/to_png.py,sha256=pjUcFJ63MJj_r73eqnfqCWMtlpsrj6H4ZmgvIEmRcFw,2581
|
|
37
37
|
mech_client/wss.py,sha256=M2p7UjFuoOKWuGQVA_kkJUz7EAYsW4g3U_-StAusqLM,6824
|
|
38
|
-
mech_client-0.2.
|
|
39
|
-
mech_client-0.2.
|
|
40
|
-
mech_client-0.2.
|
|
41
|
-
mech_client-0.2.
|
|
42
|
-
mech_client-0.2.
|
|
38
|
+
mech_client-0.2.3.dist-info/LICENSE,sha256=mdBDB-mWKV5Cz4ejBzBiKqan6Z8zVLAh9xwM64O2FW4,11339
|
|
39
|
+
mech_client-0.2.3.dist-info/METADATA,sha256=u8gWVIpwQ3cGElS092DZleHinQCs6ZvYdhLhFCs4LbI,4823
|
|
40
|
+
mech_client-0.2.3.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
|
|
41
|
+
mech_client-0.2.3.dist-info/entry_points.txt,sha256=SbRMRsayzD8XfNXhgwPuXEqQsdZ5Bw9XDPnUuaDExyY,45
|
|
42
|
+
mech_client-0.2.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|