Uses of Class
com.tnsai.llm.format.ResponseFormat
Packages that use ResponseFormat
Package
Description
Output format handling for structured LLM responses.
LLM provider implementations for various AI services.
-
Uses of ResponseFormat in com.tnsai.llm.format
Methods in com.tnsai.llm.format that return ResponseFormatModifier and TypeMethodDescriptionJsonModeClient.getResponseFormat()Gets the response format being used.static ResponseFormatResponseFormat.jsonObject()Creates a JSON object format.static ResponseFormatResponseFormat.jsonSchema(String name, Class<?> clazz) Creates a JSON Schema format from a class.static ResponseFormatResponseFormat.jsonSchema(String name, Map<String, Object> schema) Creates a JSON Schema format with the given schema.static ResponseFormatResponseFormat.jsonSchema(String name, Map<String, Object> schema, boolean strict) Creates a JSON Schema format with optional strict mode.static ResponseFormatResponseFormat.text()Creates a text format (default).Methods in com.tnsai.llm.format with parameters of type ResponseFormatModifier and TypeMethodDescriptioncom.tnsai.llm.ChatResponseJsonCapableLLMClient.chatWithFormat(String message, Optional<String> systemPrompt, Optional<List<Map<String, Object>>> history, Optional<List<Map<String, Object>>> tools, ResponseFormat format) Sends a chat message with the specified response format.JsonModeClient.Builder.responseFormat(ResponseFormat format) Sets the response format.default booleanJsonCapableLLMClient.supportsFormat(ResponseFormat format) Checks if this client supports the given response format.static JsonModeClientJsonModeClient.wrap(com.tnsai.llm.LLMClient client, ResponseFormat format) Creates a JSON mode wrapper with the specified format. -
Uses of ResponseFormat in com.tnsai.llm.providers
Methods in com.tnsai.llm.providers with parameters of type ResponseFormatModifier and TypeMethodDescriptioncom.tnsai.llm.ChatResponseMiniMaxClient.chatWithFormat(String message, Optional<String> systemPrompt, Optional<List<Map<String, Object>>> history, Optional<List<Map<String, Object>>> tools, ResponseFormat format) com.tnsai.llm.ChatResponseOpenAIClient.chatWithFormat(String message, Optional<String> systemPrompt, Optional<List<Map<String, Object>>> history, Optional<List<Map<String, Object>>> tools, ResponseFormat format) com.tnsai.llm.ChatResponseZhipuAIClient.chatWithFormat(String message, Optional<String> systemPrompt, Optional<List<Map<String, Object>>> history, Optional<List<Map<String, Object>>> tools, ResponseFormat format) booleanMiniMaxClient.supportsFormat(ResponseFormat format) booleanOpenAIClient.supportsFormat(ResponseFormat format) booleanZhipuAIClient.supportsFormat(ResponseFormat format)