Interface ChatClient.EntityParamSpec
- All Known Implementing Classes:
DefaultChatClient.DefaultEntityParamSpec
- Enclosing interface:
- ChatClient
public static interface ChatClient.EntityParamSpec
Configures optional behaviour for
entity(...) calls. Options may be
combined.-
Method Summary
Modifier and TypeMethodDescriptionDelivers the JSON schema to the AI provider as an API-level constraint rather than appending it as prompt text.Validates the model's JSON response against the entity schema and retries with the error feedback on failure, up tomaxRepeatAttemptstimes (default: 3).
-
Method Details
-
useProviderStructuredOutput
ChatClient.EntityParamSpec useProviderStructuredOutput()Delivers the JSON schema to the AI provider as an API-level constraint rather than appending it as prompt text. Has no effect if the underlyingChatModeldoes not supportStructuredOutputChatOptions. -
validateSchema
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). Streaming is not supported.
-