📝 (sendMessage) Improve sendMessage API ref
This commit is contained in:
@@ -166,7 +166,12 @@ const startParamsSchema = z.object({
|
|||||||
.describe(
|
.describe(
|
||||||
'[More info about prefilled variables.](https://docs.typebot.io/editor/variables#prefilled-variables)'
|
'[More info about prefilled variables.](https://docs.typebot.io/editor/variables#prefilled-variables)'
|
||||||
),
|
),
|
||||||
isStreamEnabled: z.boolean().optional(),
|
isStreamEnabled: z
|
||||||
|
.boolean()
|
||||||
|
.optional()
|
||||||
|
.describe(
|
||||||
|
'Set this to `true` if you intend to stream OpenAI completions on a client.'
|
||||||
|
),
|
||||||
})
|
})
|
||||||
|
|
||||||
const replyLogSchema = logSchema
|
const replyLogSchema = logSchema
|
||||||
@@ -189,11 +194,11 @@ export const sendMessageInputSchema = z.object({
|
|||||||
.describe(
|
.describe(
|
||||||
'Session ID that you get from the initial chat request to a bot. If not provided, it will create a new session.'
|
'Session ID that you get from the initial chat request to a bot. If not provided, it will create a new session.'
|
||||||
),
|
),
|
||||||
|
startParams: startParamsSchema.optional(),
|
||||||
clientLogs: z
|
clientLogs: z
|
||||||
.array(replyLogSchema)
|
.array(replyLogSchema)
|
||||||
.optional()
|
.optional()
|
||||||
.describe('Logs while executing client side actions'),
|
.describe('Logs while executing client side actions'),
|
||||||
startParams: startParamsSchema.optional(),
|
|
||||||
})
|
})
|
||||||
|
|
||||||
const runtimeOptionsSchema = paymentInputRuntimeOptionsSchema.optional()
|
const runtimeOptionsSchema = paymentInputRuntimeOptionsSchema.optional()
|
||||||
|
|||||||
Reference in New Issue
Block a user