()
| 1209 | |
| 1210 | #[test] |
| 1211 | fn test_anthropic_messages_basic() { |
| 1212 | let msgs = vec![ |
| 1213 | ToolMessage::System { |
| 1214 | content: "sys".into(), |
| 1215 | }, |
| 1216 | ToolMessage::User { |
| 1217 | content: "hi".into(), |
| 1218 | }, |
| 1219 | ]; |
| 1220 | let result = anthropic_messages(&msgs); |
| 1221 | // System is excluded from messages array. |
| 1222 | assert_eq!(result.len(), 1); |
| 1223 | assert_eq!(result[0]["role"], "user"); |
| 1224 | } |
| 1225 | |
| 1226 | #[test] |
| 1227 | fn test_anthropic_messages_tool_results_batched() { |
nothing calls this directly
no test coverage detected