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:
parent
a1188e039b
commit
6c13d91ad1
1 changed files with 1 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue