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

InferToolInput

Type Alias: InferToolInput<T>

ts
type InferToolInput<T> = T extends object ? TInput extends StandardJSONSchemaV1<infer TInferred, unknown> ? TInferred : TInput extends JSONSchema ? unknown : unknown : unknown;
type InferToolInput<T> = T extends object ? TInput extends StandardJSONSchemaV1<infer TInferred, unknown> ? TInferred : TInput extends JSONSchema ? unknown : unknown : unknown;

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

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

Type Parameters

T

T