feat: add leo custom tier for personalized tool selection
- Add 'leo' tier as standalone (non-cumulative) tier - Configure leo tier with curated tools for gmail, drive, docs, slides - Updated tool_tier_loader to support standalone tiers - Removed deprecated tools from leo tier (format_text_style, create_list, remove_list_formatting) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -13,7 +13,7 @@ import yaml
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
TierLevel = Literal["core", "extended", "complete"]
|
||||
TierLevel = Literal["core", "extended", "complete", "leo"]
|
||||
|
||||
|
||||
class ToolTierLoader:
|
||||
@@ -109,6 +109,15 @@ class ToolTierLoader:
|
||||
Returns:
|
||||
List of tool names up to the specified tier level
|
||||
"""
|
||||
# Special handling for standalone tiers (e.g., "leo")
|
||||
# These tiers are not cumulative and contain their own tool set
|
||||
standalone_tiers = ["leo"]
|
||||
|
||||
if tier in standalone_tiers:
|
||||
# For standalone tiers, return only the tools in that tier
|
||||
return self.get_tools_for_tier(tier, services)
|
||||
|
||||
# For cumulative tiers (core, extended, complete), accumulate tools
|
||||
tier_order = ["core", "extended", "complete"]
|
||||
max_tier_index = tier_order.index(tier)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user