Skip to main content

High performance, flexible, lightweight agent framework.

Project description

AmritaCore

Logo

PyPI Version Python Version License AmritaCore Discord QQ Group

AmritaCore is a lightweight Agent runtime built on top of AmritaSense. It delivers native async streaming, tool integration, event hooks, and memory management — everything you need to build interactive, production‑ready Agent applications without the overhead of heavyweight frameworks.

🚀 Fast Lookup

import asyncio
from amrita_core import create_agent

async def main():
    agent = create_agent(
        base_url="https://api.openai.com/v1",
        api_key="your-api-key",
        model="gpt-4o-mini",
    )
    chat = agent.get_chatobject("Hello, how are you?")
    print(await chat.full_response())

asyncio.run(main())

🔑 Key Features

  • Interactive‑first design — native async streaming with suspend/resume
  • Vendor‑agnostic adapter system — OpenAI, Anthropic, and extensible
  • Declarative dependency injection — type‑safe, based on function signatures
  • Event‑driven hooks — intercept and modify the processing pipeline
  • Tool system@simple_tool, @on_tools, and MCP client support
  • Advanced memory management — automatic context window and token optimisation

📖 Documentation

Full guides, API references, and examples at core.amritabot.com.

🤝 Contributing

We welcome contributions! Please see our contribution guidelines for more information.

📄 License

This project is licensed under the Apache 2.0 License — see the LICENSE file for details. All versions of AmritaCore are released under Apache 2.0.

Other files

Unstable Features

  • Python 3.14+ Supporting: we are not sure if it will work well on Python 3.14+(No GIL Version).

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

amrita_core-0.10.0.dev1.tar.gz (118.1 kB view details)

Uploaded Source

Built Distribution

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

amrita_core-0.10.0.dev1-py3-none-any.whl (96.0 kB view details)

Uploaded Python 3

File details

Details for the file amrita_core-0.10.0.dev1.tar.gz.

File metadata

  • Download URL: amrita_core-0.10.0.dev1.tar.gz
  • Upload date:
  • Size: 118.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.22 {"installer":{"name":"uv","version":"0.11.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for amrita_core-0.10.0.dev1.tar.gz
Algorithm Hash digest
SHA256 ee6c6efd717e37056467164a90d5e8c87bcfc4b3e0388a7fd18b1a2cbf080ede
MD5 2cfb50b2cb87989b77f3a33f2aa2b530
BLAKE2b-256 6db6188207de52639fca929f4d6398efba9aeaa4e097978f3f78eaf268d2cb26

See more details on using hashes here.

File details

Details for the file amrita_core-0.10.0.dev1-py3-none-any.whl.

File metadata

  • Download URL: amrita_core-0.10.0.dev1-py3-none-any.whl
  • Upload date:
  • Size: 96.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.22 {"installer":{"name":"uv","version":"0.11.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for amrita_core-0.10.0.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 3080926bc6219eb03ffaee5d1893935dea9e97faec3289bce7730a319d0863aa
MD5 cef1f61c6f6c9035f82df0b1e8a22e8d
BLAKE2b-256 8562f9428d18bb11406ff7e47b51af556dc56cf823d4fd76e1c1c2efe2eadd8e

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