Preparing your design workspace

Loading the problem and your saved attempt…

Design an Agentic Chatbot Domain

Model conversations, guarded agent turns, bounded tool execution, retries, cancellation, and exactly-once response publication.

Design the low-level object model and contracts for an agentic chatbot that accepts user queries, may use external tools, and generates responses.

FastPrep exercise assumptions: conversation history is ordered; at most one response-generation operation is active per conversation; only authorized tool work may execute; tool failures, retries, and cancellation have deterministic outcomes; and no operation may publish duplicate or conflicting final responses.

Model inference and external tools are dependencies rather than implementations for this exercise. User-interface rendering, model training, prompt tuning, retrieval indexing, and distributed worker infrastructure are outside scope.

Choose and justify the objects, interfaces, ownership boundaries, and patterns rather than assuming a prescribed class list.