orchestrata_ultimate.verification.models.grok4_minimax
Reference › orchestrata_ultimate › verification › models › grok4_minimax
GrokMiniMaxModel wraps Grok4 MiniMax, described as fast, iterative and resource-efficient (Spec 035 US-005). It implements the LLMModel protocol from base_model under the name grok4-minimax, with a base URL defaulting to the xAI API host, and declares only fast iteration as a capability. As written, its methods return fixed dictionaries and make no network request; generate_proof returns the proof type exhaustive_search. No module imports it inside the package.
At a glance
| Source | src/orchestrata_ultimate/verification/models/grok4_minimax.py |
| Lines of code | 71 |
| Classes | 1 |
| Functions | 0 |
| Imports (internal) | orchestrata_ultimate.core.base.traces |
| Imported by | none |
| Tests that import it | tests/verification/test_models.py, tests/verification/test_verification_models.py |
Class diagram
Dependency diagram
API
Classes
GrokMiniMaxModel
Decorators: traces(spec='035', story='US-005', reqs=['REQ-035-US-005-004', 'REQ-035-US-005-014', 'REQ-035-US-005-021']) · Line 18
Grok4 MiniMax — fast iterative verification, resource-efficient.
| Method | Signature | Summary |
|---|---|---|
__init__ |
__init__(api_key: str = '', base_url: str = 'https://api.x.ai') -> None |
|
name property |
name() -> str |
|
capabilities property |
capabilities() -> dict[str, bool] |
|
verify |
async verify(constraint: dict[str, Any], context: dict[str, Any]) -> dict[str, Any] |
|
analyze |
async analyze(results: list[dict[str, Any]]) -> dict[str, Any] |
|
generate_proof |
async generate_proof(constraint: dict[str, Any], context: dict[str, Any]) -> dict[str, Any] |
Source
"""Grok4 MiniMax model wrapper for verification."""
# Spec: 035 - Verification Agent
import logging
from typing import Any
from orchestrata_ultimate.core.base.traces import traces
logger = logging.getLogger(__name__)
@traces(
spec="035",
story="US-005",
reqs=["REQ-035-US-005-004", "REQ-035-US-005-014", "REQ-035-US-005-021"],
)
class GrokMiniMaxModel:
"""Grok4 MiniMax — fast iterative verification, resource-efficient."""
def __init__(self, api_key: str = "", base_url: str = "https://api.x.ai") -> None:
self._api_key = api_key
self._base_url = base_url
@property
@traces(
spec="035", story="US-005", reqs=["REQ-035-US-005-004", "REQ-035-US-005-014"]
)
def name(self) -> str:
return "grok4-minimax"
@property
@traces(
spec="035", story="US-005", reqs=["REQ-035-US-005-004", "REQ-035-US-005-014"]
)
def capabilities(self) -> dict[str, bool]:
return {
"reasoning": False,
"formal_verification": False,
"multilingual": False,
"fast_iteration": True,
}
@traces(spec="035", story="US-005", reqs=["REQ-035-US-005-021"])
async def verify(
self, constraint: dict[str, Any], context: dict[str, Any]
) -> dict[str, Any]:
return {
"model": self.name,
"status": "verified",
"constraint_id": constraint.get("id", ""),
}
@traces(
spec="035", story="US-005", reqs=["REQ-035-US-005-004", "REQ-035-US-005-014"]
)
async def analyze(self, results: list[dict[str, Any]]) -> dict[str, Any]:
satisfied = sum(1 for r in results if r.get("status") == "satisfied")
return {"model": self.name, "total": len(results), "satisfied": satisfied}
@traces(
spec="035", story="US-005", reqs=["REQ-035-US-005-004", "REQ-035-US-005-014"]
)
async def generate_proof(
self, constraint: dict[str, Any], context: dict[str, Any]
) -> dict[str, Any]:
return {
"model": self.name,
"proof_type": "exhaustive_search",
"constraint_id": constraint.get("id", ""),
}