Skip to main content

Lightweight LLM agent library — memory layers, skills, context engineering

Project description

uc-llm-agent-tools

Lightweight LLM agent library — memory layers, skills, context engineering.

Built on uc-llm-provider. Works with any LLM: Anthropic, OpenAI, Google, Ollama.

Install

pip install uc-llm-agent-tools

Quick Start

from uc_llm_agent_tools import Agent, Identity, MemoryStore, MemoryLayer
from uc_llm_agent_tools.memory.backends.sqlite import SQLiteBackend
from uc_llm_agent_tools.skills import skill, SkillResult
from uc_llm_provider import get_provider

# Skills definieren
@skill(name="fetch_page", description="Fetch and analyze a web page", tags=["browser"])
async def fetch_page(url: str) -> SkillResult:
    return SkillResult(success=True, content=f"Page at {url} analyzed", data={})

# Agent aufsetzen
agent = Agent(
    identity=Identity.from_file("my-agent-identity.md"),
    memory=MemoryStore(
        backend=SQLiteBackend("agent.sqlite3"),
        layers=[
            MemoryLayer("project", level=2, persist=True),
            MemoryLayer("run",     level=3, persist=False),
        ]
    ),
    skills=[fetch_page],
    provider=get_provider({"name": "anthropic", "provider_type": "anthropic"}),
)

result = await agent.run("Analyze https://example.com for accessibility issues")

Memory Hierarchy

Level 0: Directives    — always loaded, never overridden
Level 1: Personality   — always loaded, grows over time
Level N: custom named  — filtered by budget and relevance

High beats low. Low complements high.

PyPI

uc-llm-agent-tools

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uc_llm_agent_tools-0.1.0.tar.gz (23.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

uc_llm_agent_tools-0.1.0-py3-none-any.whl (22.6 kB view details)

Uploaded Python 3

File details

Details for the file uc_llm_agent_tools-0.1.0.tar.gz.

File metadata

  • Download URL: uc_llm_agent_tools-0.1.0.tar.gz
  • Upload date:
  • Size: 23.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for uc_llm_agent_tools-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cf84e94fab38d7a2767af923268614ae0ee941c790e431891298e98687f18fb8
MD5 02f233213845ee0afe3fcf7f3f852850
BLAKE2b-256 cc0ae59e08c5bbefb070ed2e627ee339a0e0890141e4d9e8b7f55eca738a9270

See more details on using hashes here.

File details

Details for the file uc_llm_agent_tools-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for uc_llm_agent_tools-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0a166bad93709b483620f192531373736c63f6c1c3bf17b5062b3449d32b4590
MD5 3fa16c12d1c2115808986c2d52872df5
BLAKE2b-256 7c2195bf12938aa5b47f34c21a0ea6bc47285deb6ee8e88187618df347030869

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page