coincap-hedera-agent-kit-plugin 0.2__tar.gz → 0.4__tar.gz

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.
Files changed (17) hide show
  1. coincap_hedera_agent_kit_plugin-0.4/PKG-INFO +100 -0
  2. {coincap_hedera_agent_kit_plugin-0.2 → coincap_hedera_agent_kit_plugin-0.4}/setup.cfg +2 -0
  3. {coincap_hedera_agent_kit_plugin-0.2 → coincap_hedera_agent_kit_plugin-0.4}/setup.py +3 -1
  4. coincap_hedera_agent_kit_plugin-0.4/src/coincap_hedera_agent_kit_plugin.egg-info/PKG-INFO +100 -0
  5. {coincap_hedera_agent_kit_plugin-0.2 → coincap_hedera_agent_kit_plugin-0.4}/src/coincap_hedera_plugin/coincap_plugin/plugin.py +1 -1
  6. coincap_hedera_agent_kit_plugin-0.2/PKG-INFO +0 -18
  7. coincap_hedera_agent_kit_plugin-0.2/src/coincap_hedera_agent_kit_plugin.egg-info/PKG-INFO +0 -18
  8. {coincap_hedera_agent_kit_plugin-0.2 → coincap_hedera_agent_kit_plugin-0.4}/LICENSE +0 -0
  9. {coincap_hedera_agent_kit_plugin-0.2 → coincap_hedera_agent_kit_plugin-0.4}/README.md +0 -0
  10. {coincap_hedera_agent_kit_plugin-0.2 → coincap_hedera_agent_kit_plugin-0.4}/README.rst +0 -0
  11. {coincap_hedera_agent_kit_plugin-0.2 → coincap_hedera_agent_kit_plugin-0.4}/src/coincap_hedera_agent_kit_plugin.egg-info/SOURCES.txt +0 -0
  12. {coincap_hedera_agent_kit_plugin-0.2 → coincap_hedera_agent_kit_plugin-0.4}/src/coincap_hedera_agent_kit_plugin.egg-info/dependency_links.txt +0 -0
  13. {coincap_hedera_agent_kit_plugin-0.2 → coincap_hedera_agent_kit_plugin-0.4}/src/coincap_hedera_agent_kit_plugin.egg-info/requires.txt +0 -0
  14. {coincap_hedera_agent_kit_plugin-0.2 → coincap_hedera_agent_kit_plugin-0.4}/src/coincap_hedera_agent_kit_plugin.egg-info/top_level.txt +0 -0
  15. {coincap_hedera_agent_kit_plugin-0.2 → coincap_hedera_agent_kit_plugin-0.4}/src/coincap_hedera_plugin/__init__.py +0 -0
  16. {coincap_hedera_agent_kit_plugin-0.2 → coincap_hedera_agent_kit_plugin-0.4}/src/coincap_hedera_plugin/coincap_plugin/__init__.py +0 -0
  17. {coincap_hedera_agent_kit_plugin-0.2 → coincap_hedera_agent_kit_plugin-0.4}/src/coincap_hedera_plugin/coincap_plugin/tool.py +0 -0
