Method
extract_node_tools
(
node_config: &std::collections::HashMap<String, serde_json::Value>,
)
Source from the content-addressed store, hash-verified
| 776 | } |
| 777 | |
| 778 | fn extract_node_tools( |
| 779 | node_config: &std::collections::HashMap<String, serde_json::Value>, |
| 780 | ) -> Vec<String> { |
| 781 | node_config |
| 782 | .get("tools") |
| 783 | .and_then(|v| v.as_array()) |
| 784 | .map(|arr| { |
| 785 | arr.iter() |
| 786 | .filter_map(|v| v.as_str().map(str::to_string)) |
| 787 | .collect::<Vec<String>>() |
| 788 | }) |
| 789 | .unwrap_or_default() |
| 790 | } |
| 791 | |
| 792 | fn extract_llm_tools( |
| 793 | node_config: &std::collections::HashMap<String, serde_json::Value>, |
Callers
nothing calls this directly
Tested by
no test coverage detected