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

Function test_openai_messages_system

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

Source from the content-addressed store, hash-verified

1328
1329 #[test]
1330 fn test_openai_messages_system() {
1331 let msgs = vec![ToolMessage::System {
1332 content: "sys prompt".into(),
1333 }];
1334 let result = openai_messages(&msgs);
1335 assert_eq!(result.len(), 1);
1336 assert_eq!(result[0]["role"], "system");
1337 assert_eq!(result[0]["content"], "sys prompt");
1338 }
1339
1340 #[test]
1341 fn test_openai_messages_tool_results_separate() {

Callers

nothing calls this directly

Calls 1

openai_messagesFunction · 0.85

Tested by

no test coverage detected