Saltar al contenido principal
Beta sin calibrar
StrikeStrike

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 strike

Dependencies

Core install pulls only httpx and pydantic. Optional adapters are extras:

ExtraPurpose
langgraphstrike_decision_node, strike_router
langchainstrike_runnable, strike_tool, callback_handler()
crewaistrike_crewai_tool()
agentsstrike_function_tool() for the OpenAI Agents SDK
allAll of the above
bash
pip install 'strikeflow[langgraph]'

Configuration

Environment variables (read by StrikeModel and tracing):

VariableDefaultRole
STRIKE_API_KEYemptyBearer token for https://strike-ai.eu
STRIKE_API_URLhttps://strike-ai.euAPI base URL (no trailing path)
STRIKE_PROJECTemptyTrace batch project name
STRIKEFLOW_TRACING1Set 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: StrikeError and 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
strikeflow package: Strike docs