Phillnet-2 / CodeGuidanceSystem /example_usage.py
ayjays132's picture
Upload 478 files
101858b verified
from pathlib import Path
from guidance_sidecar import GuidanceEngine
def main():
bundle_dir = Path(__file__).resolve().parent
engine = GuidanceEngine.from_bundle(bundle_dir)
result = engine.advise(
task="Add validation to a Python config loader without changing the public API.",
context="config.py defines a Config class with path defaults.",
)
print(result)
if __name__ == "__main__":
main()