Docs
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
Neon
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
Neon
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
Persistence (Advanced)
Embeddings
Reranking
Evaluate
Sandboxes (Advanced)
Class References
Function References
Interface References
Type Alias References
Variable References
Type Alias References

InferToolInput

ts
type InferToolInput<T> = T extends object ? TInput extends JSONSchema ? unknown : InferSchemaType<TInput> : unknown;
type InferToolInput<T> = T extends object ? TInput extends JSONSchema ? unknown : InferSchemaType<TInput> : unknown;

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

Extract the input type from a tool (inferred from Standard JSON Schema, or unknown for plain JSONSchema)

Type Parameters

T

T