Skip to main content

yuutools

Explicit, async-first tool framework for LLM agents.

Install

uv add yuutools

Usage

import yuutools as yt

def get_z(ctx) -> int:
    return ctx.multiplier

@yt.tool(
    params={"x": "first operand", "y": "list of ints to sum"},
    name="goodtool",
    description="Add x + sum(y) + z",
)
async def goodtool(x: int, y: list[int], z: int = yt.depends(get_z)):
    return x + sum(y) + z

# Registry
manager = yt.ToolManager([goodtool])

tool = manager["goodtool"]
print(tool.spec.to("json_schema"))

# Bind context and run
result = await tool.bind(ctx).run(x=1, y=[2, 3])

@yt.tool

Decorator that turns a function into a Tool. Parameters:

  • params — {name: description} mapping for the LLM schema
  • name — override tool name (default: __name__)
  • description — tool description (default: first docstring line)

yt.depends(resolver)

Marks a parameter as context-injected. The resolver is called with the bound context at execution time. Hidden from the generated spec.

ToolSpec.to(fmt)

Serialize to "json_schema" or "yaml" (requires yuutools[yaml]).

ToolManager

Name-keyed registry with [] lookup, iteration, and .specs() for bulk JSON schema export.

License

MIT

Metadata

Release files for yuutools 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yuutools 0.3.0
File Size Uploaded Provenance Actions
yuutools-0.3.0.tar.gz 5.6 kB With provenance Details for yuutools-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for yuutools 0.3.0
File Interpreter ABI Platform Actions
yuutools-0.3.0-py3-none-any.whl Python 3 none any Details for yuutools-0.3.0-py3-none-any.whl

Total release size: 13.6 kB

Release files / yuutools-0.3.0.tar.gz

Download URL yuutools-0.3.0.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
bbde4aa4268e207f6bfd728422d4a8ba5feb9fdad1de144df5125f782bb0ad18
BLAKE2b-256 checksum
How to use checksums
56f9c3512a374df1b2b489eaa1ecec3e1f1d6225b05230316bc660650114b78b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 24, 2026.

Transparency log

Release files / yuutools-0.3.0-py3-none-any.whl

Download URL yuutools-0.3.0-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5bfcc73eb43286105cc34d8a533ac8eee9aa5d42c272a6272ca52fd5507a5669
BLAKE2b-256 checksum
How to use checksums
6d4a5326f5287022020b320f8d0a0af443d184d364676e5c60d8c9aa1b96662d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 24, 2026.

Transparency log

Security for yuutools 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for yuutools-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page