File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
anthropic-client/src/main/scala/io/cequence/openaiscala/anthropic Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 11package io .cequence .openaiscala .anthropic .domain .tools
22
33/**
4- * Memory tool for persisting information across conversations. Name is always "memory". Type is "memory_20250818".
4+ * Memory tool for persisting information across conversations. Name is always "memory". Type
5+ * is "memory_20250818".
56 */
67case class MemoryTool () extends Tool {
78 override val name : String = " memory"
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ trait Anthropic
2222 protected val logger : Logger = Logger (LoggerFactory .getLogger(this .getClass))
2323
2424 protected val skillHeaders : Seq [(String , String )] = Seq (
25- (" anthropic-beta" , " skills-2025-10-02" ),
25+ (" anthropic-beta" , " skills-2025-10-02" )
2626// ("anthropic-beta", "code-execution-2025-08-25"),
2727// ("anthropic-beta", "files-api-2025-04-14")
2828 )
Original file line number Diff line number Diff line change @@ -103,7 +103,8 @@ package object impl extends AnthropicServiceConsts {
103103 case ((acc, userMessagesToCacheCount), message) =>
104104 message match {
105105 case Message .UserMessage (contentString, _) =>
106- val newCacheControl = if (userMessagesToCacheCount > 0 ) Some (Ephemeral ()) else None
106+ val newCacheControl =
107+ if (userMessagesToCacheCount > 0 ) Some (Ephemeral ()) else None
107108 (
108109 acc :+ Message .UserMessage (contentString, newCacheControl),
109110 userMessagesToCacheCount - newCacheControl.map(_ => 1 ).getOrElse(0 )
You can’t perform that action at this time.
0 commit comments