Skip to content

A programming framework for agentic AI

string to array (#1086)

Chi Wang876063134947
diff --git a/test/autogen/test_assistant_agent.py b/test/autogen/test_assistant_agent.py
index 46bacb884..79e73c02b 100644
--- a/test/autogen/test_assistant_agent.py
+++ b/test/autogen/test_assistant_agent.py
@@ -11,7 +11,7 @@ def test_gpt35(human_input_mode="NEVER", max_consecutive_auto_reply=5):
import openai
except ImportError:
return
- config_list = oai.config_list_from_models(key_file_path=KEY_LOC, model_list=["gpt-3.5-turbo-0613"])
+ config_list = oai.config_list_from_models(key_file_path=KEY_LOC, model_list=["gpt-3.5-turbo-0613"], exclude="aoai")
assistant = AssistantAgent(
"coding_agent",
# request_timeout=600,
diff --git a/test/autogen/test_function_call.py b/test/autogen/test_function_call.py
index 9a86ae941..3b864b0da 100644
--- a/test/autogen/test_function_call.py
+++ b/test/autogen/test_function_call.py
@@ -21,7 +21,8 @@ def test_eval_math_responses():
"type": "object",
"properties": {
"responses": {
- "type": "string",
+ "type": "array",
+ "items": {"type": "string"},
"description": "The responses in a list",
},
"solution": {
@@ -51,8 +52,8 @@ def test_eval_math_responses():
name, arguments = function_call["name"], json.loads(function_call["arguments"])
assert name == "eval_math_responses"
print(arguments["responses"])
- if isinstance(arguments["responses"], str):
- arguments["responses"] = json.loads(arguments["responses"])
+ # if isinstance(arguments["responses"], str):
+ # arguments["responses"] = json.loads(arguments["responses"])
arguments["responses"] = [f"\\boxed{{{x}}}" for x in arguments["responses"]]
print(arguments["responses"])
arguments["solution"] = f"\\boxed{{{arguments['solution']}}}"