llama-stack-mirror/llama_stack/providers/inline/eval/meta_reference
Xi Yan 6520baebed
fix: replace eval with json decoding (#1327)
# What does this PR do?

- Using `eval` on server is a security risk
- Replace `eval` with `json.loads`

[//]: # (If resolving an issue, uncomment and update the line below)
[//]: # (Closes #[issue-number])

## Test Plan
```
pytest -v -s --nbval-lax ./llama-stack/docs/notebooks/Llama_Stack_Benchmark_Evals.ipynb 
```
<img width="747" alt="image"
src="https://github.com/user-attachments/assets/7aff3d95-0b12-4394-b9d0-aeff791eee38"
/>


[//]: # (## Documentation)
2025-02-28 11:10:45 -08:00
..
__init__.py [Agentic Eval] add ability to run agents generation (#469) 2024-11-18 11:43:03 -08:00
config.py Add ability to query and export spans to dataset (#574) 2024-12-05 21:07:30 -08:00
eval.py fix: replace eval with json decoding (#1327) 2025-02-28 11:10:45 -08:00