fix(agent): fix tool schemas not retrieved on pyinstaller binary and validate tool call args
This commit is contained in:
0
strix/utils/__init__.py
Normal file
0
strix/utils/__init__.py
Normal file
13
strix/utils/resource_paths.py
Normal file
13
strix/utils/resource_paths.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
def get_strix_resource_path(*parts: str) -> Path:
|
||||
frozen_base = getattr(sys, "_MEIPASS", None)
|
||||
if frozen_base:
|
||||
base = Path(frozen_base) / "strix"
|
||||
if base.exists():
|
||||
return base.joinpath(*parts)
|
||||
|
||||
base = Path(__file__).resolve().parent.parent
|
||||
return base.joinpath(*parts)
|
||||
Reference in New Issue
Block a user