Uses of Enum Class
com.tnsai.output.OutputFormat
Packages that use OutputFormat
Package
Description
Agent classes and lifecycle management for the TnsAI framework.
Agent chat orchestration for LLM invocation, history management, and tool call handling.
Agent orchestration — chat, streaming, tool execution, and knowledge base management.
Agent output formatting and serialization to various formats (JSON, YAML, XML).
Output serialization framework for converting action results to structured formats.
LLM output parsing with retry and validation support.
-
Uses of OutputFormat in com.tnsai.agents
Methods in com.tnsai.agents with parameters of type OutputFormatModifier and TypeMethodDescriptionfinal <T> TAgent.chatWithFormat(String message, Class<T> targetClass, OutputFormat format, int maxRetries) Chat with structured output in a specific format.final <T> TAgent.chatWithFormat(String message, Class<T> targetClass, OutputFormat format, int maxRetries, ChatRetrievalContext retrievalContext) Formatted chat with request-local retrieval isolation and lifecycle context. -
Uses of OutputFormat in com.tnsai.agents.chat
Methods in com.tnsai.agents.chat with parameters of type OutputFormatModifier and TypeMethodDescription<T> TAgentChatOrchestrator.chatWithFormat(String message, Class<T> targetClass, OutputFormat format, int maxRetries) Chat with structured output in a specific format.<T> TAgentChatOrchestrator.chatWithFormat(String message, Class<T> targetClass, OutputFormat format, int maxRetries, ChatRetrievalContext retrievalContext) Chat with structured output and request-local retrieval context. -
Uses of OutputFormat in com.tnsai.agents.orchestration
Methods in com.tnsai.agents.orchestration with parameters of type OutputFormatModifier and TypeMethodDescription<T> TAgentOrchestrator.chatWithFormat(String message, Class<T> targetClass, OutputFormat format, int maxRetries) <T> TAgentOrchestrator.chatWithFormat(String message, Class<T> targetClass, OutputFormat format, int maxRetries, ChatRetrievalContext retrievalContext) -
Uses of OutputFormat in com.tnsai.agents.output
Methods in com.tnsai.agents.output that return OutputFormatModifier and TypeMethodDescriptionAgentOutputFormatter.detectOutputFormat(Class<?> clazz) Detects the output format from class annotations.Methods in com.tnsai.agents.output with parameters of type OutputFormatModifier and TypeMethodDescriptionAgentOutputFormatter.serialize(Object data, OutputFormat format) Serializes an object using the specified output format. -
Uses of OutputFormat in com.tnsai.output
Methods in com.tnsai.output that return OutputFormatModifier and TypeMethodDescriptionstatic OutputFormatOutputFormat.fromString(String value) Parses a format from string (case-insensitive).AbstractOutputSerializer.getFormat()OutputSerializationException.getFormat()OutputSerializer.getFormat()Gets the output format this serializer handles.static OutputFormatReturns the enum constant of this class with the specified name.static OutputFormat[]OutputFormat.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in com.tnsai.output with parameters of type OutputFormatModifier and TypeMethodDescription<T> TOutputSerializerRegistry.deserialize(String data, OutputFormat format, Class<T> targetClass) Convenience method to deserialize data from a specific format.OutputSerializerRegistry.getFormatInstructions(OutputFormat format, Class<?> targetClass) Gets format instructions for LLM prompts.OutputSerializerRegistry.getListFormatInstructions(OutputFormat format, Class<?> itemClass) Gets format instructions for list output.OutputSerializerRegistry.getSerializer(OutputFormat format) Gets the serializer for a specific format.booleanOutputSerializerRegistry.hasSerializer(OutputFormat format) Checks if a serializer is registered for a format.voidOutputSerializerRegistry.register(OutputFormat format, OutputSerializer serializer) Registers a custom serializer for a format.OutputSerializerRegistry.serialize(Object data, OutputFormat format) Convenience method to serialize data with pretty printing enabled.OutputSerializerRegistry.serialize(Object data, OutputFormat format, boolean prettyPrint) Convenience method to serialize data with a specific format.booleanOutputSerializerRegistry.supportsType(OutputFormat format, Class<?> dataClass) Checks if a format supports a given data type.Constructors in com.tnsai.output with parameters of type OutputFormatModifierConstructorDescriptionOutputSerializationException(String message, OutputFormat format) OutputSerializationException(String message, OutputFormat format, Class<?> targetType) OutputSerializationException(String message, Throwable cause, OutputFormat format) OutputSerializationException(String message, Throwable cause, OutputFormat format, Class<?> targetType) -
Uses of OutputFormat in com.tnsai.parser
Methods in com.tnsai.parser that return OutputFormatModifier and TypeMethodDescriptionFormatAwareOutputParser.getFormat()Gets the output format this parser uses.Methods in com.tnsai.parser with parameters of type OutputFormatModifier and TypeMethodDescriptionstatic <T> FormatAwareOutputParser<T> FormatAwareOutputParser.forFormat(Class<T> targetType, OutputFormat format) FormatAwareOutputParser.Builder.format(OutputFormat format) Constructors in com.tnsai.parser with parameters of type OutputFormatModifierConstructorDescriptionFormatAwareOutputParser(Class<T> targetType, OutputFormat format) Creates a parser for single object output.FormatAwareOutputParser(Class<T> targetType, OutputFormat format, boolean isListOutput) Creates a parser with list output option.