fix: added optional flag to numberOfShares zod schema
This commit is contained in:
parent
16ec61a877
commit
d34aaa5cc2
1 changed files with 1 additions and 0 deletions
|
|
@ -310,6 +310,7 @@ async function submitUserMessage(content: string) {
|
|||
price: z.number().describe('The price of the stock.'),
|
||||
numberOfShares: z
|
||||
.number()
|
||||
.optional()
|
||||
.describe(
|
||||
'The **number of shares** for a stock or currency to purchase. Can be optional if the user did not specify it.'
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue