Interface Prompt


public interface Prompt
Provides access to AI chat prompt functionality.
  • Method Details

    • execute

      PromptResponse execute(String... messages) throws PromptException
      Evaluates a series of messages using the AI chat prompt.
      Parameters:
      messages - messages to evaluate
      Returns:
      A PromptResponse object with the response from the chat prompt.
      Throws:
      PromptException - if there is a problem executing the prompt.
    • execute

      PromptResponse execute(PromptOptions options, String... messages) throws PromptException
      Evaluates a series of messages using the AI chat prompt using the provided prompt options.
      Parameters:
      options - prompt options
      messages - messages to evaluate
      Returns:
      A PromptResponse object with the response from the chat prompt.
      Throws:
      PromptException - if there is a problem executing the prompt.
    • execute

      PromptResponse execute(Message... messages) throws PromptException
      Evaluates a series of messages using the AI chat prompt.
      Parameters:
      messages - messages to evaluate
      Returns:
      A PromptResponse object with the response from the chat prompt.
      Throws:
      PromptException - if there is a problem executing the prompt.
    • execute

      PromptResponse execute(PromptOptions options, Message... messages) throws PromptException
      Evaluates a series of messages using the AI chat prompt using the provided prompt options.
      Parameters:
      options - prompt options
      messages - messages to evaluate
      Returns:
      A PromptResponse object with the response from the chat prompt.
      Throws:
      PromptException - if there is a problem executing the prompt.