(messages: &[Message])
| 952 | } |
| 953 | |
| 954 | pub fn has_tool_calls(messages: &[Message]) -> bool { |
| 955 | for msg in messages { |
| 956 | if let Content::Parts(parts) = &msg.content { |
| 957 | for part in parts { |
| 958 | if part.tool_use.is_some() || part.tool_result.is_some() { |
| 959 | return true; |
| 960 | } |
| 961 | } |
| 962 | } |
| 963 | } |
| 964 | false |
| 965 | } |
| 966 | } |
| 967 | |
| 968 | fn build_system_prompt(input: &StreamInput) -> Vec<String> { |
nothing calls this directly
no outgoing calls
no test coverage detected