()
| 707 | |
| 708 | #[test] |
| 709 | fn test_openai_convert_tool_result() { |
| 710 | let c = OpenAiClient::new("k".into(), "gpt-4".into()); |
| 711 | let m = c.convert_messages(&[Message::tool_result("c1", "out", false)]); |
| 712 | assert_eq!(m[0]["role"], "tool"); |
| 713 | assert_eq!(m[0]["tool_call_id"], "c1"); |
| 714 | } |
| 715 | |
| 716 | #[test] |
| 717 | fn test_openai_convert_tools_empty() { |
nothing calls this directly
no test coverage detected