mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-30 14:35:17 +02:00
update: 软件公司重构
This commit is contained in:
parent
3f0227a25a
commit
f9b0262c55
5 changed files with 281 additions and 42 deletions
|
|
@ -209,7 +209,7 @@ class SearchEnhancedQA(Action):
|
|||
list[str]: Summaries of relevant web content.
|
||||
"""
|
||||
|
||||
relevant_urls = await self._collect_relevant_links(query)
|
||||
relevant_urls = await self.collect_relevant_links(query)
|
||||
await self._reporter.async_report({"type": "search", "stage": "searching", "urls": relevant_urls})
|
||||
if not relevant_urls:
|
||||
logger.warning(f"No relevant URLs found for query: {query}")
|
||||
|
|
@ -226,7 +226,7 @@ class SearchEnhancedQA(Action):
|
|||
|
||||
return citations
|
||||
|
||||
async def _collect_relevant_links(self, query: str) -> list[str]:
|
||||
async def collect_relevant_links(self, query: str) -> list[str]:
|
||||
"""Search and rank URLs relevant to the query.
|
||||
|
||||
Args:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue