Skip to content

Commit 087b9ac

Browse files
Copilothiyouga
andcommitted
Address code review comments - improve documentation
Co-authored-by: hiyouga <16256802+hiyouga@users.noreply.github.com>
1 parent bfb9047 commit 087b9ac

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src_py/agenthub/claude4_5/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ def transform_uni_config_to_model_config(self, config: UniConfig) -> dict[str, A
7474
Transform universal configuration to Claude-specific configuration.
7575
7676
Args:
77-
config: Universal configuration dict
77+
config: Universal configuration dict. If prompt_cache is not specified,
78+
defaults to PromptCache.ENABLE for Claude models.
7879
7980
Returns:
8081
Claude configuration dictionary

src_py/tests/test_prompt_cache_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121

2222
def test_prompt_cache_enable_config():
23-
"""Test that enable mode adds cache_control with 5m TTL."""
23+
"""Test that enable mode adds cache_control without explicit TTL (defaults to 5m)."""
2424
client = Claude4_5Client(model="claude-sonnet-4-5-20250929", api_key="dummy")
2525
config = {
2626
"system_prompt": "You are a helpful assistant.",

0 commit comments

Comments
 (0)