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

Function test_anthropic_messages_basic

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

Source from the content-addressed store, hash-verified

1209
1210 #[test]
1211 fn test_anthropic_messages_basic() {
1212 let msgs = vec![
1213 ToolMessage::System {
1214 content: "sys".into(),
1215 },
1216 ToolMessage::User {
1217 content: "hi".into(),
1218 },
1219 ];
1220 let result = anthropic_messages(&msgs);
1221 // System is excluded from messages array.
1222 assert_eq!(result.len(), 1);
1223 assert_eq!(result[0]["role"], "user");
1224 }
1225
1226 #[test]
1227 fn test_anthropic_messages_tool_results_batched() {

Callers

nothing calls this directly

Calls 1

anthropic_messagesFunction · 0.85

Tested by

no test coverage detected