strikeflow package
Install paths, imports, configuration, and optional extras.
The Python package is strikeflow. Import it as strike in application code:
Python
import strikeflow as strikeDependencies
Core install pulls only httpx and pydantic. Optional adapters are extras:
| Extra | Purpose |
|---|---|
langgraph | strike_decision_node, strike_router |
langchain | strike_runnable, strike_tool, callback_handler() |
crewai | strike_crewai_tool() |
agents | strike_function_tool() for the OpenAI Agents SDK |
all | All of the above |
bash
pip install 'strikeflow[langgraph]'Configuration
Environment variables (read by StrikeModel and tracing):
| Variable | Default | Role |
|---|---|---|
STRIKE_API_KEY | empty | Bearer token for https://strike-ai.eu |
STRIKE_API_URL | https://strike-ai.eu | API base URL (no trailing path) |
STRIKE_PROJECT | empty | Trace batch project name |
STRIKEFLOW_TRACING | 1 | Set to 0 to disable trace export |
Programmatic setup:
Python
import strikeflow as strike
strike.configure(
api_key="...", # or rely on STRIKE_API_KEY
project="support-bot",
min_confidence=0.7,
timeout=30.0,
max_retries=2,
)configure returns the shared Strike engine used by strike.decide and strike.strike_decision_tool().
Public API surface (core)
- Decisions:
decide,adecide,decides,Strike,Choice,Score,YesNo,DecisionResult - Tools:
strike_decision_tool,StrikeDecisionTool - Tracing:
trace,flush,get_tracer,set_tracer,TraceConfig,Tracer - Context:
agent_context,build_context - Graph runtime (no framework):
Graph,CompiledGraph,START,END - Errors:
StrikeErrorand subclasses (see Errors)
LangGraph helpers are lazy-imported: strike.strike_decision_node, strike.strike_router (requires strikeflow[langgraph]).
Version
Python
import strikeflow
print(strikeflow.__version__) # e.g. 0.1.0a1