(value: &serde_json::Value)
| 1017 | } |
| 1018 | |
| 1019 | fn parse_string_array(value: &serde_json::Value) -> Option<Vec<String>> { |
| 1020 | value.as_array().map(|items| { |
| 1021 | items |
| 1022 | .iter() |
| 1023 | .filter_map(|item| item.as_str().map(|s| s.to_string())) |
| 1024 | .collect() |
| 1025 | }) |
| 1026 | } |
| 1027 | |
| 1028 | fn apply_chat_system_hook_outputs( |
| 1029 | system_prompt: &mut Vec<String>, |