diff --git a/packages/sample/genaisrc/nested-poets.genai.mts b/packages/sample/genaisrc/nested-poets.genai.mts index 4d88aa7b79..42ff7e2fe5 100644 --- a/packages/sample/genaisrc/nested-poets.genai.mts +++ b/packages/sample/genaisrc/nested-poets.genai.mts @@ -1,10 +1,9 @@ -defTool("poet", "Writes 4 line poems", {}, async () => { - const result = await prompt`Write a ${4} line poem`.options({ +defTool("poet", "Writes 4 line poems", {}, () => + prompt`Write a ${4} line poem`.options({ model: "openai:gpt-4o", label: "Poem writer", }) - return result.text -}) +) script({ description: "Writes poems using the poet tool.",