Skip to main content

Interface: MakeGenerateConversationDataParams

Properties

apiBaseUrl

Optional apiBaseUrl: string

URL for the server you're evaluating.

Default

"http://localhost:3000/api/v1/"

Defined in

packages/mongodb-chatbot-evaluation/src/generate/generateConversationData.ts:25


conversations

conversations: ConversationsService

Same ConversationsService instance used in the chatbot. The function uses the service to create conversations and add initial messages.

Defined in

packages/mongodb-chatbot-evaluation/src/generate/generateConversationData.ts:19


httpHeaders

Optional httpHeaders: Record<string, string>

HTTP headers to include in the request to add a message to a conversation.

Example

{
"Authorization": "Bearer <some token>",
}

Defined in

packages/mongodb-chatbot-evaluation/src/generate/generateConversationData.ts:36


sleepMs

Optional sleepMs: number

Number of milliseconds to sleep between each conversation. This can be useful if there's a rate limit on some components of the chatbot. Often LLM APIs have a rate limit, for example.

Default

0

Defined in

packages/mongodb-chatbot-evaluation/src/generate/generateConversationData.ts:44