Catalog PyPI
PACKAGE EXPLORERView in registry

agentlabs

PyPI

agentlabs: A Python library for implementing agents on Weavel

agentagentlabsllmtoolsweavel
Versions collected1
Direct dependencies1From release 0.1.0
Last observed20 Oct, 22:32 UTC

README

Version 0.1.0 documentation

Agentlabs

Python library for implementing agents on Weavel

Installation

pip install agentlabs

Example Usage

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")

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.08 Sept 20231

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:32 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:f2e481961ccfbffca5fe51047338f6e9b7d810f168bf78cb68bb6272be9c5de8