Name | agentlabs JSON |
Version |
0.1.0
JSON |
| download |
home_page | |
Summary | agentlabs: A Python library for implementing agents on Weavel |
upload_time | 2023-09-08 10:21:15 |
maintainer | |
docs_url | None |
author | |
requires_python | >=3.7.1 |
license | |
keywords |
weavel
agent
llm
tools
agentlabs
llm agent
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Agentlabs
> Python library for implementing agents on [Weavel](https://weavel.vercel.app)
## Installation
```bash
pip install agentlabs
```
## Example Usage
```python
from agentlabs import Agent, InputType
agent = Agent()
@agent.service(
id=3,
name="blog_post",
description="Given a keyword as input, this service generates a SEO-optimized blog post",
)
@agent.service_input(
name="keyword",
display_name="키워드",
description="The keyword for which the blog post should be generated",
type=InputType.TEXT,
options=[
"아로니아",
"아로니아 농장",
],
)
@agent.service_input(
name="post_length",
display_name="글 길이",
description="Desired length of the blog post",
type=InputType.TEXT,
placeholder="Medium",
options=[
"Short",
"Medium",
"Long",
],
)
async def generate_blog(keyword: str):
await agent.aupdate_status("Generating blog outline...")
await agent.aupdate_status("Writing post...")
await agent.aupdate_status("Searching for images...")
await agent.aupdate_status("Adding images to post...")
await agent.aupdate_status("Generating title...")
return {
"blog": "블로그",
}
if __name__ == "__main__":
agent.run(token="5f2593e7-1a10-492e-a9c1-e7521d400e2b")
```
Raw data
{
"_id": null,
"home_page": "",
"name": "agentlabs",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7.1",
"maintainer_email": "",
"keywords": "weavel,agent,llm,tools,agentlabs,llm agent",
"author": "",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/60/f3/0a9fcd0a8a32b0dfa89585c617b16ca48920f263c4041d41cdb893e2c3d2/agentlabs-0.1.0.tar.gz",
"platform": null,
"description": "# Agentlabs\n\n> Python library for implementing agents on [Weavel](https://weavel.vercel.app)\n\n## Installation\n\n```bash\npip install agentlabs\n```\n\n## Example Usage\n\n```python\nfrom agentlabs import Agent, InputType\n\nagent = Agent()\n\n\n@agent.service(\n id=3,\n name=\"blog_post\",\n description=\"Given a keyword as input, this service generates a SEO-optimized blog post\",\n)\n@agent.service_input(\n name=\"keyword\",\n display_name=\"\ud0a4\uc6cc\ub4dc\",\n description=\"The keyword for which the blog post should be generated\",\n type=InputType.TEXT,\n options=[\n \"\uc544\ub85c\ub2c8\uc544\",\n \"\uc544\ub85c\ub2c8\uc544 \ub18d\uc7a5\",\n ],\n)\n@agent.service_input(\n name=\"post_length\",\n display_name=\"\uae00 \uae38\uc774\",\n description=\"Desired length of the blog post\",\n type=InputType.TEXT,\n placeholder=\"Medium\",\n options=[\n \"Short\",\n \"Medium\",\n \"Long\",\n ],\n)\nasync def generate_blog(keyword: str):\n await agent.aupdate_status(\"Generating blog outline...\")\n await agent.aupdate_status(\"Writing post...\")\n await agent.aupdate_status(\"Searching for images...\")\n await agent.aupdate_status(\"Adding images to post...\")\n await agent.aupdate_status(\"Generating title...\")\n return {\n \"blog\": \"\ube14\ub85c\uadf8\",\n }\n\n\nif __name__ == \"__main__\":\n agent.run(token=\"5f2593e7-1a10-492e-a9c1-e7521d400e2b\")\n\n```\n",
"bugtrack_url": null,
"license": "",
"summary": "agentlabs: A Python library for implementing agents on Weavel",
"version": "0.1.0",
"project_urls": null,
"split_keywords": [
"weavel",
"agent",
"llm",
"tools",
"agentlabs",
"llm agent"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "503be2ecbe0c14a89ea106264d5b798ed389037123cd7f26e75f0d93e3456e06",
"md5": "1829c43dc0a5fef94a8342be621fc598",
"sha256": "873953a34b632808cb130ffb0226b702a298394932173e3433b18bca4943b083"
},
"downloads": -1,
"filename": "agentlabs-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "1829c43dc0a5fef94a8342be621fc598",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7.1",
"size": 7783,
"upload_time": "2023-09-08T10:21:14",
"upload_time_iso_8601": "2023-09-08T10:21:14.054991Z",
"url": "https://files.pythonhosted.org/packages/50/3b/e2ecbe0c14a89ea106264d5b798ed389037123cd7f26e75f0d93e3456e06/agentlabs-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "60f30a9fcd0a8a32b0dfa89585c617b16ca48920f263c4041d41cdb893e2c3d2",
"md5": "4272396c1e2c790a9ff2b59e702d8387",
"sha256": "777428549fb334c22dacecf1108b8a774c5ee44f20592a533da4027d2afbd3dc"
},
"downloads": -1,
"filename": "agentlabs-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "4272396c1e2c790a9ff2b59e702d8387",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7.1",
"size": 6691,
"upload_time": "2023-09-08T10:21:15",
"upload_time_iso_8601": "2023-09-08T10:21:15.907661Z",
"url": "https://files.pythonhosted.org/packages/60/f3/0a9fcd0a8a32b0dfa89585c617b16ca48920f263c4041d41cdb893e2c3d2/agentlabs-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-09-08 10:21:15",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "agentlabs"
}