Programmatic API
Use core.run.run_agent() from Python backends, scripts, or a future hosted API.
from core.run import run_agent
result = run_agent("Draft a LinkedIn post about our product launch")
print(result.reply)
print(result.intent) # posting | complaint | funnel
AgentResult
reply: assistant text for this turnintent: routed agent namemessages: full LangChain message history for multi-turn chat
CLI equivalent
loopmark-agent chat
loopmark-agent stats
The CLI wraps the same graph via main.py. Hosted REST endpoints are tracked separately for the paid layer.