enki-runtime 0.1.4

A Rust-based agent mesh framework for building local and distributed AI agent systems
Documentation
# Enki CLI Example with Per-Agent Memory

# 

# This configuration demonstrates agents with isolated memory backends.

# Each agent can have its own memory or inherit from the mesh-level memory.

#

# Run with: Enki --config agents_with_memory.toml --serve

#

# API Endpoints:

#   POST /chat          - Chat with an agent (uses memory context)

#   POST /memory        - Store memory for an agent

#   POST /memory/search - Search an agent's memory



name = "memory_demo_mesh"



# Mesh-level memory configuration (default for agents without their own)

[memory]

backend = "inmemory"

max_entries = 500

ttl_seconds = 3600   # 1 hour TTL



# Agent 1: Research Assistant with default mesh memory

[[agents]]

name = "researcher"

model = "ollama::gemma3:latest"

system_prompt = """You are a research assistant with access to your memory.
When answering questions, use any relevant context from your knowledge base.
Be concise and cite your sources when available."""

temperature = 0.3

max_tokens = 1024



# Agent 2: Analyst with custom memory (more capacity)

[[agents]]

name = "analyst"

model = "ollama::gemma3:latest"

system_prompt = """You are a data analyst with a specialized knowledge base.
Analyze information and provide insights based on your stored knowledge.
Be precise and data-driven in your responses."""

temperature = 0.2

max_tokens = 2048



[agents.memory]

backend = "inmemory"

max_entries = 1000   # More memory for this agent

ttl_seconds = 7200   # 2 hours TTL



# Agent 3: Creative Writer with its own memory

[[agents]]

name = "writer"

model = "ollama::gemma3:latest"

system_prompt = """You are a creative writer with your own inspiration library.
Draw from your stored ideas and references when crafting responses.
Be creative and expressive."""

temperature = 0.8

max_tokens = 2048



[agents.memory]

backend = "inmemory"

max_entries = 200    # Smaller memory for creative prompts

ttl_seconds = 1800   # 30 minutes TTL