Loading topic
ChatClient 6 min readChatClient seam from earlier chapters, and you have seen the basic RecordingClient that saves replies to a JSON file. Here you decide what counts as "the same request" when a replay looks up a saved reply.5 min readcomplete method returns one finished string. Many real applications use two other shapes of reply. A streaming reply arrives as many small chunks. A tool call asks your code to run a function and send the result back to the model. This chapter shows how to5 min readChatClient protocol), a scripted fake, and recorded responses that you replay offline. You should also be comfortable with pytest markers and environment variables.7 min read