Liking cljdoc? Tell your friends :D

im.ttalk.agent.server.agui.input

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": …}`。
raw docstring

bad-json?clj

(bad-json? v)
source

decodeclj

(decode body)

请求体原文 ⇒ 校验过的 RunAgentInput(keyword 键的 map)。空 / 坏 JSON ⇒ bad_json;形状不对 ⇒ bad_input。

请求体原文 ⇒ 校验过的 RunAgentInput(keyword 键的 map)。空 / 坏 JSON ⇒ `bad_json`;形状不对 ⇒ `bad_input`。
sourceraw docstring

parse-jsonclj

(parse-json s)

串 ⇒ JSON 值(对象键是 keyword);不是合法 JSON ⇒ ::bad。

串 ⇒ JSON 值(对象键是 keyword);不是合法 JSON ⇒ `::bad`。
sourceraw docstring

validateclj

(validate body)

已解析的请求体(map)⇒ 原样返回并补 :lastSeq(缺席 = 0);形状不对抛(见 ns 文档)。

已解析的请求体(map)⇒ 原样返回并补 `:lastSeq`(缺席 = 0);形状不对抛(见 ns 文档)。
sourceraw docstring

wire-codeclj

(wire-code e)

输入错误的线上种类码;不是输入错误 ⇒ nil。

输入错误的线上种类码;不是输入错误 ⇒ nil。
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close