Files
FusionAGI/examples/dvadasa_api_example.py
defiQUG c052b07662
Some checks failed
Tests / test (3.10) (push) Has been cancelled
Tests / test (3.11) (push) Has been cancelled
Tests / test (3.12) (push) Has been cancelled
Tests / lint (push) Has been cancelled
Tests / docker (push) Has been cancelled
Initial commit: add .gitignore and README
2026-02-09 21:51:42 -08:00

21 lines
659 B
Python

"""Example: run Dvādaśa API with uvicorn."""
if __name__ == "__main__":
from fusionagi.api import create_app
from fusionagi.adapters import StubAdapter
# Use stub adapter for testing without API keys
stub = StubAdapter(structured_response={
"head_id": "logic",
"summary": "Stub analysis.",
"claims": [{"claim_text": "Test claim", "confidence": 0.9, "evidence": [], "assumptions": []}],
"risks": [],
"questions": [],
"recommended_actions": ["Proceed"],
"tone_guidance": "",
})
app = create_app(adapter=stub)
import uvicorn
uvicorn.run(app, host="0.0.0.0", port=8000)