From 495fe904a4b927d02c3f576d6375c3a90f53c2f7 Mon Sep 17 00:00:00 2001 From: "jinli.yl" Date: Tue, 29 Jul 2025 11:22:06 +0800 Subject: [PATCH] update messages --- README.md | 4 ++-- experience_library/bfcl_v1.jsonl | 0 {experience_library => library}/appworld_v1.jsonl | 0 library/bfcl_v1.jsonl | 1 + {docs => library}/index.html | 6 ++++-- pyproject.toml | 6 ++++++ 6 files changed, 13 insertions(+), 4 deletions(-) delete mode 100644 experience_library/bfcl_v1.jsonl rename {experience_library => library}/appworld_v1.jsonl (100%) create mode 100644 library/bfcl_v1.jsonl rename {docs => library}/index.html (99%) diff --git a/README.md b/README.md index 64f67e38..8f2f2762 100644 --- a/README.md +++ b/README.md @@ -523,7 +523,7 @@ import requests response = requests.post(url="http://0.0.0.0:8001/vector_store", json={ "workspace_id": "appworld_v1", "action": "load", - "path": "./experience_library/", + "path": "./library/", }) print(f"loading result result={response.json()}") @@ -539,7 +539,7 @@ curl -X POST "http://0.0.0.0:8001/vector_store" \ -d '{ "workspace_id": "appworld_v1", "action": "load", - "path": "./experience_library/" + "path": "./library/" }' ``` diff --git a/experience_library/bfcl_v1.jsonl b/experience_library/bfcl_v1.jsonl deleted file mode 100644 index e69de29b..00000000 diff --git a/experience_library/appworld_v1.jsonl b/library/appworld_v1.jsonl similarity index 100% rename from experience_library/appworld_v1.jsonl rename to library/appworld_v1.jsonl diff --git a/library/bfcl_v1.jsonl b/library/bfcl_v1.jsonl new file mode 100644 index 00000000..4aa282f0 --- /dev/null +++ b/library/bfcl_v1.jsonl @@ -0,0 +1 @@ +{"workspace_id": "bfcl_8b_0725", "experience_id": "dd0b9a452acc4d85a8ebd519976a01ab", "experience_type": "text", "when_to_use": "When interacting with APIs that require authentication and multiple steps to retrieve data.", "content": "Always verify the API documentation for required parameters and response structures before executing code. Missing or incorrect parameters can lead to failed API calls.", "score": null, "metadata": {"author": "qwen3-8b", "created_time": "2025-07-24 21:15:17", "modified_time": "2025-07-24 21:15:17", "extra_info": null}} diff --git a/docs/index.html b/library/index.html similarity index 99% rename from docs/index.html rename to library/index.html index a58866ef..f5b6e75c 100644 --- a/docs/index.html +++ b/library/index.html @@ -263,7 +263,7 @@ // GitHub API configuration const GITHUB_USER = 'modelscope'; const REPO_NAME = 'ExperienceMaker'; - const EXPERIENCE_FOLDER = 'experience_library'; + const EXPERIENCE_FOLDER = 'library'; // DOM elements const loadingEl = document.getElementById('loading'); @@ -305,10 +305,12 @@ try { showLoading(); - const baseUrl = `https://raw.githubusercontent.com/${GITHUB_USER}/${REPO_NAME}/main/${EXPERIENCE_FOLDER}`; + // const baseUrl = `https://raw.githubusercontent.com/${GITHUB_USER}/${REPO_NAME}/main/${EXPERIENCE_FOLDER}`; + const baseUrl = `./`; const knownFiles = [ 'appworld_v1.jsonl', + 'bfcl_v1.jsonl', // 在这里添加你的其他 JSONL 文件名 ]; diff --git a/pyproject.toml b/pyproject.toml index 69a73b4a..5ecc0b2f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,5 +37,11 @@ where = ["."] include = ["experiencemaker*"] exclude = ["cookbook*"] +[tool.setuptools.package-data] +experiencemaker = [ + "config/*.yaml", + "op/**/*.yaml", +] + [project.scripts] experiencemaker = "experiencemaker.app:main"