Determine whether 'function_call' according to a special function prefix. For example, the functions defined in "tools_using_demo/tool_register.py" are all "get_xxx" and start with "get_" [Note] This is not a rigorous judgment method, only for reference. :param value: :return
(value: str)
| 513 | |
| 514 | |
| 515 | def contains_custom_function(value: str) -> bool: |
| 516 | """ |
| 517 | Determine whether 'function_call' according to a special function prefix. |
| 518 | |
| 519 | For example, the functions defined in "tools_using_demo/tool_register.py" are all "get_xxx" and start with "get_" |
| 520 | |
| 521 | [Note] This is not a rigorous judgment method, only for reference. |
| 522 | |
| 523 | :param value: |
| 524 | :return: |
| 525 | """ |
| 526 | return value and 'get_' in value |
| 527 | |
| 528 | |
| 529 | if __name__ == "__main__": |
no outgoing calls
no test coverage detected