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