Skip to content

Commit 126fa84

Browse files
UE-DNDcursoragent
andcommitted
🐛 修正 Agent instructions 测试与文档中的标题断言
instructions 标题已改为「客户端管理入口」,同步更新测试与文档示例。 Co-Authored-By: Cursor <cursoragent@cursor.com>
1 parent 1eb18a8 commit 126fa84

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

docs/guide/agent-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ AI 接入时建议按以下顺序自发现:
2727
"baseUrl": "https://auth.example.com/api/agent",
2828
"openapiUrl": "https://auth.example.com/api/agent/openapi.json",
2929
"contentType": "text/markdown",
30-
"prompt": "你是 CQUT Auth 客户端管理助手..."
30+
"prompt": "# CQUT Auth 客户端管理入口..."
3131
}
3232
```
3333

test/agent-api.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ test("agent instructions are served without auth", async () => {
268268
instructions.body.openapiUrl,
269269
`${instructions.body.baseUrl}/openapi.json`,
270270
);
271-
assert.match(instructions.body.prompt, /CQUT Auth /);
271+
assert.match(instructions.body.prompt, /CQUT Auth /);
272272
assert.doesNotMatch(instructions.body.prompt, /\{\{baseUrl\}\}/);
273273
} finally {
274274
await state.close();

0 commit comments

Comments
 (0)