InferActionArguments
@daydreamsai/core / InferActionArguments
Type Alias: InferActionArguments<TSchema>
InferActionArguments<
TSchema> =TSchemaextendsZodRawShape?z.infer<ZodObject<TSchema>> :TSchemaextendsz.ZodObject?z.infer<TSchema> :TSchemaextendsSchema?TSchema["_type"] :undefined
Defined in: packages/core/src/types.ts:71
Infers the argument type from an action schema
Type Parameters
TSchema
TSchema = undefined
The schema type to infer from