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

Function test_anthropic_messages_basic

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

Source from the content-addressed store, hash-verified

1270
1271 #[test]
1272 fn test_anthropic_messages_basic() {
1273 let msgs = vec![
1274 ToolMessage::System {
1275 content: "sys".into(),
1276 },
1277 ToolMessage::User {
1278 content: "hi".into(),
1279 },
1280 ];
1281 let result = anthropic_messages(&msgs);
1282 // System is excluded from messages array.
1283 assert_eq!(result.len(), 1);
1284 assert_eq!(result[0]["role"], "user");
1285 }
1286
1287 #[test]
1288 fn test_anthropic_messages_tool_results_batched() {

Callers

nothing calls this directly

Calls 1

anthropic_messagesFunction · 0.85

Tested by

no test coverage detected