intermediateSpring AI — Core, ChatClient & RAG
What is the ChatClient API? How is it similar to WebClient and RestClient?
A fluent builder: chatClient.prompt().system("...").user("...").advisors(...).call().content(). Supports both synchronous (.call()) and streaming (.stream() returning Flux<String>), auto-configured via the starter, idiomatically mirroring WebClient's builder style.
This is a Pro question
Sign in, then upgrade to Pro or Power to unlock this question and the full Interview Prep bank.
What is the ChatClient API? How is it similar to WebClient and RestClient?