Skip to content

Commit 989560a

Browse files
author
yh 林
committed
add comments
1 parent df2b175 commit 989560a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

camel/utils/tool_cost_calculator.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,12 @@ def __init__(self, token_counter: Optional[BaseTokenCounter] = None):
8282
def _initialize_default_profiles(self) -> Dict[str, ToolCostProfile]:
8383
"""Initialize default cost profiles for common tool types."""
8484
return {
85-
# Search tools - low cost
8685
"search_google": ToolCostProfile(
8786
category=ToolCategory.SEARCH_API,
87+
# base_tokens: tools naturally consume some tokens
88+
# for each query.
89+
# Here are estimated values for base_tokens.
90+
# May need more precise values.
8891
base_tokens=50,
8992
),
9093
"search_bing": ToolCostProfile(

0 commit comments

Comments
 (0)