1. Add the following tools:
* Google Finance
- get_stock_summary
- get_stock_historical_data
* Google Flights
- search_roundtrip_flights
- search_one_way_flights
* Google Hotels
- search_hotels
2. Add some common helper functions for serpAPI tools.
13 lines
244 B
Python
13 lines
244 B
Python
import pytest
|
|
|
|
|
|
class DummyContext:
|
|
def get_secret(self, key: str) -> str | None:
|
|
if key.lower() == "serp_api_key":
|
|
return "dummy_key"
|
|
return None
|
|
|
|
|
|
@pytest.fixture
|
|
def dummy_context():
|
|
return DummyContext()
|