1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# RAG Agent Mesh Configuration for Enki Runtime
#
# This file demonstrates how to configure RAG agents with memory backends using TOML.
# Load with: MeshConfig::from_file("rag_agents.toml")
= "rag_mesh"
# Shared memory configuration for all agents (default fallback)
# Backend options: "inmemory" (default), "sqlite", "redis"
[]
= "inmemory"
= 1000
= 3600
# RAG Agent - retrieves context and generates grounded responses
# Uses the shared mesh [memory] configuration above (no [agents.memory] specified)
[[]]
= "rag_agent"
= "ollama::gemma3:latest"
= """
You are a helpful assistant that answers questions based on the provided context.
Always ground your answers in the given context. If the context doesn't contain
enough information, say so. Be concise and informative.
"""
= 0.3
= 512
# Knowledge Curator - has its OWN separate memory configuration
# This demonstrates per-agent memory isolation
[[]]
= "curator"
= "ollama::gemma3:latest"
= """
You are a knowledge curator. Your job is to organize and summarize information
into well-structured knowledge entries. Extract key facts and organize them
clearly and concisely.
"""
= 0.2
= 1024
# Per-agent memory configuration (overrides mesh default)
[]
= "inmemory"
= 500 # Smaller limit for curator's focused storage
= 7200 # Longer TTL for curated knowledge
# Persistent Agent Example - uses SQLite for persistent storage
# Uncomment to use (requires 'sqlite' feature)
# [[agents]]
# name = "persistent_agent"
# model = "ollama::gemma3:latest"
# system_prompt = "You are a persistent agent with SQLite storage."
#
# [agents.memory]
# backend = "sqlite"
# path = "./persistent_agent_memory.db"
# Redis Agent Example - uses Redis for distributed storage
# Uncomment to use (requires 'redis' feature)
# [[agents]]
# name = "distributed_agent"
# model = "ollama::gemma3:latest"
# system_prompt = "You are a distributed agent with Redis storage."
#
# [agents.memory]
# backend = "redis"
# url = "redis://localhost:6379"
# prefix = "distributed_agent"
# ttl_seconds = 3600