chore: 初始化仓库,导入项目基线代码
Academy v0.8.3 完整代码基线:Go 后端(internal/cmd/cli/mcp-server/docreader)、 Vue 前端(frontend)、数据库迁移(migrations)、部署编排(docker/helm/deploy)与文档。 今日开发的培训推送管理改动随后单独提交。
This commit is contained in:
commit
7ec21f35b0
5767 files changed
+1436788
No files matched your search
@@ -0,0 +1,119 @@
|
||||
{
|
||||
"$comment": [
|
||||
"The exact Academy API calls this plugin makes, and the response fields it reads.",
|
||||
"test/contract.test.mjs asserts the plugin still emits these calls;",
|
||||
"contract/contract_test.go asserts the Academy server still accepts them and still",
|
||||
"serves those response fields, so a rename on either side fails CI instead of a user's agent."
|
||||
],
|
||||
"calls": [
|
||||
{
|
||||
"tool": "academy_list_knowledge_bases",
|
||||
"method": "GET",
|
||||
"path": "/api/v1/knowledge-bases",
|
||||
"query": { "resource_urls": "public" },
|
||||
"body": null,
|
||||
"goRequestType": null
|
||||
},
|
||||
{
|
||||
"tool": "academy_search",
|
||||
"method": "POST",
|
||||
"path": "/api/v1/knowledge-search",
|
||||
"query": { "resource_urls": "public" },
|
||||
"body": {
|
||||
"query": "默认的检索阈值是多少",
|
||||
"knowledge_base_ids": ["kb-product"]
|
||||
},
|
||||
"goRequestType": "session.SearchKnowledgeRequest"
|
||||
},
|
||||
{
|
||||
"tool": "academy_search",
|
||||
"method": "GET",
|
||||
"path": "/api/v1/knowledge/search",
|
||||
"query": { "keyword": "默认的检索阈值是多少", "limit": "8", "resource_urls": "public" },
|
||||
"body": null,
|
||||
"goRequestType": null
|
||||
},
|
||||
{
|
||||
"tool": "academy_read_document",
|
||||
"method": "GET",
|
||||
"path": "/api/v1/chunks/doc-retrieval-pipeline",
|
||||
"query": { "page": "1", "page_size": "5", "resource_urls": "public" },
|
||||
"body": null,
|
||||
"goRequestType": "types.Pagination"
|
||||
},
|
||||
{
|
||||
"tool": "academy_read_document",
|
||||
"method": "GET",
|
||||
"path": "/api/v1/knowledge/doc-retrieval-pipeline",
|
||||
"query": { "resource_urls": "public" },
|
||||
"body": null,
|
||||
"goRequestType": null
|
||||
},
|
||||
{
|
||||
"tool": "academy_ask",
|
||||
"method": "POST",
|
||||
"path": "/api/v1/sessions",
|
||||
"query": { "resource_urls": "public" },
|
||||
"body": {
|
||||
"title": "dsh: 默认的检索阈值是多少"
|
||||
},
|
||||
"goRequestType": "session.CreateSessionRequest"
|
||||
},
|
||||
{
|
||||
"tool": "academy_ask",
|
||||
"method": "POST",
|
||||
"path": "/api/v1/knowledge-chat/session-mock-1",
|
||||
"query": { "resource_urls": "public" },
|
||||
"body": {
|
||||
"query": "默认的检索阈值是多少",
|
||||
"channel": "api",
|
||||
"knowledge_base_ids": ["kb-product"]
|
||||
},
|
||||
"goRequestType": "session.CreateKnowledgeQARequest"
|
||||
},
|
||||
{
|
||||
"tool": "academy_ask",
|
||||
"method": "POST",
|
||||
"path": "/api/v1/agent-chat/s1",
|
||||
"query": { "resource_urls": "public" },
|
||||
"body": {
|
||||
"query": "部署方式",
|
||||
"channel": "api",
|
||||
"agent_id": "agent-42",
|
||||
"agent_enabled": true,
|
||||
"web_search_enabled": true
|
||||
},
|
||||
"goRequestType": "session.CreateKnowledgeQARequest"
|
||||
}
|
||||
],
|
||||
"responseFieldsRead": {
|
||||
"types.SearchResult": [
|
||||
"id",
|
||||
"content",
|
||||
"knowledge_id",
|
||||
"chunk_index",
|
||||
"knowledge_title",
|
||||
"knowledge_filename",
|
||||
"score"
|
||||
],
|
||||
"types.Chunk": ["id", "content", "chunk_index", "knowledge_id"],
|
||||
"types.Knowledge": [
|
||||
"id",
|
||||
"title",
|
||||
"file_name",
|
||||
"description",
|
||||
"knowledge_base_id",
|
||||
"knowledge_base_name"
|
||||
],
|
||||
"types.StreamResponse": [
|
||||
"response_type",
|
||||
"content",
|
||||
"knowledge_references",
|
||||
"session_id",
|
||||
"tool_calls"
|
||||
],
|
||||
"types.LLMToolCall": ["function"],
|
||||
"types.FunctionCall": ["name"]
|
||||
},
|
||||
"streamResponseTypes": ["answer", "references", "tool_call", "error", "complete"]
|
||||
}
|
||||
Reference in new issue
Block a user