Skip to content

Commit

Permalink
format and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mclean-connor committed Dec 17, 2024
1 parent 54715ca commit d05e604
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@
TextBlock,
)

from anthropic.types import MessageParam, TextBlockParam, ImageBlockParam, CacheControlEphemeralParam
from anthropic.types import (
MessageParam,
TextBlockParam,
ImageBlockParam,
CacheControlEphemeralParam,
)
from anthropic.types.tool_result_block_param import ToolResultBlockParam
from anthropic.types.tool_use_block_param import ToolUseBlockParam

Expand Down Expand Up @@ -155,9 +160,7 @@ def messages_to_anthropic_messages(
TextBlockParam(
text=block.text,
type="text",
cache_control=CacheControlEphemeralParam(
type="ephemeral"
),
cache_control=CacheControlEphemeralParam(type="ephemeral"),
)
if "cache_control" in message.additional_kwargs
else TextBlockParam(text=block.text, type="text")
Expand Down

0 comments on commit d05e604

Please sign in to comment.