Spaces:
Sleeping
Sleeping
Update pipeline.py
Browse files- pipeline.py +9 -9
pipeline.py
CHANGED
|
@@ -37,15 +37,15 @@ gemini_llm = ChatGoogleGenerativeAI(
|
|
| 37 |
)
|
| 38 |
|
| 39 |
# Initialize ManagedAgent for web search using Gemini
|
| 40 |
-
pydantic_agent = ManagedAgent(
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
)
|
| 49 |
|
| 50 |
class QueryInput(BaseModel):
|
| 51 |
query: str = Field(..., min_length=1, description="The input query string")
|
|
|
|
| 37 |
)
|
| 38 |
|
| 39 |
# Initialize ManagedAgent for web search using Gemini
|
| 40 |
+
# pydantic_agent = ManagedAgent(
|
| 41 |
+
# llm=ChatGoogleGenerativeAI(
|
| 42 |
+
# model="gemini-1.5-pro",
|
| 43 |
+
# temperature=0.5,
|
| 44 |
+
# max_retries=2,
|
| 45 |
+
# google_api_key=os.environ.get("GEMINI_API_KEY"),
|
| 46 |
+
# ),
|
| 47 |
+
# tools=[DuckDuckGoSearchTool()]
|
| 48 |
+
# )
|
| 49 |
|
| 50 |
class QueryInput(BaseModel):
|
| 51 |
query: str = Field(..., min_length=1, description="The input query string")
|