(input: &serde_json::Value)
| 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, |