fix(types): make FetchTool fetch_tool_name and litellm_params optional

Fix MyPy errors in fetch_tool_management.py where FetchTool(**data)
was used without guaranteed fetch_tool_name and litellm_params keys.
Making fields optional eliminates [typeddict-item] errors.
This commit is contained in:
Thomas Menard 2026-05-03 23:51:16 +02:00
parent b4a52179e2
commit 78346a322b

View file

@ -47,8 +47,8 @@ class FetchTool(TypedDict, total=False):
"""
fetch_tool_id: Optional[str]
fetch_tool_name: Required[str]
litellm_params: Required[FetchToolLiteLLMParams]
fetch_tool_name: Optional[str]
litellm_params: Optional[FetchToolLiteLLMParams]
fetch_tool_info: Optional[dict]
created_at: Optional[str]
updated_at: Optional[str]