Skip to content

Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors

Rust

style(llm): format the Anthropic content variants for rustfmt

Vinícius DS Andradeb0888606cd83
diff --git a/crates/ai-memory-llm/src/anthropic.rs b/crates/ai-memory-llm/src/anthropic.rs
index 5bc04d62..d4928e96 100644
--- a/crates/ai-memory-llm/src/anthropic.rs
+++ b/crates/ai-memory-llm/src/anthropic.rs
@@ -210,8 +210,12 @@ struct AnthropicResponse {
#[derive(Debug, Deserialize)]
#[serde(tag = "type", rename_all = "snake_case")]
enum AnthropicContent {
- Text { text: String },
- ToolUse { input: serde_json::Value },
+ Text {
+ text: String,
+ },
+ ToolUse {
+ input: serde_json::Value,
+ },
/// A block this provider does not read, such as `thinking` or
/// `redacted_thinking`. Models that think by default (Opus 5 and later,
/// Sonnet 5 and later, Haiku 5.5, Fable, Mythos), and every model sent