mirror of
https://github.com/upstash/context7.git
synced 2026-09-14 19:09:34 +08:00
Clarify unavailable version handling
This commit is contained in:
@@ -269,7 +269,7 @@ IMPORTANT: Do not call this tool more than 3 times per question. If you cannot f
|
||||
|
||||
You must call 'Resolve Context7 Library ID' tool first to obtain the exact Context7-compatible library ID required to use this tool, UNLESS the user explicitly provides a library ID in the format '/org/project' or '/org/project/version' in their query.
|
||||
|
||||
Do not substitute a different version when the requested one is unavailable.
|
||||
If the requested version is unavailable, say so and do not retry with a different or unversioned library ID.
|
||||
|
||||
Do not call this tool more than 3 times per question.`,
|
||||
inputSchema: z.preprocess(
|
||||
|
||||
@@ -51,7 +51,7 @@ export const QUERY_DOCS_DESCRIPTION = `Retrieves and queries up-to-date document
|
||||
|
||||
You must call 'Resolve Context7 Library ID' tool first to obtain the exact Context7-compatible library ID required to use this tool, UNLESS the user explicitly provides a library ID in the format '/org/project' or '/org/project/version' in their query.
|
||||
|
||||
Do not substitute a different version when the requested one is unavailable.
|
||||
If the requested version is unavailable, say so and do not retry with a different or unversioned library ID.
|
||||
|
||||
Do not call this tool more than 3 times per question.`;
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ ctx7 docs /vercel/next.js "How to set up app router"
|
||||
ctx7 docs /vercel/next.js/v14.3.0-canary.87 "How to set up app router"
|
||||
```
|
||||
|
||||
The available versions are listed in the `ctx7 library` output. If the requested version is not listed, say it is unavailable; do not substitute another version.
|
||||
The available versions are listed in the `ctx7 library` output. If the requested version is not listed, say it is unavailable; do not retry with a different or unversioned library ID.
|
||||
|
||||
```bash
|
||||
# Output as JSON for scripting
|
||||
|
||||
@@ -101,7 +101,7 @@ npx ctx7@latest docs /vercel/next.js "How to set up app router"
|
||||
npx ctx7@latest docs /vercel/next.js/v14.3.0-canary.87 "How to set up app router"
|
||||
```
|
||||
|
||||
The available versions are listed in the `library` command output. If the requested version is not listed, say it is unavailable; do not substitute another version.
|
||||
The available versions are listed in the `library` command output. If the requested version is not listed, say it is unavailable; do not retry with a different or unversioned library ID.
|
||||
|
||||
## Step 2: Query Documentation
|
||||
|
||||
|
||||
Reference in New Issue
Block a user