trading_agent.doctor.checks.searxng_check
¶
Checks that the local SearXNG search server answers JSON searches.
Typical usage example:
result = SearxngCheck('http://127.0.0.1:4001').run()
SearxngCheck
¶
Bases: DoctorCheck
Checks the web search server.
Creates the check.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
base_url
|
str
|
The SearXNG server's address. |
required |
Source code in src/trading_agent/doctor/checks/searxng_check.py
run
¶
Runs one small search and counts the results.
Returns:
| Type | Description |
|---|---|
CheckResult
|
OK when results come back, failed when the server is down or JSON answers are switched off. |