feat: skip empty fields in mcp tool call + improve error handling and response

This commit is contained in:
Siddhant Rai
2025-09-11 19:04:10 +05:30
parent 09b9576eef
commit 641cf5a4c1
8 changed files with 69 additions and 37 deletions

View File

@@ -151,15 +151,8 @@ class GoogleLLM(BaseLLM):
if role == "assistant":
role = "model"
elif role == "system":
continue
elif role == "tool":
continue
elif role not in ["user", "model"]:
logging.warning(
f"GoogleLLM: Converting unsupported role '{role}' to 'user'"
)
role = "user"
role = "model"
parts = []
if role and content is not None: