From f45446b82be41b9917e8b91c72c9123dd3e9f51b Mon Sep 17 00:00:00 2001 From: DidierRLopes Date: Sun, 2 Aug 2026 12:15:20 -0400 Subject: [PATCH] Format README code blocks for ruff 0.16 CI lint ruff 0.16 (installed unpinned in CI) now formats Python code blocks inside Markdown files. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01KocxNUyBQT8K8qTduX7Gyu --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9bb01f5..e9d4b5a 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,7 @@ from openbb_ai import ( app = FastAPI() + @app.get("/agents.json") async def agents_json(): return JSONResponse( @@ -60,7 +61,9 @@ async def agents_json(): "name": "My Agent", "description": "This is my agent", "image": f"{AGENT_BASE_URL}/my-agent/logo.png", - "endpoints": {"query": f"{AGENT_BASE_URL}/query"}, # must match the query endpoint below + "endpoints": { + "query": f"{AGENT_BASE_URL}/query" + }, # must match the query endpoint below "features": { "streaming": True, # must be True "widget-dashboard-select": True, # Enable access to priority widgets @@ -70,6 +73,7 @@ async def agents_json(): } ) + @app.get("/query") async def stream(request: QueryRequest): async def execution_loop():