MCPcopy Create free account
hub / github.com/SkyworkAI/DeepResearchAgent / test_search

Function test_search

tests/test_models.py:322–340  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

320 logger.info(f"| --------------------------------------------------")
321
322async def test_search():
323 logger.info(f"| --------------------------------------------------")
324 logger.info(f"| Testing search with different models")
325 models = [
326 "openrouter/gemini-3-flash-preview-plugins"
327 ]
328
329 messages = [
330 SystemMessage(content="You are a helpful assistant."),
331 HumanMessage(content=[
332 ContentPartText(text="Please search the web for the latest news about the AAPL stock."),
333 ]),
334 ]
335
336 for model in models:
337 logger.info(f"| Testing {model}")
338 response = await model_manager(model=model, messages=messages)
339 logger.info(f"| {model} Response: {json.dumps(response.model_dump(), indent=4)}")
340 logger.info(f"| --------------------------------------------------")
341
342def parse_args():
343 parser = argparse.ArgumentParser(description='main')

Callers

nothing calls this directly

Calls 5

SystemMessageClass · 0.90
HumanMessageClass · 0.90
ContentPartTextClass · 0.90
infoMethod · 0.45
model_dumpMethod · 0.45

Tested by

no test coverage detected