clj-agent-server 的文案与错误。
(msg k & args) ⇒ {:code "区/事件" :text "渲染后的话"}({0} {1} … 占位);(error k args data) ⇒ ex-info,
ex-data 带 :im.ttalk.agent.server/code(= :code)。码与文案移植自 Keelson(clj-net-server / clj-agui-server 由 C# resx
生成的中文文案包,提交 5899776c);线上的错误种类码(bad_json、thread_not_found …)不在这里,它们是 AG-UI 的线协议。
clj-agent-server 的文案与错误。
`(msg k & args)` ⇒ `{:code "区/事件" :text "渲染后的话"}`(`{0}` `{1}` … 占位);`(error k args data)` ⇒ ex-info,
ex-data 带 `:im.ttalk.agent.server/code`(= :code)。码与文案移植自 Keelson(`clj-net-server` / `clj-agui-server` 由 C# resx
生成的中文文案包,提交 5899776c);线上的错误种类码(`bad_json`、`thread_not_found` …)不在这里,它们是 AG-UI 的线协议。(error m)(error m data)(error {:keys [code text]} data cause)造 ex-info:消息是 (msg k args…) 的 text,ex-data = data + :im.ttalk.agent.server/code。
造 ex-info:消息是 `(msg k args…)` 的 text,ex-data = `data` + `:im.ttalk.agent.server/code`。
(msg k & args)文案:{:code :text}。键缺失 ⇒ text 是码本身。
文案:`{:code :text}`。键缺失 ⇒ text 是码本身。
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |