Requirements of the Conversational AI Assistant API
Explore how to define a conversational AI assistant API around multi-turn messaging, conversation history, streamed responses, cancellation, instructions, and model settings. Learn to separate functional requirements from latency, availability, scalability, cost, security, safety, and reliability constraints while identifying key platform dependencies.
We'll cover the following...
A conversational assistant enables users to ask questions, generate content, and complete tasks through an ongoing conversation. Each response builds on the user’s latest message and relevant conversation history. Supporting these interactions requires an API that manages messages, delivers responses as they are generated, and maintains context across requests.
In this chapter, we’ll design a conversational assistant API that allows users to create and manage conversations, send text messages, and receive streamed responses. Our API will also support stopping an ongoing response and configuring model settings. We’ll examine how the services involved interact ...