mech-client 0.14.0__py3-none-any.whl → 0.14.1__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/marketplace_interact.py +1 -1
- {mech_client-0.14.0.dist-info → mech_client-0.14.1.dist-info}/METADATA +10 -10
- {mech_client-0.14.0.dist-info → mech_client-0.14.1.dist-info}/RECORD +8 -8
- scripts/whitelist.py +5 -1
- {mech_client-0.14.0.dist-info → mech_client-0.14.1.dist-info}/LICENSE +0 -0
- {mech_client-0.14.0.dist-info → mech_client-0.14.1.dist-info}/WHEEL +0 -0
- {mech_client-0.14.0.dist-info → mech_client-0.14.1.dist-info}/entry_points.txt +0 -0
mech_client/__init__.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
# ------------------------------------------------------------------------------
|
|
3
3
|
#
|
|
4
|
-
# Copyright 2024 Valory AG
|
|
4
|
+
# Copyright 2024-2025 Valory AG
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
# you may not use this file except in compliance with the License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: mech-client
|
|
3
|
-
Version: 0.14.
|
|
3
|
+
Version: 0.14.1
|
|
4
4
|
Summary: Basic client to interact with a mech
|
|
5
5
|
License: Apache-2.0
|
|
6
6
|
Author: David Minarsch
|
|
@@ -34,7 +34,7 @@ A basic client to interact with an AI Mech. [AI Mechs](https://github.com/valory
|
|
|
34
34
|
|
|
35
35
|
## Developing, running and deploying Mechs and Mech tools
|
|
36
36
|
|
|
37
|
-
The easiest way to create, run, deploy and test your own Mech and Mech tools is to follow the Mech and Mech tool docs [here](https://open-autonomy
|
|
37
|
+
The easiest way to create, run, deploy and test your own Mech and Mech tools is to follow the Mech and Mech tool docs [here](https://stack.olas.network/open-autonomy/mech-tools-dev/). The [Mech tools dev repo](https://github.com/valory-xyz/mech-tools-dev) used in those docs greatly simplifies the development flow and dev experience.
|
|
38
38
|
|
|
39
39
|
Only continue reading this README if you know what you are doing and you are specifically interested in this repo.
|
|
40
40
|
|
|
@@ -152,7 +152,7 @@ The basic usage of the Mech Client is as follows:
|
|
|
152
152
|
mechx interact --prompts <prompt> --tools <tool> --agent_id <agent_id>
|
|
153
153
|
```
|
|
154
154
|
|
|
155
|
-
where agent with `<agent_id>` will process `<prompt>` with the `<tool>` and default options. Each chain has its own set of Mech agents. You can find the agent IDs for each chain on the [Mech Hub](https://aimechs.autonolas.network/registry) or on the [Mech repository](https://github.com/valory-xyz/mech?tab=readme-ov-file#examples-of-deployed-mechs).
|
|
155
|
+
where agent blueprint with `<agent_id>` will process `<prompt>` with the `<tool>` and default options. Each chain has its own set of Mech agents. You can find the agent blueprint IDs for each chain on the [Mech Hub](https://aimechs.autonolas.network/registry) or on the [Mech repository](https://github.com/valory-xyz/mech?tab=readme-ov-file#examples-of-deployed-mechs).
|
|
156
156
|
|
|
157
157
|
⚠️ Batch requests and tools are not supported for legacy mechs
|
|
158
158
|
|
|
@@ -249,7 +249,7 @@ export MECHX_MECH_OFFCHAIN_URL="http://localhost:8000/"
|
|
|
249
249
|
```
|
|
250
250
|
If you want to use a Valory mech for offchain requests, below is the list of mechs and their address and offchain urls.
|
|
251
251
|
|
|
252
|
-
|
|
|
252
|
+
| AI agent ID | Priority Mech Address | Offchain URL |
|
|
253
253
|
| :---: | :---: | :---: |
|
|
254
254
|
| 2182 | 0xB3C6319962484602b00d5587e965946890b82101 | https://d19715222af5b940.agent.propel.autonolas.tech/ |
|
|
255
255
|
|
|
@@ -274,7 +274,7 @@ mechx fetch-mm-mechs-info --chain-config gnosis
|
|
|
274
274
|
```
|
|
275
275
|
```bash
|
|
276
276
|
+--------------+--------------------+--------------------------------------------+--------------------+---------------------------------------------------------------------------------------------------------------+
|
|
277
|
-
|
|
|
277
|
+
| AI agent Id | Mech Type | Mech Address | Total Deliveries | Metadata Link |
|
|
278
278
|
+==============+====================+============================================+====================+===============================================================================================================+
|
|
279
279
|
| 2182 | Fixed Price Native | 0xc05e7412439bd7e91730a6880e18d5d5873f632c | 41246 | https://gateway.autonolas.tech/ipfs/f01701220157d3b106831e2713b86af1b52af76a3ef28c52ae0853e9638180902ebee41d4 |
|
|
280
280
|
+--------------+--------------------+--------------------------------------------+--------------------+---------------------------------------------------------------------------------------------------------------+
|
|
@@ -291,7 +291,7 @@ mechx fetch-mm-mechs-info --chain-config gnosis
|
|
|
291
291
|
### List tools available for legacy mechs and marketplace mechs
|
|
292
292
|
|
|
293
293
|
#### For legacy mechs
|
|
294
|
-
To list the tools available for a specific agent or for all agents, use the `tools-for-agents` command. You can specify an agent ID to get tools for a specific agent, or omit it to list tools for all agents.
|
|
294
|
+
To list the tools available for a specific agent or for all agents, use the `tools-for-agents` command. You can specify an agent blueprint ID to get tools for a specific agent, or omit it to list tools for all agents.
|
|
295
295
|
|
|
296
296
|
```bash
|
|
297
297
|
mechx tools-for-agents
|
|
@@ -332,7 +332,7 @@ You will see an output like this:
|
|
|
332
332
|
```
|
|
333
333
|
|
|
334
334
|
#### For marketplace mechs
|
|
335
|
-
To list the tools available for a specific marketplace mech, use the `tools-for-marketplace-mech` command. You can specify
|
|
335
|
+
To list the tools available for a specific marketplace mech, use the `tools-for-marketplace-mech` command. You can specify an AI agent ID to get tools for a specific mech.
|
|
336
336
|
|
|
337
337
|
```bash
|
|
338
338
|
mechx tools-for-marketplace-mech 1722 --chain-config gnosis
|
|
@@ -547,7 +547,7 @@ You can also use the Mech Client to programmatically fetch tools for agents in y
|
|
|
547
547
|
from mech_client.mech_tool_management import get_tools_for_agents, get_tool_description, get_tool_io_schema
|
|
548
548
|
|
|
549
549
|
# Fetching tools for a specific agent or all agents
|
|
550
|
-
agent_id = 6 # Specify the agent ID or set to None to fetch tools for all agents
|
|
550
|
+
agent_id = 6 # Specify the agent blueprint ID or set to None to fetch tools for all agents
|
|
551
551
|
chain_config = "gnosis" # Specify the chain configuration
|
|
552
552
|
tools = get_tools_for_agents(agent_id=agent_id, chain_config=chain_config)
|
|
553
553
|
print(f"Tools for agent {agent_id}:", tools)
|
|
@@ -613,9 +613,9 @@ No. AI Mechs are currently deployed only on mainnets.
|
|
|
613
613
|
|
|
614
614
|
<details>
|
|
615
615
|
|
|
616
|
-
<summary><b>Where can I find the agent ID?</b></summary>
|
|
616
|
+
<summary><b>Where can I find the agent blueprint ID?</b></summary>
|
|
617
617
|
|
|
618
|
-
You can find the agent IDs for each chain on the [Mech Hub](https://aimechs.autonolas.network/registry) or on the [Mech repository](https://github.com/valory-xyz/mech?tab=readme-ov-file#examples-of-deployed-mechs).
|
|
618
|
+
You can find the agent blueprint IDs for each chain on the [Mech Hub](https://aimechs.autonolas.network/registry) or on the [Mech repository](https://github.com/valory-xyz/mech?tab=readme-ov-file#examples-of-deployed-mechs).
|
|
619
619
|
|
|
620
620
|
</details>
|
|
621
621
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
mech_client/__init__.py,sha256=
|
|
1
|
+
mech_client/__init__.py,sha256=qXP3KYo0kVvrn4GI8u6T0gw5y9DiN6Ryz_hOfpB6RIE,43
|
|
2
2
|
mech_client/abis/AgentMech.json,sha256=IEbs_xBGunBu5h-uT5DvIty8Zw412QoPI46S_DUMYNw,18082
|
|
3
3
|
mech_client/abis/AgentRegistry.json,sha256=2qmXeFINZWz9pyOma6Bq67kMDSUI1lD7WvgHLwuETD8,24723
|
|
4
4
|
mech_client/abis/AgreementStoreManager.base.json,sha256=_ljdIZcfFGmFzBHUTfhA4X0382ZHHpkdr_CziTwUETo,34360
|
|
@@ -63,7 +63,7 @@ mech_client/helpers/p2p_libp2p_client/__init__.py,sha256=-GOP3D_JnmXTDomrMLCbnRk
|
|
|
63
63
|
mech_client/helpers/p2p_libp2p_client/connection.py,sha256=b5jfcUeSoNrUw8DOSTCbK4DTi-N8bf2_pdogUOz0ep0,28606
|
|
64
64
|
mech_client/helpers/p2p_libp2p_client/connection.yaml,sha256=nMiHnU_dv9EFjVNqZ-0SAnoATfadJSad-JsbDvk97Mk,1790
|
|
65
65
|
mech_client/interact.py,sha256=YvqUppI3m8hXbEfGLvWc05taYOINk0h02MfCgSuAT1A,21126
|
|
66
|
-
mech_client/marketplace_interact.py,sha256=
|
|
66
|
+
mech_client/marketplace_interact.py,sha256=h7_71joPy-dDG36MYIT9L4COkbevlo2BTXiN25NesoM,35934
|
|
67
67
|
mech_client/mech_marketplace_subgraph.py,sha256=X_ypxfokN-YBtsUCVOHUecsinkbRDZ5fR5WCkid1ntM,3153
|
|
68
68
|
mech_client/mech_marketplace_tool_management.py,sha256=G1O0ajbeltRM5FpqPfmn2C4QRrwqf5HfWKUH2VKn6UA,7365
|
|
69
69
|
mech_client/mech_tool_management.py,sha256=NQFmVzzGZsIkeHokDPWXGHwa8u-pyQIMPR1Q5H81bKw,7806
|
|
@@ -93,9 +93,9 @@ scripts/nvm_subscription/envs/gnosis.env,sha256=mDCb1wEY4fRQYJQuyqg2b4qTFQtHHopR
|
|
|
93
93
|
scripts/nvm_subscription/manager.py,sha256=y0Qh0aVAmOPB4Ytt93alIarSvhrQpC-lRYNAY09GRZ0,10054
|
|
94
94
|
scripts/nvm_subscription/resources/networks.json,sha256=xH0P3YkgkMTkQdahVKO0kI9m6ybJ67iwHApstUlfRmw,2359
|
|
95
95
|
scripts/utils.py,sha256=lXjY3s1HvNHT2fXm2fBpZtVvlQaqW288Y2S-s3rpSDM,3248
|
|
96
|
-
scripts/whitelist.py,sha256
|
|
97
|
-
mech_client-0.14.
|
|
98
|
-
mech_client-0.14.
|
|
99
|
-
mech_client-0.14.
|
|
100
|
-
mech_client-0.14.
|
|
101
|
-
mech_client-0.14.
|
|
96
|
+
scripts/whitelist.py,sha256=uWgX2E19_NS1rK3QfxSyata4ZLIqGVZAKrX8zXpuk_g,448
|
|
97
|
+
mech_client-0.14.1.dist-info/LICENSE,sha256=mdBDB-mWKV5Cz4ejBzBiKqan6Z8zVLAh9xwM64O2FW4,11339
|
|
98
|
+
mech_client-0.14.1.dist-info/METADATA,sha256=BSNMj9w5rxKExrNp8yFucgnCW4KIS4meMfYvv10_uM0,29678
|
|
99
|
+
mech_client-0.14.1.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
|
|
100
|
+
mech_client-0.14.1.dist-info/entry_points.txt,sha256=SbRMRsayzD8XfNXhgwPuXEqQsdZ5Bw9XDPnUuaDExyY,45
|
|
101
|
+
mech_client-0.14.1.dist-info/RECORD,,
|
scripts/whitelist.py
CHANGED
|
@@ -2,4 +2,8 @@ directory # unused attribute (mech_client/acn.py:85)
|
|
|
2
2
|
directory # unused attribute (mech_client/acn.py:100)
|
|
3
3
|
directory # unused attribute (mech_client/acn.py:116)
|
|
4
4
|
payment_data # unused variable (mech_client/interact.py:111)
|
|
5
|
-
AGENT_QUERY_TEMPLATE # unused variable (mech_client/subgraph.py:30)
|
|
5
|
+
AGENT_QUERY_TEMPLATE # unused variable (mech_client/subgraph.py:30)
|
|
6
|
+
|
|
7
|
+
# Existing entries...
|
|
8
|
+
send_marketplace_request_nonblocking # used in tests/locustfile.py
|
|
9
|
+
delivery_consumer_loop_status_only # used in tests/locustfile.py
|
|
File without changes
|
|
File without changes
|
|
File without changes
|