MCPcopy Index your code
hub / github.com/AI45Lab/Code / initial_tool_input_json

Method initial_tool_input_json

core/src/llm/anthropic.rs:83–89  ·  view source on GitHub ↗
(input: &serde_json::Value)

Source from the content-addressed store, hash-verified

81 }
82
83 fn initial_tool_input_json(input: &serde_json::Value) -> Option<String> {
84 match input {
85 serde_json::Value::Object(map) if map.is_empty() => None,
86 serde_json::Value::Null => None,
87 value => serde_json::to_string(value).ok(),
88 }
89 }
90
91 pub(crate) fn build_request(
92 &self,

Callers

nothing calls this directly

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected