AG-UI 的 run 输入(C# Keelson.Agui 的 RunAgentInput.Decode):只做形状校验,码与文案同 C#;解析成什么交给
clj-agent-agui 的 codec/parse-run-input(历史取服务端权威、只取最后一条 user 消息 …)。
错误是 ex-info::im.ttalk.agent.server/code = C# 的资源键(agui-input/…),:agui/wire-code = 线上的种类码
(bad_json / bad_input),路由据此回 400 {"error": wire-code, "message": …}。
AG-UI 的 run 输入(C# Keelson.Agui 的 RunAgentInput.Decode):只做**形状**校验,码与文案同 C#;解析成什么交给
clj-agent-agui 的 `codec/parse-run-input`(历史取服务端权威、只取最后一条 user 消息 …)。
错误是 ex-info:`:im.ttalk.agent.server/code` = C# 的资源键(`agui-input/…`),`:agui/wire-code` = 线上的种类码
(`bad_json` / `bad_input`),路由据此回 400 `{"error": wire-code, "message": …}`。(decode body)请求体原文 ⇒ 校验过的 RunAgentInput(keyword 键的 map)。空 / 坏 JSON ⇒ bad_json;形状不对 ⇒ bad_input。
请求体原文 ⇒ 校验过的 RunAgentInput(keyword 键的 map)。空 / 坏 JSON ⇒ `bad_json`;形状不对 ⇒ `bad_input`。
(parse-json s)串 ⇒ JSON 值(对象键是 keyword);不是合法 JSON ⇒ ::bad。
串 ⇒ JSON 值(对象键是 keyword);不是合法 JSON ⇒ `::bad`。
(validate body)已解析的请求体(map)⇒ 原样返回并补 :lastSeq(缺席 = 0);形状不对抛(见 ns 文档)。
已解析的请求体(map)⇒ 原样返回并补 `:lastSeq`(缺席 = 0);形状不对抛(见 ns 文档)。
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 |