mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-14 15:25:17 +02:00
update env api schema
This commit is contained in:
parent
52a94470db
commit
9f4ee42079
4 changed files with 44 additions and 9 deletions
|
|
@ -40,6 +40,10 @@ async def test_ext_env():
|
|||
assert len(env_read_api_registry) > 0
|
||||
assert len(env_write_api_registry) > 0
|
||||
|
||||
apis = env.get_all_available_apis(mode="read")
|
||||
assert len(apis) > 0
|
||||
assert len(apis["read_api"]) == 3
|
||||
|
||||
_ = await env.step(EnvAPIAbstract(api_name="write_api", kwargs={"a": 5, "b": 10}))
|
||||
assert env.value == 15
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue