A tool the model may call: your function, with a name, a sentence and its input's types. tool("lookup_order", { description, input: { order: t.string() } }, ({ order }) => …); order is typed from its shape.
tool("lookup_order", { description, input: { order: t.string() } }, ({ order }) => …)
order
A tool the model may call: your function, with a name, a sentence and its input's types.
tool("lookup_order", { description, input: { order: t.string() } }, ({ order }) => …);orderis typed from its shape.