update examples

This commit is contained in:
yzlin 2024-03-12 16:11:57 +08:00
parent 38f21137ec
commit a680a1a82f
11 changed files with 32 additions and 16 deletions

View file

@ -14,7 +14,6 @@ import requests
from aiohttp import ClientSession
from PIL import Image, PngImagePlugin
#
from metagpt.const import SD_OUTPUT_FILE_REPO, SOURCE_ROOT
from metagpt.logs import logger
from metagpt.tools.tool_registry import register_tool

View file

@ -57,8 +57,7 @@ class RecommendTool(Action):
class ToolRecommender(BaseModel):
"""
The default ToolRecommender:
1. Recall: If plan exists, use exact match between task type and tool type to recall tools;
If plan doesn't exist (e.g. we use ReAct), return all user-specified tools;
1. Recall: To be implemented in subclasses. Recall tools based on the given context and plan.
2. Rank: Use LLM to select final candidates from recalled set.
"""