MCPcopy Create free account
hub / github.com/c4pt0r/pie / assistant_message

Function assistant_message

crates/coding-agent/src/debug.rs:291–306  ·  view source on GitHub ↗
(content: Vec<ContentBlock>)

Source from the content-addressed store, hash-verified

289 use serde_json::json;
290
291 fn assistant_message(content: Vec<ContentBlock>) -> AssistantMessage {
292 AssistantMessage {
293 role: AssistantRole::Assistant,
294 content,
295 api: Api::from("faux"),
296 provider: Provider::from("debug-provider"),
297 model: "debug-model".into(),
298 response_model: None,
299 response_id: None,
300 diagnostics: None,
301 usage: Usage::default(),
302 stop_reason: StopReason::Stop,
303 error_message: None,
304 timestamp: 0,
305 }
306 }
307
308 #[test]
309 fn debug_context_redacts_user_and_tool_result_secrets() {

Calls

no outgoing calls