prasanna2119/Customer_Support_RL_Environment
0
๐ง Customer Support RL Environment
An OpenEnv-compliant reinforcement learning environment that simulates a real-world customer support desk.
Overview
An AI agent learns to handle customer support workflows across three progressively harder tasks:
Action Space
Each action is a JSON object:
{
"action_type": "classify | draft | acknowledge_urgency | escalate_manager | ...",
"content": "<text content of the action>"
}Observation Space
Each observation is a JSON object containing:
taskโ current task namesession_idโ unique episode identifierinstructionโ what the agent should doticketorconversationโ the support scenarioaction_formatโ expected format of the action
Reward Function
API Endpoints
Example: Reset
curl -X POST http://localhost:7860/reset \
-H "Content-Type: application/json" \
-d '{"task": "classify-ticket"}'Example: Step
curl -X POST http://localhost:7860/step \
-H "Content-Type: application/json" \
-d '{"task": "classify-ticket", "action": {"action_type": "classify", "content": "billing"}}'Setup & Running
Local
pip install -r requirements.txt
uvicorn app:app --host 0.0.0.0 --port 7860Docker
docker build -t customer-support-env .
docker run -p 7860:7860 \
-e HF_TOKEN=your_token \
-e MODEL_NAME=Qwen/Qwen2.5-72B-Instruct \
customer-support-envRun Inference
export HF_TOKEN=your_token
export MODEL_NAME=Qwen/Qwen2.5-72B-Instruct
export API_BASE_URL=https://router.huggingface.co/v1
export ENV_BASE_URL=http://localhost:7860
python inference.pyEnvironment Variables
Team
AgentForge โ OpenEnv Hackathon 2026
