Add your description here
Project description
Installation
- Install package:
pip install hero-core hero-tools
- Quickly Start
from hero import Hero, Model, Tool
from hero_tools import crewl_web, download_file
default_model = Model(
model_name="deepseek",
model_url="https://api.example.com/v1",
model_api_key="api-key",
)
hero = Hero(
name="hero",
model=default_model,
)
tool = Tool()
@hero.tool("add")
def add_func(a, b):
"""
<desc>Addition calculator</desc>
<params>
<a type="number">addend a</a>
<b type="number">addend b</b>
</params>
<example>
{
"tool": "add",
"params": {
"a": 1,
"b": 2
}
}
</example>
"""
return a + b
hero.add_tool(crewl_web, download_file, add_func)
hero.run(question="some question")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hero_core-0.1.2.tar.gz
(76.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
hero_core-0.1.2-py3-none-any.whl
(93.8 kB
view details)
File details
Details for the file hero_core-0.1.2.tar.gz.
File metadata
- Download URL: hero_core-0.1.2.tar.gz
- Upload date:
- Size: 76.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3190c998fb5394d8bdf42e315f5427b89cccd8d3c947509f7b29b7927e240f54
|
|
| MD5 |
78339a98d0d4dc13dbdd323efdb79b8b
|
|
| BLAKE2b-256 |
2bdcae1b1da2d38c45fbdb0dc0b12ffd2a5302f4871f3699df85b3f70bdd9333
|
File details
Details for the file hero_core-0.1.2-py3-none-any.whl.
File metadata
- Download URL: hero_core-0.1.2-py3-none-any.whl
- Upload date:
- Size: 93.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1582ae743811463ef9797d087a670e79ffc512282d08b83106f1d85c3a90a5cf
|
|
| MD5 |
c9279c0112a89844ae2f7dbf0dc4a8c7
|
|
| BLAKE2b-256 |
e47024cbf551a2138d1578035a3596c07b3eecbffb7d365a8c6f1fa12d608370
|