Is Path Like • AI Agent SDK
is_path_like: Check if a string looks like a file path. O(1) operation.
is_path_like
Function
</div>
This function is defined in the parse_utils module.
Check if a string looks like a file path. O(1) operation.
Signature
def is_path_like(value: str) -> boolParameters
ParamField
strString to check
Returns
ResponseField
boolTrue if string looks like a path
Usage
>>> is_path_like("docs/")
True
>>> is_path_like("./data.pdf")
True
>>> is_path_like("verbose")
FalseUses
isalphavalue.rsplit
Source
View on GitHubpraisonaiagents/config/parse_utils.py at line 53