| (파이프) 연산자로 엮어서 한 번에 실행하는 LCEL(LangChain Expression Language) 스타일에 최적화되어 있음.# 랭체인 스타일 (LCEL) chain = prompt_template | chat_model | output_parser response = chain.invoke({"input": "안녕?"})
// 스프링 AI 스타일 (Fluent API) String response = chatClient.prompt() .user("안녕?") .call() .content();
astream()를 활용해 스트리밍을 지원함stream() 을 통하여 스트리밍 구현이 가능함.