MCPcopy Create free account
hub / github.com/AI45Lab/Code / test_openai_convert_tool_result

Function test_openai_convert_tool_result

core/src/llm/tests.rs:709–714  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 1

convert_messagesMethod · 0.80

Tested by

no test coverage detected