Everything you need to build, deploy, and manage reasoning agents.
LogicCycle AI is a reasoning-based AI agentic workflow platform. It enables you to build AI agents that think in structured logic loops — retrieving context, reasoning through multi-step chains, validating outputs, and self-correcting when confidence thresholds aren't met.
Unlike traditional prompt-and-response AI, LogicCycle agents operate in cycles: iterative reasoning passes that converge on deterministic, auditable outputs.
Get your first logic cycle running in under 5 minutes.
pip install logiccycle
from logiccycle import LogicEngine
engine = LogicEngine(
model="gpt-4-turbo",
grounding="rag",
max_iterations=5
)
from logiccycle import Agent, Cycle
cycle = Cycle(
name="document-analysis",
convergence_threshold=0.95
)
agent = Agent(engine=engine, cycle=cycle)
result = agent.run(
task="Summarize key risks in this contract",
context=my_documents
)
print(result.output)
print(result.trace) # Full reasoning trace
The Logic Engine is the reasoning core. It takes an input task and context, decomposes the problem into logical steps using chain-of-thought prompting, and validates each inference before proceeding. It supports RAG-based grounding for factual accuracy.
A Cycle defines the iterative behavior of an agent. Each cycle pass refines the output. You configure convergence thresholds, maximum iterations, and exit conditions. When confidence drops below threshold, the agent automatically enters a self-correction loop.
An Agent combines an Engine and a Cycle. It's the top-level abstraction you deploy. Agents can be composed into pipelines, monitored via the Governance dashboard, and versioned for reproducibility.
The Logic Engine supports multiple reasoning strategies:
engine = LogicEngine(
model="gpt-4-turbo",
strategy="tree-of-thought",
grounding="rag",
vector_store="pinecone",
max_branches=4
)
The Cycle Orchestrator provides a visual interface for defining agent logic flows. You can also define cycles programmatically:
from logiccycle import Cycle, Condition
cycle = Cycle(
name="risk-assessment",
convergence_threshold=0.95,
max_iterations=10,
exit_conditions=[
Condition.confidence_above(0.95),
Condition.max_iterations(10),
Condition.no_drift(window=3)
]
)
Every logic cycle produces a full audit trail. Access traces programmatically or through the dashboard:
result = agent.run(task="...", context=docs)
for step in result.trace.steps:
print(f"[{step.timestamp}] {step.action}: {step.detail}")
print(f" Confidence: {step.confidence}")
print(f" Grounded: {step.grounded}")
LogicCycle AI integrates with your existing stack: