Python Snippets
A core capability of AI GO! is the ability to tailor evaluations and integrations to your specific use case and infrastructure — for advanced scenarios, custom logic can be expressed as Python snippets.
These snippets cover extension points such as synthesizers, scorers, metrics, solvers, and custom model inference, and are executed server-side inside a fixed Python runtime (Python 3.11.14).
Only the libraries pinned in the requirements.txt below are available to import; any other dependency is not resolvable at execution time. You can install the same requirements.txt locally (e.g. uv pip install -r requirements.txt) to reproduce the server environment and debug your snippets.
anthropic==0.80.0
boto3==1.38.38
botocore==1.38.46
httpcore==1.0.9
httptools==0.7.1
httpx==0.28.1
Jinja2==3.1.6
jiter==0.14.0
latticeflow-assessment
latticeflow-bindings-assessment
latticeflow-bindings-open-responses
openai==2.8.1
orjson==3.11.6
pandas==2.2.3
pydantic==2.13.4
pydantic_core==2.46.4
PyYAML==6.0.3
requests==2.33.1
requests-toolbelt==1.0.0
scikit-learn==1.8.0
scipy==1.12.0
tenacity==9.1.2
together==2.9.0
urllib3==2.7.0
websockets==16.0
xxhash==3.6.0