()
| 687 | |
| 688 | #[test] |
| 689 | fn test_anthropic_build_request_tools() { |
| 690 | let c = AnthropicClient::new("k".into(), "claude-3".into()); |
| 691 | let tools = vec![ToolDefinition { |
| 692 | name: "bash".into(), |
| 693 | description: "Run".into(), |
| 694 | parameters: serde_json::json!({"type":"object"}), |
| 695 | }]; |
| 696 | let b = c.build_request(&[Message::user("Hi")], None, &tools); |
| 697 | assert_eq!(b["tools"].as_array().unwrap().len(), 1); |
| 698 | } |
| 699 | |
| 700 | #[test] |
| 701 | fn test_openai_convert_user_msg() { |
nothing calls this directly
no test coverage detected