refactor: return tool description directly instead of using f-string (#8557)

* refactor: simplify build_description function to return component description directly

* fix: ensure component description returns an empty string if None
This commit is contained in:
Gabriel Luiz Freitas Almeida 2025-06-24 10:11:11 -03:00 committed by GitHub
commit 6c13d91ad1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -38,7 +38,7 @@ def _get_input_type(input_: InputTypes):
def build_description(component: Component) -> str:
return f"{component.description}"
return component.description or ""
async def send_message_noop(