Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

SkillLimitErrorInit.md

75 lines1.2 KB

1---
2id: SkillLimitErrorInit
3title: SkillLimitErrorInit
4---
5​
6Defined in: packages/ai/src/utilities/errors.ts:13
7​
8Thrown when a skills request exceeds a provider limit. Lives in core (rather
9than `@tanstack/ai-skills`) so the native tool factories in `ai-anthropic`
10and `openai-base` can throw it without depending on the skills package;
11`@tanstack/ai-skills` re-exports it for the portable path.
12​
13`path` distinguishes the native provider cap (e.g. Anthropic's 8-skill
14limit) from a portable-path limit, so a portable user isn't sent chasing a
15cap that only applies to hosted skills.
16​
17## Properties
18​
19### actual
20​
21```ts
22actual: number;
23```
24​
25Defined in: packages/ai/src/utilities/errors.ts:18
26​
27***
28​
29### allowed
30​
31```ts
32allowed: number;
33```
34​
35Defined in: packages/ai/src/utilities/errors.ts:17
36​
37***
38​
39### limit
40​
41```ts
42limit: string;
43```
44​
45Defined in: packages/ai/src/utilities/errors.ts:16
46​
47***
48​
49### offending
50​
51```ts
52offending: string[];
53```
54​
55Defined in: packages/ai/src/utilities/errors.ts:19
56​
57***
58​
59### path
60​
61```ts
62path: "native" | "portable";
63```
64​
65Defined in: packages/ai/src/utilities/errors.ts:15
66​
67***
68​
69### provider
70​
71```ts
72provider: "anthropic" | "openai" | "gemini" | "other";
73```
74​
75Defined in: packages/ai/src/utilities/errors.ts:14