Skip to content

Commit 8bb3f30

Browse files
committed
Enable test for workflow example API after package upgrades
Signed-off-by: JoshuaL3000 <[email protected]>
1 parent cbc87e7 commit 8bb3f30

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

WorkflowExecAgent/docker_compose/intel/cpu/xeon/compose_vllm.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ services:
99
- ${WORKDIR}/GenAIComps/comps/agent/src/:/home/user/comps/agent/src/
1010
- ${TOOLSET_PATH}:/home/user/tools/
1111
ports:
12-
- "9090:9090"
12+
- "9091:9090"
1313
ipc: host
1414
environment:
1515
ip_address: ${ip_address}

WorkflowExecAgent/tests/3_launch_example_wf_api.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
set -e
66

77
wf_api_port=${wf_api_port}
8-
[[ -z "$wf_api_port" ]] && wf_api_port=5000
8+
[[ -z "$wf_api_port" ]] && wf_api_port=5005
99
WORKPATH=$(dirname "$PWD")
1010
LOG_PATH="$WORKPATH/tests/example_workflow"
1111
export WORKDIR=$WORKPATH/../../

WorkflowExecAgent/tests/4_validate_agent.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ function validate() {
2727

2828
function validate_agent_service() {
2929
echo "----------------Test agent ----------------"
30-
local CONTENT=$(curl http://${ip_address}:9090/v1/chat/completions -X POST -H "Content-Type: application/json" -d '{
31-
"query": "'"${query}"'"
30+
local CONTENT=$(curl http://${ip_address}:9091/v1/chat/completions -X POST -H "Content-Type: application/json" -d '{
31+
"messages": "'"${query}"'"
3232
}')
3333
validate "$CONTENT" "$validate_result" "workflowexec-agent-endpoint"
3434
docker logs workflowexec-agent-endpoint

WorkflowExecAgent/tests/test_compose_vllm_on_xeon.sh renamed to WorkflowExecAgent/tests/compose_vllm_on_xeon.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (C) 2024 Intel Corporation
33
# SPDX-License-Identifier: Apache-2.0
44

5-
workflow_id=10071
5+
workflow_id=10277
66
query="I have a data with gender Female, tenure 55, MonthlyAvgCharges 103.7. Predict if this entry will churn. My workflow id is '${workflow_id}'."
77
validate_result="The entry is not likely to churn"
88

WorkflowExecAgent/tests/example_workflow/launch_workflow_service.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ pip install virtualenv && \
1515
source venv/bin/activate && \
1616
pip install -r requirements.txt
1717

18-
uvicorn main:app --reload --port=5000 --host=0.0.0.0
18+
uvicorn main:app --reload --port=5005 --host=0.0.0.0

WorkflowExecAgent/tools/custom_prompt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
REACT_SYS_MESSAGE = """\
5-
You are a helpful assistant. You are to start the workflow using the tool provided.
5+
You are a helpful assistant. You are to start the workflow using the tool provided. Output tool calls or your answer at the end.
66
After the workflow is completed, you will use the output data to answer the user's original question in a one short sentence.
77
88
Now begin!

0 commit comments

Comments
 (0)