mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-15 11:02:36 +02:00
fixbug: type error
This commit is contained in:
parent
eec69e64a3
commit
ef3563500f
3 changed files with 7 additions and 23 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import pytest
|
||||
|
||||
from metagpt.actions.di.detect_intent import DetectIntent
|
||||
from metagpt.schema import Message
|
||||
|
||||
SOFTWARE_DEV_REQ1 = """
|
||||
I'd like to create a personalized website that features the 'Game of Life' simulation.
|
||||
|
|
@ -51,5 +52,5 @@ git clone 'https://github.com/spec-first/connexion' and format to MetaGPT projec
|
|||
)
|
||||
async def test_detect_intent(requirement, expected_intent_type):
|
||||
di = DetectIntent()
|
||||
_, intent_type = await di.run(requirement)
|
||||
_, intent_type = await di.run([Message(role="user", content=requirement)])
|
||||
assert intent_type == expected_intent_type
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue