Skip to main content

📚 ICE V3 API Reference

This is the definitive technical reference for the ICE V3.0.0 SDK. All configurations are type-safe and validated via Pydantic.

1. Core Classes​

ice.Client​

The primary interface for ICE. Recommended for production.

Constructor:

  • tenant_id (str): Unique identifier for the tenant.
  • client_budget (Optional[CognitiveBudget]): Instance-level execution budget configurations.
  • pre_query_hooks (Optional[List[Callable]]): Async functions to run before a query.
  • post_query_hooks (Optional[List[Callable]]): Async functions to run after a query.
  • custom_headers (Optional[Dict[str, str]]): Headers for outbound proxy calls.

Methods:

  • await .ingest(source, config): Voxelizes data from a URI.
  • await .query(prompt, model, config): Executes an LLM turn with context.

2. Configuration Models (Type-Safe)​

ice.CognitiveBudget / ice.QueryConfig / ice.IngestConfig​

These models share the same schema. Use QueryConfig or IngestConfig for per-request overrides.

FieldTypeDefaultDescription
post_limitint8192Max tokens for the final LLM prompt.
pre_limitint5Max "needles" retrieved from memory.
max_vram_mbint8192Hard VRAM cap for the native kernel.
fidelityfloat0.5Ingestion resolution (0.0 to 1.0).
physics_enginestr"native"native (RCC) or standard.

3. Global Functions​

  • ice.set_defaults(**kwargs): Sets application-wide defaults for the CognitiveBudget.
  • await ice.ingest(...): Top-level convenience ingest (uses default singleton).
  • await ice.query(...): Top-level convenience query (uses default singleton).

4. Security & Environment​

VariableDescription
ICE_LICENSE_JWTRequired. Your hardware-bound JWT license.
ICE_TELEMETRY_SINKDestination for crash reports (internal).
ICE_AUDIT_LOG_SINKDestination for your operational logs (S3/File).