dirge-agent 0.5.1

Minimalistic coding agent written in Rust, optimized for memory footprint and performance
1
2
3
4
5
6
7
8
9
10
11
12
13
14
(defn on-init [ctx]
  (string "loaded with " (ctx :model)))

(defn on-prompt [ctx]
  (let [prompt (ctx :prompt)]
    (if (string/find "hello" prompt)
      "greeting detected"
      nil)))

(defn on-response [ctx]
  (let [resp (ctx :response)]
    (if (string/find "error" resp)
      "error in response"
      nil)))