Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,8 @@ from google.adk.agents import LlmAgent
|
|
7 |
from google.genai import types
|
8 |
from typing import Dict, Any
|
9 |
from google.adk.models.lite_llm import LiteLlm
|
10 |
-
|
|
|
11 |
|
12 |
#download_files_from_drive_tool = FunctionTool(func=download_files_from_drive)
|
13 |
# --- Definici贸n de Mod
|
@@ -130,8 +131,10 @@ def validar_plan_de_afiliado(plan: str, practica: str) -> Dict[str, Any]:
|
|
130 |
}
|
131 |
|
132 |
APP_NAME = "predoc_app"
|
133 |
-
|
134 |
-
|
|
|
|
|
135 |
|
136 |
|
137 |
root_agent = LlmAgent(
|
@@ -147,7 +150,6 @@ root_agent = LlmAgent(
|
|
147 |
)
|
148 |
|
149 |
session_service = InMemorySessionService()
|
150 |
-
import asyncio
|
151 |
|
152 |
async def initialize():
|
153 |
global session
|
|
|
7 |
from google.genai import types
|
8 |
from typing import Dict, Any
|
9 |
from google.adk.models.lite_llm import LiteLlm
|
10 |
+
import uuid
|
11 |
+
import asyncio
|
12 |
|
13 |
#download_files_from_drive_tool = FunctionTool(func=download_files_from_drive)
|
14 |
# --- Definici贸n de Mod
|
|
|
131 |
}
|
132 |
|
133 |
APP_NAME = "predoc_app"
|
134 |
+
|
135 |
+
USER_ID = str(uuid.uuid4())
|
136 |
+
SESSION_ID = str(uuid.uuid4())
|
137 |
+
|
138 |
|
139 |
|
140 |
root_agent = LlmAgent(
|
|
|
150 |
)
|
151 |
|
152 |
session_service = InMemorySessionService()
|
|
|
153 |
|
154 |
async def initialize():
|
155 |
global session
|