@@ -0,0 +1,100 @@
1
+ Metadata-Version: 2.4
2
+ Name: coincap-hedera-agent-kit-plugin
3
+ Version: 0.4
4
+ Home-page: https://github.com/henrytongv/coincap-hedera-plugin-py
5
+ Author: Henry Tong
6
+ Author-email: taksantong@gmail.com
7
+ License: MIT
8
+ Keywords: hedera agent-kit coincap web3
9
+ Description-Content-Type: text/markdown
10
+ License-File: LICENSE
11
+ Requires-Dist: hedera-agent-kit
12
+ Requires-Dist: requests
13
+ Dynamic: author
14
+ Dynamic: author-email
15
+ Dynamic: description
16
+ Dynamic: description-content-type
17
+ Dynamic: home-page
18
+ Dynamic: keywords
19
+ Dynamic: license
20
+ Dynamic: license-file
21
+ Dynamic: requires-dist
22
+
23
+ # Hedera Agent Kit - CoinCap Plugin Python version
24
+
25
+ A plugin for [Hedera Agent Kit PY](https://github.com/hashgraph/hedera-agent-kit-py) that provides integration with the CoinCap API
26
+
27
+ In this plugin we use CoinCap to get the current price in USD of one HBAR and combine it with the power of the Hedera Agent Kit to get your current balance of HBA in USD currency.
28
+
29
+ ## Overview
30
+
31
+ This plugin enables `AI agents` to interact with the CoinCap API
32
+
33
+ ## Installation in the example index.js agent
34
+
35
+ 1.- Install the plugin
36
+
37
+ ```bash
38
+ pip install coincap-hedera-agent-kit-plugin
39
+ ```
40
+
41
+ 2.- Add your CoinCap API Bearer token in the .env file ( You get it in the CoinCap website )
42
+
43
+ ```
44
+ # Coincap API needed by coincap-hedera-plugin
45
+ COINCAP_BEARER_TOKEN=******************************
46
+ ```
47
+
48
+ 3.- Import the plugin code in your index.js (Hedera Agent)
49
+
50
+ ```py
51
+ from coincap_hedera_plugin import conincap_h_plugin
52
+ ```
53
+
54
+ 4.- Add the plugin in the plugins secion of the agent
55
+
56
+ ```py
57
+ const hederaAgentToolkit = new HederaLangchainToolkit({
58
+ client,
59
+ configuration: {
60
+ tools: [],
61
+ plugins: [coreQueriesPlugin, coreAccountPlugin, CoinCapHederalugin], // <---- Add these
62
+ ```
63
+
64
+ 5.- Use a prompt to ask for you current balance and tell the agent to want it in USD currency, for example like this:
65
+
66
+ ```py
67
+ response = await agent.ainvoke(
68
+ {"messages": [{"role": "user", "content": "Get my balance in HBAR and also convert it to USD please"}]},
69
+ ```
70
+
71
+ 6.- Now you can run the example agent and you should get your current HBAR balance converted to USD currency
72
+
73
+ ```bash
74
+ python main.py
75
+ ```
76
+
77
+ ## Tools
78
+
79
+ ```py
80
+ # Use the CoinCap API to get the current price in USD of one HBAR
81
+ def get_hbar_price_from_coincap():
82
+ ```
83
+
84
+ ## (Optional, only needed when creating your own python package) How to publish a PyPi package
85
+ 1.- Read the [instructions](https://towardsdatascience.com/how-to-upload-your-python-package-to-pypi-de1b363a1b3/)
86
+
87
+ 1.- Create the distribution package
88
+ ```bash
89
+ python setup.py sdist
90
+ ```
91
+
92
+ 2.- Install twine
93
+ ```bash
94
+ pip install twine
95
+ ```
96
+
97
+ 3.- Upload package
98
+ ```bash
99
+ twine upload dist/*
100
+ ```
@@ -1,6 +1,8 @@
1
1
  [metadata]
2
2
  description_file = README.md
3
3
  license_files = LICENSE
4
+ long_description = file: README.md
5
+ long_description_content_type = text/markdown
4
6
 
5
7
  [egg_info]
6
8
  tag_build =
@@ -2,10 +2,12 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name='coincap-hedera-agent-kit-plugin',
5
- version='0.2',
5
+ version='0.4',
6
6
  license='MIT',
7
7
  author="Henry Tong",
8
8
  author_email='taksantong@gmail.com',
9
+ long_description=open('README.md').read(),
10
+ long_description_content_type='text/markdown',
9
11
  packages=find_packages('src'),
10
12
  package_dir={'': 'src'},
11
13
  url='https://github.com/henrytongv/coincap-hedera-plugin-py',
@@ -0,0 +1,100 @@
1
+ Metadata-Version: 2.4
2
+ Name: coincap-hedera-agent-kit-plugin
3
+ Version: 0.4
4
+ Home-page: https://github.com/henrytongv/coincap-hedera-plugin-py
5
+ Author: Henry Tong
6
+ Author-email: taksantong@gmail.com
7
+ License: MIT
8
+ Keywords: hedera agent-kit coincap web3
9
+ Description-Content-Type: text/markdown
10
+ License-File: LICENSE
11
+ Requires-Dist: hedera-agent-kit
12
+ Requires-Dist: requests
13
+ Dynamic: author
14
+ Dynamic: author-email
15
+ Dynamic: description
16
+ Dynamic: description-content-type
17
+ Dynamic: home-page
18
+ Dynamic: keywords
19
+ Dynamic: license
20
+ Dynamic: license-file
21
+ Dynamic: requires-dist
22
+
23
+ # Hedera Agent Kit - CoinCap Plugin Python version
24
+
25
+ A plugin for [Hedera Agent Kit PY](https://github.com/hashgraph/hedera-agent-kit-py) that provides integration with the CoinCap API
26
+
27
+ In this plugin we use CoinCap to get the current price in USD of one HBAR and combine it with the power of the Hedera Agent Kit to get your current balance of HBA in USD currency.
28
+
29
+ ## Overview
30
+
31
+ This plugin enables `AI agents` to interact with the CoinCap API
32
+
33
+ ## Installation in the example index.js agent
34
+
35
+ 1.- Install the plugin
36
+
37
+ ```bash
38
+ pip install coincap-hedera-agent-kit-plugin
39
+ ```
40
+
41
+ 2.- Add your CoinCap API Bearer token in the .env file ( You get it in the CoinCap website )
42
+
43
+ ```
44
+ # Coincap API needed by coincap-hedera-plugin
45
+ COINCAP_BEARER_TOKEN=******************************
46
+ ```
47
+
48
+ 3.- Import the plugin code in your index.js (Hedera Agent)
49
+
50
+ ```py
51
+ from coincap_hedera_plugin import conincap_h_plugin
52
+ ```
53
+
54
+ 4.- Add the plugin in the plugins secion of the agent
55
+
56
+ ```py
57
+ const hederaAgentToolkit = new HederaLangchainToolkit({
58
+ client,
59
+ configuration: {
60
+ tools: [],
61
+ plugins: [coreQueriesPlugin, coreAccountPlugin, CoinCapHederalugin], // <---- Add these
62
+ ```
63
+
64
+ 5.- Use a prompt to ask for you current balance and tell the agent to want it in USD currency, for example like this:
65
+
66
+ ```py
67
+ response = await agent.ainvoke(
68
+ {"messages": [{"role": "user", "content": "Get my balance in HBAR and also convert it to USD please"}]},
69
+ ```
70
+
71
+ 6.- Now you can run the example agent and you should get your current HBAR balance converted to USD currency
72
+
73
+ ```bash
74
+ python main.py
75
+ ```
76
+
77
+ ## Tools
78
+
79
+ ```py
80
+ # Use the CoinCap API to get the current price in USD of one HBAR
81
+ def get_hbar_price_from_coincap():
82
+ ```
83
+
84
+ ## (Optional, only needed when creating your own python package) How to publish a PyPi package
85
+ 1.- Read the [instructions](https://towardsdatascience.com/how-to-upload-your-python-package-to-pypi-de1b363a1b3/)
86
+
87
+ 1.- Create the distribution package
88
+ ```bash
89
+ python setup.py sdist
90
+ ```
91
+
92
+ 2.- Install twine
93
+ ```bash
94
+ pip install twine
95
+ ```
96
+
97
+ 3.- Upload package
98
+ ```bash
99
+ twine upload dist/*
100
+ ```
@@ -11,7 +11,7 @@ from hedera_agent_kit.shared.utils.default_tool_output_parsing import (
11
11
  )
12
12
  from hedera_agent_kit.shared.utils.prompt_generator import PromptGenerator
13
13
 
14
- from tool import get_hbar_price_from_coincap
14
+ from coincap_hedera_plugin.coincap_plugin.tool import get_hbar_price_from_coincap
15
15
 
16
16
  def get_hbar_price_in_usd_prompt(context: Context = {}) -> str:
17
17
  """Generate a human-readable description of the get hbar price in usd query tool.
@@ -1,18 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: coincap-hedera-agent-kit-plugin
3
- Version: 0.2
4
- Home-page: https://github.com/henrytongv/coincap-hedera-plugin-py
5
- Author: Henry Tong
6
- Author-email: taksantong@gmail.com
7
- License: MIT
8
- Keywords: hedera agent-kit coincap web3
9
- License-File: LICENSE
10
- Requires-Dist: hedera-agent-kit
11
- Requires-Dist: requests
12
- Dynamic: author
13
- Dynamic: author-email
14
- Dynamic: home-page
15
- Dynamic: keywords
16
- Dynamic: license
17
- Dynamic: license-file
18
- Dynamic: requires-dist
@@ -1,18 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: coincap-hedera-agent-kit-plugin
3
- Version: 0.2
4
- Home-page: https://github.com/henrytongv/coincap-hedera-plugin-py
5
- Author: Henry Tong
6
- Author-email: taksantong@gmail.com
7
- License: MIT
8
- Keywords: hedera agent-kit coincap web3
9
- License-File: LICENSE
10
- Requires-Dist: hedera-agent-kit
11
- Requires-Dist: requests
12
- Dynamic: author
13
- Dynamic: author-email
14
- Dynamic: home-page
15
- Dynamic: keywords
16
- Dynamic: license
17
- Dynamic: license-file
18
- Dynamic: requires-dist