Interface ChatClient.CallResponseSpec

All Known Implementing Classes:
DefaultChatClient.DefaultCallResponseSpec
Enclosing interface:
ChatClient

public static interface ChatClient.CallResponseSpec
Since:
1.0.0
Author:
Mark Pollack, Christian Tzolov, Josh Long, Arjen Poutsma, Thomas Vitale
  • Method Summary

    Modifier and Type
    Method
    Description
     
    @Nullable org.springframework.ai.chat.model.ChatResponse
     
    @Nullable String
     
    <T> @Nullable T
    entity(Class<T> type)
     
    <T> @Nullable T
    entity(org.springframework.ai.converter.StructuredOutputConverter<T> structuredOutputConverter)
     
    <T> @Nullable T
    entity(org.springframework.core.ParameterizedTypeReference<T> type)
     
    <T> ResponseEntity<org.springframework.ai.chat.model.ChatResponse, T>
     
    <T> ResponseEntity<org.springframework.ai.chat.model.ChatResponse, T>
    responseEntity(org.springframework.ai.converter.StructuredOutputConverter<T> structuredOutputConverter)
     
    <T> ResponseEntity<org.springframework.ai.chat.model.ChatResponse, T>
    responseEntity(org.springframework.core.ParameterizedTypeReference<T> type)
     
  • Method Details

    • entity

      <T> @Nullable T entity(org.springframework.core.ParameterizedTypeReference<T> type)
    • entity

      <T> @Nullable T entity(org.springframework.ai.converter.StructuredOutputConverter<T> structuredOutputConverter)
    • entity

      <T> @Nullable T entity(Class<T> type)
    • chatClientResponse

      ChatClientResponse chatClientResponse()
    • chatResponse

      @Nullable org.springframework.ai.chat.model.ChatResponse chatResponse()
    • content

      @Nullable String content()
    • responseEntity

      <T> ResponseEntity<org.springframework.ai.chat.model.ChatResponse, T> responseEntity(Class<T> type)
    • responseEntity

      <T> ResponseEntity<org.springframework.ai.chat.model.ChatResponse, T> responseEntity(org.springframework.core.ParameterizedTypeReference<T> type)
    • responseEntity

      <T> ResponseEntity<org.springframework.ai.chat.model.ChatResponse, T> responseEntity(org.springframework.ai.converter.StructuredOutputConverter<T> structuredOutputConverter)