Skip to content

Commit aad552d

Browse files
committed
Update docs for in-context fn
1 parent bde3428 commit aad552d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/fierycod/holy_lambda/agent.clj

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,16 @@
1818
(def ^:private AGENT_EXECUTOR "native-agent")
1919

2020
(defmacro in-context
21-
"Executes body in safe agent context for native configuration generation. See docs for more."
21+
"Executes body in safe agent context for native configuration generation.
22+
Catches all errors thrown during execution."
2223
[& body]
2324
(if-not (System/getenv "USE_AGENT_CONTEXT")
2425
nil
2526
`(when (= (System/getProperty "executor") @#'fierycod.holy-lambda.agent/AGENT_EXECUTOR)
26-
(try (do ~@body)
27-
(catch Exception err#
28-
(println "Exception in agent-context: " err#))))))
27+
(try
28+
(do ~@body)
29+
(catch Exception err#
30+
(println "Exception in agent-context: " err#))))))
2931

3032
(defn- agents-payloads->invoke-map
3133
[]

0 commit comments

Comments
 (0)