Uses of Enum Class
com.tnsai.prompt.strategy.PromptStrategy
Packages that use PromptStrategy
Package
Description
Agent classes and lifecycle management for the TnsAI framework.
Predefined prompting strategies for enhanced LLM response quality.
-
Uses of PromptStrategy in com.tnsai.agents
Methods in com.tnsai.agents with parameters of type PromptStrategyModifier and TypeMethodDescriptionAgentBuilder.promptStrategy(PromptStrategy strategy) Adds a prompt strategy to the agent.Method parameters in com.tnsai.agents with type arguments of type PromptStrategyModifier and TypeMethodDescriptionAgentBuilder.promptStrategies(List<PromptStrategy> strategies) Adds multiple prompt strategies to the agent. -
Uses of PromptStrategy in com.tnsai.prompt.strategy
Methods in com.tnsai.prompt.strategy that return PromptStrategyModifier and TypeMethodDescriptionstatic PromptStrategyReturns the enum constant of this class with the specified name.static PromptStrategy[]PromptStrategy.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in com.tnsai.prompt.strategy that return types with arguments of type PromptStrategyModifier and TypeMethodDescriptionEnhancedPrompt.getStrategies()Gets the list of applied strategies.PromptEnhancer.getStrategies()Gets the configured strategies.Methods in com.tnsai.prompt.strategy with parameters of type PromptStrategyModifier and TypeMethodDescriptionPromptEnhancer.Builder.strategy(PromptStrategy strategy) Adds a prompting strategy.static PromptEnhancerPromptEnhancer.withStrategy(PromptStrategy strategy) Creates an enhancer with a single strategy.Constructor parameters in com.tnsai.prompt.strategy with type arguments of type PromptStrategyModifierConstructorDescriptionEnhancedPrompt(String systemPrompt, String userMessage, List<PromptStrategy> strategies, PromptEnhancer.OutputFormat outputFormat)