From 66d4a913724a0c650e9ac3805e981e4ea059ed19 Mon Sep 17 00:00:00 2001 From: Adil Hafeez Date: Fri, 21 Mar 2025 15:45:55 -0700 Subject: [PATCH] fix more --- .../hurl_tests/simple_issues_repairs.hurl | 19 +++++++++++++++++++ .../{simple.hurl => simple_sale_agent.hurl} | 0 demos/use_cases/orchestrating_agents/main.py | 1 + 3 files changed, 20 insertions(+) create mode 100644 demos/use_cases/orchestrating_agents/hurl_tests/simple_issues_repairs.hurl rename demos/use_cases/orchestrating_agents/hurl_tests/{simple.hurl => simple_sale_agent.hurl} (100%) diff --git a/demos/use_cases/orchestrating_agents/hurl_tests/simple_issues_repairs.hurl b/demos/use_cases/orchestrating_agents/hurl_tests/simple_issues_repairs.hurl new file mode 100644 index 00000000..3820de57 --- /dev/null +++ b/demos/use_cases/orchestrating_agents/hurl_tests/simple_issues_repairs.hurl @@ -0,0 +1,19 @@ +POST http://localhost:10000/v1/chat/completions +Content-Type: application/json + +{ + "messages": [ + { + "role": "user", + "content": "I bought a package recently and it not working properly" + } + ] +} +HTTP 200 +[Asserts] +header "content-type" == "application/json" +jsonpath "$.model" matches /^gpt-4o-2/ +jsonpath "$.metadata.x-arch-state" != null +jsonpath "$.usage" != null +jsonpath "$.choices[0].message.content" != null +jsonpath "$.choices[0].message.role" == "assistant" diff --git a/demos/use_cases/orchestrating_agents/hurl_tests/simple.hurl b/demos/use_cases/orchestrating_agents/hurl_tests/simple_sale_agent.hurl similarity index 100% rename from demos/use_cases/orchestrating_agents/hurl_tests/simple.hurl rename to demos/use_cases/orchestrating_agents/hurl_tests/simple_sale_agent.hurl diff --git a/demos/use_cases/orchestrating_agents/main.py b/demos/use_cases/orchestrating_agents/main.py index b453e9f2..4f288e50 100644 --- a/demos/use_cases/orchestrating_agents/main.py +++ b/demos/use_cases/orchestrating_agents/main.py @@ -93,6 +93,7 @@ AGENTS = { "escalate_to_human": Agent( role="human escalation agent", instructions="Escalate issues to a human.", + # skipping model name here as arch gateway will pick the default model from the config file ), "unknown_agent": Agent( role="general assistant", instructions="Assist the user in general queries."