GadgetExecuteResult
Defined in: gadgets/types.ts:146
Result returned by gadget execute() method. Can be a simple string or an object with result and optional cost.
Example
Section titled “Example”// Simple string return (free gadget)execute: () => "result"
// Object return with costexecute: () => ({ result: "data", cost: 0.001 })Properties
Section titled “Properties”
optionalcost:number
Defined in: gadgets/types.ts:150
Optional cost in USD (e.g., 0.001 for $0.001)
result
Section titled “result”result:
string
Defined in: gadgets/types.ts:148
The execution result as a string