Skip to content

GadgetConfig

Defined in: gadgets/typed-gadget.ts:38

Configuration for creating a typed gadget.

TSchema extends ZodType

description: string

Defined in: gadgets/typed-gadget.ts:40

Human-readable description of what the gadget does


optional examples: GadgetExample<InferSchema<TSchema>>[]

Defined in: gadgets/typed-gadget.ts:52

Optional usage examples to help LLMs understand proper invocation


optional name: string

Defined in: gadgets/typed-gadget.ts:46

Optional custom name (defaults to class name)


schema: TSchema

Defined in: gadgets/typed-gadget.ts:43

Zod schema for parameter validation


optional timeoutMs: number

Defined in: gadgets/typed-gadget.ts:49

Optional timeout in milliseconds