mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-02 14:45:17 +02:00
refactor: think
This commit is contained in:
parent
80b934d41a
commit
fa0b0b1511
1 changed files with 1 additions and 4 deletions
|
|
@ -57,10 +57,7 @@ class Assistant(Role):
|
|||
prompt = f"Refer to this sentence:\n {last_talk}\n"
|
||||
skills = self.skills.get_skill_list()
|
||||
for desc, name in skills.items():
|
||||
prompt += (
|
||||
f"If want you to do {desc}, return `[SKILL]: {name}` brief and clear. For instance: [SKILL]: {name}\n"
|
||||
)
|
||||
prompt += "If the user's intent is unclear, return `[TALK]: {talk}` brief and clear. For instance: [TALK]: distribute watermelon\n"
|
||||
prompt += f"If explicitly want you to do {desc}, return `[SKILL]: {name}` brief and clear. For instance: [SKILL]: {name}\n"
|
||||
prompt += "Otherwise, return `[TALK]: {talk}` brief and clear. For instance: [TALK]: distribute watermelon"
|
||||
logger.info(prompt)
|
||||
rsp = await self._llm.aask(prompt, [])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue