Specifies the input schema for a class.
// Using primitive@input(Boolean)class BooleanAgent extends Agent<boolean, string> {}// Using schema-decorated class@input(UserProfile)class UserAgent extends Agent<UserProfile, string> {}// Using Zod schema directly@input(z.boolean())class BooleanAgent extends Agent<boolean, string> {} Copy
// Using primitive@input(Boolean)class BooleanAgent extends Agent<boolean, string> {}// Using schema-decorated class@input(UserProfile)class UserAgent extends Agent<UserProfile, string> {}// Using Zod schema directly@input(z.boolean())class BooleanAgent extends Agent<boolean, string> {}
The input type specification, which can be:
Specifies the input schema for a class.
Schema
Example