This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json | |
| import re | |
| import os | |
| from fastapi import FastAPI, HTTPException, Query | |
| from fastapi.responses import StreamingResponse | |
| from fastapi.middleware.cors import CORSMiddleware | |
| from google.adk.sessions import DatabaseSessionService, InMemorySessionService | |
| from google.adk.runners import Runner | |
| from user_agent.agent import root_agent | |
| from google.genai import types |