Uses of Interface
org.springframework.ai.chat.client.ChatClient.EntityParamSpec
Packages that use ChatClient.EntityParamSpec
-
Uses of ChatClient.EntityParamSpec in org.springframework.ai.chat.client
Classes in org.springframework.ai.chat.client that implement ChatClient.EntityParamSpecModifier and TypeClassDescriptionstatic classDefault implementation ofChatClient.EntityParamSpec.Methods in org.springframework.ai.chat.client that return ChatClient.EntityParamSpecModifier and TypeMethodDescriptionChatClient.EntityParamSpec.useProviderStructuredOutput()Delivers the JSON schema to the AI provider as an API-level constraint rather than appending it as prompt text.DefaultChatClient.DefaultEntityParamSpec.useProviderStructuredOutput()ChatClient.EntityParamSpec.validateSchema()Validates the model's JSON response against the entity schema and retries with the error feedback on failure, up tomaxRepeatAttemptstimes (default: 3).DefaultChatClient.DefaultEntityParamSpec.validateSchema()Method parameters in org.springframework.ai.chat.client with type arguments of type ChatClient.EntityParamSpecModifier and TypeMethodDescription<T> @Nullable TChatClient.CallResponseSpec.entity(Class<T> type, Consumer<ChatClient.EntityParamSpec> entityParamSpecConsumer) Deserializes the response into aTinstance, with behaviour configured via theentityParamSpecConsumer.<T> @Nullable TChatClient.CallResponseSpec.entity(org.springframework.ai.converter.StructuredOutputConverter<T> structuredOutputConverter, Consumer<ChatClient.EntityParamSpec> entityParamSpecConsumer) Deserializes the response using the given converter, with behaviour configured via theentityParamSpecConsumer.<T> @Nullable TChatClient.CallResponseSpec.entity(org.springframework.core.ParameterizedTypeReference<T> type, Consumer<ChatClient.EntityParamSpec> entityParamSpecConsumer) Deserializes the response into aTinstance, with behaviour configured via theentityParamSpecConsumer.<T> @Nullable TDefaultChatClient.DefaultCallResponseSpec.entity(Class<T> type, Consumer<ChatClient.EntityParamSpec> entitySpecConsumer) <T> @Nullable TDefaultChatClient.DefaultCallResponseSpec.entity(org.springframework.ai.converter.StructuredOutputConverter<T> structuredOutputConverter, Consumer<ChatClient.EntityParamSpec> entitySpecConsumer) <T> @Nullable TDefaultChatClient.DefaultCallResponseSpec.entity(org.springframework.core.ParameterizedTypeReference<T> type, Consumer<ChatClient.EntityParamSpec> entitySpecConsumer) <T> ResponseEntity<org.springframework.ai.chat.model.ChatResponse,T> ChatClient.CallResponseSpec.responseEntity(Class<T> type, Consumer<ChatClient.EntityParamSpec> entityParamSpecConsumer) Returns aResponseEntitycontaining both the completeChatResponseobject and a specific entity type, with behaviour configured via theentityParamSpecConsumer.<T> ResponseEntity<org.springframework.ai.chat.model.ChatResponse,T> ChatClient.CallResponseSpec.responseEntity(org.springframework.ai.converter.StructuredOutputConverter<T> structuredOutputConverter, Consumer<ChatClient.EntityParamSpec> entityParamSpecConsumer) Returns aResponseEntitycontaining both the completeChatResponseobject and an entity converted using a specifiedStructuredOutputConverter, with behaviour configured via theentityParamSpecConsumer.<T> ResponseEntity<org.springframework.ai.chat.model.ChatResponse,T> ChatClient.CallResponseSpec.responseEntity(org.springframework.core.ParameterizedTypeReference<T> type, Consumer<ChatClient.EntityParamSpec> entityParamSpecConsumer) Returns aResponseEntitycontaining both the completeChatResponseobject and a specific entity type, with behaviour configured via theentityParamSpecConsumer.<T> ResponseEntity<org.springframework.ai.chat.model.ChatResponse,T> DefaultChatClient.DefaultCallResponseSpec.responseEntity(Class<T> type, Consumer<ChatClient.EntityParamSpec> entityParamSpecConsumer) <T> ResponseEntity<org.springframework.ai.chat.model.ChatResponse,T> DefaultChatClient.DefaultCallResponseSpec.responseEntity(org.springframework.ai.converter.StructuredOutputConverter<T> structuredOutputConverter, Consumer<ChatClient.EntityParamSpec> entityParamSpecConsumer) <T> ResponseEntity<org.springframework.ai.chat.model.ChatResponse,T> DefaultChatClient.DefaultCallResponseSpec.responseEntity(org.springframework.core.ParameterizedTypeReference<T> type, Consumer<ChatClient.EntityParamSpec> entityParamSpecConsumer)