Snowlgobe Connect SDK
The Snowglobe Connect SDK helps you connect your AI agents to Snowglobe. It sends simulated user messages to your LLM-based application during experiments. Your application should process these messages and return a response, enabling simulated conversations and custom code based risk assessment.
Installation
# Install client
pip install snowglobe
If using uv, set the --prerelease=allow flag
uv pip install --prerelease=allow snowglobe
snowglobe-connect commands
snowglobe-connect auth # Sets up your API key
snowglobe-connect init # Initializes a new agent connection and creates an agent wrapper file
snowglobe-connect test # Tests your agent connection
snowglobe-connect start # Starts the process of processing simulated user messages
snowglobe-connect --help
When using one of our specific preview environments in .snowgloberc one can override our server's URL with:
CONTROL_PLANE_URL=
Sample custom llm usage in agent wrapper file
Each agent wrapper file resides in the root directory of your project, and is named after the agent (e.g. My Agent Name becomes my_agent_name.py).
from snowglobe.client import CompletionRequest, CompletionFunctionOutputs
from openai import OpenAI
import os
client = OpenAI(api_key=os.getenv("SNOWGLOBE_API_KEY"))
def completion_fn(request: CompletionRequest) -> CompletionFunctionOutputs:
"""
Process a scenario request from Snowglobe.
This function is called by the Snowglobe client to process requests. It should return a
CompletionFunctionOutputs object with the response content.
Example CompletionRequest:
CompletionRequest(
messages=[
SnowglobeMessage(role="user", content="Hello, how are you?", snowglobe_data=None),
]
)
Example CompletionFunctionOutputs:
CompletionFunctionOutputs(response="This is a string response from your application")
Args:
request (CompletionRequest): The request object containing the messages.
Returns:
CompletionFunctionOutputs: The response object with the generated content.
"""
# Process the request using the messages. Example:
messages = request.to_openai_messages()
response = client.chat.completions.create(
model="gpt-4o-mini",
messages=messages
)
return CompletionFunctionOutputs(response=response.choices[0].message.content)
Operator tuning
The wrapper exposes ~12 environment variables for concurrency, inbound rate limits, polling cadence, and HTTP retry. Defaults are tuned for low-to-medium throughput; raise them together (not individually) for higher load.
See .snowglobe/TUNING.md for the full knob reference, recipes, and the ratio caveat between dispatch concurrency and the inbound rate limiter.
Tracing & Telemetry
See our telemetry instrumentation extensions for snowglobe to help you track insightful traces from our agent:
Metadata
Release files for snowglobe-mirror 0.9.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| snowglobe_mirror-0.9.12.tar.gz | 140.8 kB | Without provenance | Details for snowglobe_mirror-0.9.12.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| snowglobe_mirror-0.9.12-py3-none-any.whl | Python 3 | none | any | Details for snowglobe_mirror-0.9.12-py3-none-any.whl |
Total release size: 242.8 kB
Release files / snowglobe_mirror-0.9.12.tar.gz
| Download URL | snowglobe_mirror-0.9.12.tar.gz |
|---|---|
| Size | 140.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
021e0c1262b10f7698226ecb75a306e378439da6c31aca8c80601ca4b192a554
|
|
BLAKE2b-256 checksum How to use checksums |
25b184fe67df540ced3207a6f5326d6d0c865ea518b684c06768835df5d5f316
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / snowglobe_mirror-0.9.12-py3-none-any.whl
| Download URL | snowglobe_mirror-0.9.12-py3-none-any.whl |
|---|---|
| Size | 102.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fad981607bb12f9a7a23738e8419ba8edcd28eb71b45b7bebf00a696b6d2fd0a
|
|
BLAKE2b-256 checksum How to use checksums |
7b2d3814a8661506c57874d05fec319ef305ed5f7399e69d948950c81cec468e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Security for snowglobe-mirror 0.9.12
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.