Saltar para o conteúdo principal
Beta · sem calibração
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
crewaistrike_crewai_tool()
agentsstrike_function_tool() for the OpenAI Agents SDK
allAll optional extras
bash
pip install 'strikeflow[crewai]'

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: Graph, CompiledGraph, START, END
  • Routing helpers (strikeflow.routing): strike_decision_node, strike_router
  • Errors: StrikeError and subclasses (see Errors)

Version

Python
import strikeflow
print(strikeflow.__version__)  # e.g. 0.1.0a1
strikeflow package: Strike docs