()
| 1270 | |
| 1271 | #[test] |
| 1272 | fn test_anthropic_messages_basic() { |
| 1273 | let msgs = vec![ |
| 1274 | ToolMessage::System { |
| 1275 | content: "sys".into(), |
| 1276 | }, |
| 1277 | ToolMessage::User { |
| 1278 | content: "hi".into(), |
| 1279 | }, |
| 1280 | ]; |
| 1281 | let result = anthropic_messages(&msgs); |
| 1282 | // System is excluded from messages array. |
| 1283 | assert_eq!(result.len(), 1); |
| 1284 | assert_eq!(result[0]["role"], "user"); |
| 1285 | } |
| 1286 | |
| 1287 | #[test] |
| 1288 | fn test_anthropic_messages_tool_results_batched() { |
nothing calls this directly
no test coverage detected