Enki Runtime
Python bindings for the Enki agent runtime, providing a powerful framework for building AI agents with memory, tools, and HTTP server capabilities.
Features
- Agent Runtime: Run and manage AI agents with built-in lifecycle management
- Memory System: Pluggable memory stores with in-memory and custom implementations
- Tool System: Decorator-based tool registration for agent capabilities
- HTTP Server: Built-in HTTP API server for agent interactions
- Multi-Agent Support: Run multiple agents concurrently with dynamic registration
Installation
pip install enki-runtime
Quick Start
Basic Agent
from enki_sdk import Agent, tool
import enki_runtime
@Agent
class MyAgent:
"""A simple agent example"""
@tool
def greet(self, name: str) -> str:
"""Greet someone by name"""
return f"Hello, {name}!"
# Create and run agent
config = enki_runtime.AgentConfig(
name="my-agent",
model="gpt-4",
system_prompt="You are a helpful assistant."
)
agent = MyAgent(config)
response = agent.chat("Say hello to Alice")
print(response)
Memory Store
from enki_sdk import InMemoryStore
# Use built-in memory store
memory = InMemoryStore()
memory.save("key", "value")
value = memory.get("key")
HTTP Server
from enki_runtime import EnkiRuntime
# Start runtime with HTTP server
runtime = EnkiRuntime()
runtime.start_server("0.0.0.0", 8000)
# Register agents dynamically
runtime.register_agent("agent-1", agent_config)
Documentation
For more examples and detailed documentation, see the examples directory.
Requirements
- Python >= 3.8
- Rust (for building from source)
License
MIT License - see LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit issues or pull requests.
Metadata
Release files for enki-runtime 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| enki_runtime-0.1.0-cp312-cp312-win_amd64.whl | CPython 3.12 | CPython 3.12 | Windows x86-64 | Details for enki_runtime-0.1.0-cp312-cp312-win_amd64.whl |
Release files / enki_runtime-0.1.0-cp312-cp312-win_amd64.whl
| Download URL | enki_runtime-0.1.0-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 9.3 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
36951ef8ecaf7148f8e5bcdd65d74c45a91066e929150eda93c411fba39e9caf
|
|
BLAKE2b-256 checksum How to use checksums |
958dafbf7a9bb17b9969981f4c3df8f4778b0214791a674988ec00ec34ba376d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Security for enki-runtime 0.1.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.