9dd5a7d52c0e49083755dec77900954373469925
langchain-agent
Install
- Install
xiaoliang-cateringfor carttool support; otherwise, comment out inlang_agent/tool_manager.py
Environs
Need these:
export ALI_API_KEY=REDACTED
export ALI_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1
export MCP_ENDPOINT=REDACTED
export LANGSMITH_API_KEY=REDACTED
Install
need to install: xiaoliang-catering
# for developement
python -m pip install -e .
# for production
python -m pip install .
Runables
all runnables are under scripts
Start all mcps to websocket
- Source all env variable
- run the below
python scripts/start_mcp_server.py
# update configs/ws_mcp_config.json with link from the command above
python scripts/ws_start_register_tools.py
Eval Dataset Format
see scripts/make_eval_dataset.py for example. Specific meaning of each entry:
[
{
"inputs": {"text": "用retrieve查询光予尘然后介绍"}, // model input; use list for conversation
"outputs": {"answer": "光予尘茉莉绿茶为底", // reference answer
"tool_use": ["retrieve"]} // tool uses; assume model need to use all tools if more than 1 provided
}
]
Description
Languages
Python
76.4%
TypeScript
15.6%
HTML
3.8%
CSS
1.9%
Shell
1.9%
Other
0.3%