Skip to main content

Python bindings for Enki agent runtime with memory, tools, and HTTP server

Project description

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.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

enki_runtime-0.1.0-cp312-cp312-win_amd64.whl (9.3 MB view details)

Uploaded CPython 3.12Windows x86-64

File details

Details for the file enki_runtime-0.1.0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for enki_runtime-0.1.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 36951ef8ecaf7148f8e5bcdd65d74c45a91066e929150eda93c411fba39e9caf
MD5 3778ab9cc04762a3696e83156671ca33
BLAKE2b-256 958dafbf7a9bb17b9969981f4c3df8f4778b0214791a674988ec00ec34ba376d

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