mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-27 01:36:29 +02:00
feat: +software_development_intent_detect
This commit is contained in:
parent
a7b4af738a
commit
3e69cd2bd7
4 changed files with 78 additions and 16 deletions
|
|
@ -70,6 +70,9 @@ async def test_light_intent_detect(content: str, context):
|
|||
messages = [Message.model_validate(i) for i in json.loads(content)]
|
||||
rsp = await action.run(messages)
|
||||
assert isinstance(rsp, Message)
|
||||
assert action._dialog_intentions
|
||||
assert action._intent_to_sops
|
||||
assert action.result
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
|
|||
|
|
@ -24,9 +24,9 @@ async def test_intent_detect():
|
|||
async def test_software_develop_intent_detect():
|
||||
messages = [Message.model_validate(i) for i in DEMO_CONTENT]
|
||||
result = await software_development_intent_detect(messages)
|
||||
assert isinstance(result, list)
|
||||
assert isinstance(result, IntentDetectResult)
|
||||
assert result
|
||||
logger.info(f"dialog:{DEMO_CONTENT}\nresult:{result}")
|
||||
logger.info(f"dialog:{DEMO_CONTENT}\nresult:{result.model_dump_json()}")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue