mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-06 06:12:39 +02:00
rm sk agent
This commit is contained in:
parent
a3699128d1
commit
7e9dff545d
5 changed files with 0 additions and 209 deletions
|
|
@ -1,17 +0,0 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# @Desc :
|
||||
import pytest
|
||||
|
||||
from metagpt.roles.sk_agent import SkAgent
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_sk_agent_serdeser():
|
||||
role = SkAgent()
|
||||
ser_role_dict = role.model_dump(exclude={"import_semantic_skill_from_directory", "import_skill"})
|
||||
assert "name" in ser_role_dict
|
||||
assert "planner" in ser_role_dict
|
||||
|
||||
new_role = SkAgent(**ser_role_dict)
|
||||
assert new_role.name == "Sunshine"
|
||||
assert len(new_role.actions) == 1
|
||||
Loading…
Add table
Add a link
Reference in a new issue