Let Datagoat answer a decision step in your agent, with your AI as the fallback.
pip install datagoat-decide==0.2.0 Copy PIP instructions
pip install datagoat-decide # or: uv add datagoat-decide export DATAGOAT_API_KEY=dg_live_... Wrap a LangGraph node from datagoat_decide import Datagoat dg = Datagoat() # reads DATAGOAT_API_KEY and DATAGOAT_BASE_URL (your data1 deployment URL) graph.add_node("qualify", dg.wrap("sdr.qualify", qualify_lead, input_key="lead", output_key="qualification", case_id="lead_id")) Valid answer → Datagoat's answer goes into state["qualification"], your node does not run. No valid answer → your fallback (set in the dashboard): your node runs as before, or the case goes to a person, or no decision (None). Datagoat unreachable or slow → your node runs. The SDK never blocks your agent past its budget (timeout, default 2.5 s). Every call carries an idempotency key, so a call that timed out after Datagoat logged it is replayed off your agent's path and still graded. Any function @dg.point("cs.risk_tier", case_id=lambda acct: acct["account_id"]) def risk_tier(acct: dict) -> dict: ... Outcomes dg.outcomes("sdr.qualify", [{"case_id": "L-20419", "value": 1}]) Map your agent datagoat-decide map my_agent.graph:graph --name "SDR agent" Project links Homepage Repository Key dates PyPI data Data sourced directly from PyPI's database. Released: Oct 14, 2026 Newer release available (0.2.1) 1 maintainer PyPI data Data sourced directly from PyPI's database. dagoat187 License expression MIT View SPDX License List
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.




