Interface PromptRunnerOperations
-
- All Implemented Interfaces:
public interface PromptRunnerOperationsUser-facing interface for executing prompts. These are what are executed on a finally configured PromptRunner.
-
-
Method Summary
Modifier and Type Method Description StringgenerateText(String prompt)Generate text StringgenerateText(MultimodalContent content)Generate text from multimodal content (text + images) <T extends Any> TcreateObject(String prompt, Class<T> outputClass)Create an object of the given type using the given prompt and LLM options from context (process context or implementing class). abstract <T extends Any> TcreateObject(List<Message> messages, Class<T> outputClass)Create an object from messages <T extends Any> TcreateObject(MultimodalContent content, Class<T> outputClass)Create an object from multimodal content (text + images) <T extends Any> TcreateObjectIfPossible(String prompt, Class<T> outputClass)Try to create an object of the given type using the given prompt and LLM options from context (process context or implementing class). abstract <T extends Any> TcreateObjectIfPossible(List<Message> messages, Class<T> outputClass)<T extends Any> TcreateObjectIfPossible(MultimodalContent content, Class<T> outputClass)Try to create an object from multimodal content (text + images) AssistantMessagerespond(MultimodalContent content)Respond in a conversation with multimodal content abstract AssistantMessagerespond(List<Message> messages)Respond in a conversation abstract BooleanevaluateCondition(String condition, String context, Double confidenceThreshold)-
-
Method Detail
-
generateText
String generateText(String prompt)
Generate text
-
generateText
String generateText(MultimodalContent content)
Generate text from multimodal content (text + images)
-
createObject
<T extends Any> T createObject(String prompt, Class<T> outputClass)
Create an object of the given type using the given prompt and LLM options from context (process context or implementing class). Prompts are typically created within the scope of an
-
createObject
abstract <T extends Any> T createObject(List<Message> messages, Class<T> outputClass)
Create an object from messages
-
createObject
<T extends Any> T createObject(MultimodalContent content, Class<T> outputClass)
Create an object from multimodal content (text + images)
-
createObjectIfPossible
<T extends Any> T createObjectIfPossible(String prompt, Class<T> outputClass)
Try to create an object of the given type using the given prompt and LLM options from context (process context or implementing class). Prompt is typically created within the scope of an
-
createObjectIfPossible
abstract <T extends Any> T createObjectIfPossible(List<Message> messages, Class<T> outputClass)
-
createObjectIfPossible
<T extends Any> T createObjectIfPossible(MultimodalContent content, Class<T> outputClass)
Try to create an object from multimodal content (text + images)
-
respond
AssistantMessage respond(MultimodalContent content)
Respond in a conversation with multimodal content
-
respond
abstract AssistantMessage respond(List<Message> messages)
Respond in a conversation
-
evaluateCondition
abstract Boolean evaluateCondition(String condition, String context, Double confidenceThreshold)
-
-
-
-