Docs
CodeRabbit
Cloudflare
Railway
Clerk
SerpAPI
Netlify
AG Grid
OpenRouter
WorkOS
Electric
Unkey
Sentry
Prisma
CodeRabbit
Cloudflare
Railway
Clerk
SerpAPI
Netlify
AG Grid
OpenRouter
WorkOS
Electric
Unkey
Sentry
Prisma
Class References
Function References
Interface References
Type Alias References
Variable References
Type Alias References

InferToolName

Type Alias: InferToolName<T>

ts
type InferToolName<T> = T extends object ? N : never;
type InferToolName<T> = T extends object ? N : never;

Defined in: packages/ai/src/activities/chat/tools/tool-definition.ts:72

Extract the tool name as a literal type

Type Parameters

T

T