Interface ChatClient.CallResponseSpec

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

public static interface ChatClient.CallResponseSpec
  • Method Summary

    Modifier and Type
    Method
    Description
     
    org.springframework.ai.chat.model.ChatResponse
     
     
    <T> T
    entity(Class<T> type)
     
    <T> T
    entity(org.springframework.ai.converter.StructuredOutputConverter<T> structuredOutputConverter)
     
    <T> 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

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

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

      @Nullable <T> 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)