2025-10-29 19:06:14 +08:00
2025-10-27 17:34:49 +08:00
2025-10-29 18:53:58 +08:00
2025-10-29 19:06:14 +08:00
2025-10-22 12:42:39 +08:00
2025-10-29 17:02:19 +08:00
2025-10-29 16:10:09 +08:00

langchain-agent

Install

  1. Install xiaoliang-catering for carttool support; otherwise, comment out in lang_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

  1. Source all env variable
  2. 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
No description provided
Readme 1.5 MiB
Languages
Python 76.4%
TypeScript 15.6%
HTML 3.8%
CSS 1.9%
Shell 1.9%
Other 0.3%