Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions test/agentchat/contrib/chat_with_teachable_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ def create_teachable_agent(reset_db=False):
# See https://microsoft.github.io/autogen/docs/FAQ#set-your-api-endpoints
# and OAI_CONFIG_LIST_sample
config_list = config_list_from_json(env_or_file=OAI_CONFIG_LIST, filter_dict=filter_dict, file_location=KEY_LOC)
assert len(config_list) > 0

teachable_agent = TeachableAgent(
name="teachableagent",
llm_config={"config_list": config_list, "timeout": 120, "cache_seed": cache_seed},
Expand Down
6 changes: 6 additions & 0 deletions test/agentchat/contrib/test_compressible_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
OPENAI_INSTALLED = False


def test_non_empty_config_list():
# Check that the config_list is non-empty, as we expect
assert len(config_list) > 0


@pytest.mark.skipif(
sys.platform in ["darwin", "win32"] or not OPENAI_INSTALLED,
reason="do not run on MacOS or windows or dependency is not installed",
Expand Down Expand Up @@ -200,6 +205,7 @@ def test_mode_terminate():


if __name__ == "__main__":
test_non_empty_config_list()
test_mode_compress()
test_mode_customized()
test_compress_message()
Expand Down
1 change: 1 addition & 0 deletions test/agentchat/contrib/test_gpt_assistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
config_list = autogen.config_list_from_json(
OAI_CONFIG_LIST, file_location=KEY_LOC, filter_dict={"api_type": ["openai"]}
)
assert len(config_list) > 0


def ask_ossinsight(question):
Expand Down
1 change: 1 addition & 0 deletions test/agentchat/contrib/test_qdrant_retrievechat.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def test_retrievechat():
OAI_CONFIG_LIST,
file_location=KEY_LOC,
)
assert len(config_list) > 0

assistant = RetrieveAssistantAgent(
name="assistant",
Expand Down
1 change: 1 addition & 0 deletions test/agentchat/contrib/test_retrievechat.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def test_retrievechat():
OAI_CONFIG_LIST,
file_location=KEY_LOC,
)
assert len(config_list) > 0

assistant = RetrieveAssistantAgent(
name="assistant",
Expand Down
2 changes: 2 additions & 0 deletions test/agentchat/contrib/test_teachable_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ def create_teachable_agent(reset_db=False, verbosity=0):
# See https://microsoft.github.io/autogen/docs/FAQ#set-your-api-endpoints
# and OAI_CONFIG_LIST_sample
config_list = config_list_from_json(env_or_file=OAI_CONFIG_LIST, filter_dict=filter_dict, file_location=KEY_LOC)
assert len(config_list) > 0

teachable_agent = TeachableAgent(
name="teachableagent",
llm_config={"config_list": config_list, "timeout": 120, "cache_seed": cache_seed},
Expand Down