MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_openai_messages_system

Function test_openai_messages_system

atomic-repository/src/ai/tools.rs:1269–1277  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1267
1268 #[test]
1269 fn test_openai_messages_system() {
1270 let msgs = vec![ToolMessage::System {
1271 content: "sys prompt".into(),
1272 }];
1273 let result = openai_messages(&msgs);
1274 assert_eq!(result.len(), 1);
1275 assert_eq!(result[0]["role"], "system");
1276 assert_eq!(result[0]["content"], "sys prompt");
1277 }
1278
1279 #[test]
1280 fn test_openai_messages_tool_results_separate() {

Callers

nothing calls this directly

Calls 1

openai_messagesFunction · 0.85

Tested by

no test coverage detected