GadgetConfig
Defined in: gadgets/typed-gadget.ts:38
Configuration for creating a typed gadget.
Type Parameters
Section titled “Type Parameters”TSchema
Section titled “TSchema”TSchema extends ZodType
Properties
Section titled “Properties”description
Section titled “description”description:
string
Defined in: gadgets/typed-gadget.ts:40
Human-readable description of what the gadget does
examples?
Section titled “examples?”
optionalexamples:GadgetExample<InferSchema<TSchema>>[]
Defined in: gadgets/typed-gadget.ts:52
Optional usage examples to help LLMs understand proper invocation
optionalname:string
Defined in: gadgets/typed-gadget.ts:46
Optional custom name (defaults to class name)
schema
Section titled “schema”schema:
TSchema
Defined in: gadgets/typed-gadget.ts:43
Zod schema for parameter validation
timeoutMs?
Section titled “timeoutMs?”
optionaltimeoutMs:number
Defined in: gadgets/typed-gadget.ts:49
Optional timeout in milliseconds