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

Function test_extract_prompts

atomic-agent/src/transcript/tests.rs:191–200  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

189
190#[test]
191fn test_extract_prompts() {
192 let entries = vec![
193 CondensedEntry::user("First prompt"),
194 CondensedEntry::assistant("Response"),
195 CondensedEntry::user("Second prompt"),
196 CondensedEntry::tool("Edit", Some("file.rs")),
197 ];
198 let prompts = extract_prompts(&entries);
199 assert_eq!(prompts, vec!["First prompt", "Second prompt"]);
200}
201
202#[test]
203fn test_extract_prompts_empty() {

Callers

nothing calls this directly

Calls 1

extract_promptsFunction · 0.85

Tested by

no test coverage detected